framework/inc/strings.hrc                            |   22 ++
 framework/source/uielement/controlmenucontroller.cxx |  157 ++++++---------
 svx/UIConfig_svx.mk                                  |    1 
 svx/uiconfig/ui/convertmenu.ui                       |  189 -------------------
 4 files changed, 84 insertions(+), 285 deletions(-)

New commits:
commit a54ccd575ccfe82444e3ad26cb543622cbff9e22
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Tue Feb 23 17:28:45 2021 +0000
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Tue Feb 23 20:19:30 2021 +0100

    fill convert menu via the css::awt::XPopupMenu apis
    
    don't poke around at it via vcl
    
    Change-Id: I3c7cdc76c9efd45084294cd6f001ded8e3ebe793
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111411
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

diff --git a/framework/inc/strings.hrc b/framework/inc/strings.hrc
index d3f28fcc9e21..23cb9bbed357 100644
--- a/framework/inc/strings.hrc
+++ b/framework/inc/strings.hrc
@@ -54,6 +54,28 @@
 #define STR_SET_LANGUAGE_FOR_PARAGRAPH              
NC_("STR_SET_LANGUAGE_FOR_PARAGRAPH", "Set Language for Paragraph" )
 #define STR_LANGSTATUS_HINT                         NC_("STR_LANGSTATUS_HINT", 
"Text Language. Right-click to set character or paragraph language" )
 
+#define RID_STR_PROPTITLE_EDIT                      
NC_("RID_STR_PROPTITLE_EDIT", "Text Box")
+#define RID_STR_PROPTITLE_CHECKBOX                  
NC_("RID_STR_PROPTITLE_CHECKBOX", "Check Box")
+#define RID_STR_PROPTITLE_COMBOBOX                  
NC_("RID_STR_PROPTITLE_COMBOBOX", "Combo Box")
+#define RID_STR_PROPTITLE_LISTBOX                   
NC_("RID_STR_PROPTITLE_LISTBOX", "List Box")
+#define RID_STR_PROPTITLE_DATEFIELD                 
NC_("RID_STR_PROPTITLE_DATEFIELD", "Date Field")
+#define RID_STR_PROPTITLE_TIMEFIELD                 
NC_("RID_STR_PROPTITLE_TIMEFIELD", "Time Field")
+#define RID_STR_PROPTITLE_NUMERICFIELD              
NC_("RID_STR_PROPTITLE_NUMERICFIELD", "Numeric Field")
+#define RID_STR_PROPTITLE_CURRENCYFIELD             
NC_("RID_STR_PROPTITLE_CURRENCYFIELD", "Currency Field")
+#define RID_STR_PROPTITLE_PATTERNFIELD              
NC_("RID_STR_PROPTITLE_PATTERNFIELD", "Pattern Field")
+#define RID_STR_PROPTITLE_FORMATTED                 
NC_("RID_STR_PROPTITLE_FORMATTED", "Formatted Field")
+
+#define RID_STR_PROPTITLE_PUSHBUTTON                
NC_("RID_STR_PROPTITLE_PUSHBUTTON", "Push Button")
+#define RID_STR_PROPTITLE_RADIOBUTTON               
NC_("RID_STR_PROPTITLE_RADIOBUTTON", "Option Button")
+#define RID_STR_PROPTITLE_FIXEDTEXT                 
NC_("RID_STR_PROPTITLE_FIXEDTEXT", "Label Field")
+#define RID_STR_PROPTITLE_GROUPBOX                  
NC_("RID_STR_PROPTITLE_GROUPBOX", "Group Box")
+#define RID_STR_PROPTITLE_IMAGEBUTTON               
NC_("RID_STR_PROPTITLE_IMAGEBUTTON", "Image Button")
+#define RID_STR_PROPTITLE_IMAGECONTROL              
NC_("RID_STR_PROPTITLE_IMAGECONTROL", "Image Control")
+#define RID_STR_PROPTITLE_FILECONTROL               
NC_("RID_STR_PROPTITLE_FILECONTROL", "File Selection")
+#define RID_STR_PROPTITLE_SCROLLBAR                 
NC_("RID_STR_PROPTITLE_SCROLLBAR", "Scrollbar")
+#define RID_STR_PROPTITLE_SPINBUTTON                
NC_("RID_STR_PROPTITLE_SPINBUTTON", "Spin Button")
+#define RID_STR_PROPTITLE_NAVBAR                    
NC_("RID_STR_PROPTITLE_NAVBAR", "Navigation Bar")
+
 #endif
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/framework/source/uielement/controlmenucontroller.cxx 
b/framework/source/uielement/controlmenucontroller.cxx
index fb5362307068..6af67e7a30a9 100644
--- a/framework/source/uielement/controlmenucontroller.cxx
+++ b/framework/source/uielement/controlmenucontroller.cxx
@@ -26,21 +26,19 @@
 #include <com/sun/star/util/XURLTransformer.hpp>
 
 #include <cppuhelper/supportsservice.hxx>
-#include <vcl/builder.hxx>
-#include <vcl/menu.hxx>
+#include <vcl/graph.hxx>
 #include <vcl/svapp.hxx>
 #include <vcl/settings.hxx>
 #include <vcl/image.hxx>
 #include <svtools/popupmenucontrollerbase.hxx>
-#include <toolkit/awt/vclxmenu.hxx>
 #include <osl/mutex.hxx>
 #include <memory>
 #include <string_view>
 #include <unordered_map>
 
+#include <classes/fwkresid.hxx>
 #include <bitmaps.hlst>
-
-// See svx/source/form/fmshimp.cxx for other use of this .ui
+#include <strings.hrc>
 
 static const char* aCommands[] =
 {
@@ -66,6 +64,30 @@ static const char* aCommands[] =
     ".uno:ConvertToNavigationBar"
 };
 
+static const char* aLabels[] =
+{
+    RID_STR_PROPTITLE_EDIT,
+    RID_STR_PROPTITLE_PUSHBUTTON,
+    RID_STR_PROPTITLE_FIXEDTEXT,
+    RID_STR_PROPTITLE_LISTBOX,
+    RID_STR_PROPTITLE_CHECKBOX,
+    RID_STR_PROPTITLE_RADIOBUTTON,
+    RID_STR_PROPTITLE_GROUPBOX,
+    RID_STR_PROPTITLE_COMBOBOX,
+    RID_STR_PROPTITLE_IMAGEBUTTON,
+    RID_STR_PROPTITLE_FILECONTROL,
+    RID_STR_PROPTITLE_DATEFIELD,
+    RID_STR_PROPTITLE_TIMEFIELD,
+    RID_STR_PROPTITLE_NUMERICFIELD,
+    RID_STR_PROPTITLE_CURRENCYFIELD,
+    RID_STR_PROPTITLE_PATTERNFIELD,
+    RID_STR_PROPTITLE_IMAGECONTROL,
+    RID_STR_PROPTITLE_FORMATTED,
+    RID_STR_PROPTITLE_SCROLLBAR,
+    RID_STR_PROPTITLE_SPINBUTTON,
+    RID_STR_PROPTITLE_NAVBAR
+};
+
 const std::u16string_view aImgIds[] =
 {
     u"" RID_SVXBMP_EDITBOX,
@@ -137,8 +159,6 @@ public:
     virtual void SAL_CALL disposing( const lang::EventObject& Source ) 
override;
 
 private:
-    virtual void impl_setPopupMenu() override;
-
     class UrlToDispatchMap : public std::unordered_map< OUString,
                                                         uno::Reference< 
frame::XDispatch > >
     {
@@ -149,12 +169,10 @@ private:
             }
     };
 
-    void updateImagesPopupMenu( PopupMenu* pPopupMenu );
-    void fillPopupMenu( uno::Reference< awt::XPopupMenu > const & rPopupMenu );
+    void updateImagesPopupMenu(Reference<awt::XPopupMenu> const& rPopupMenu);
+    void fillPopupMenu(uno::Reference<awt::XPopupMenu> const& rPopupMenu);
 
     bool                m_bShowMenuImages : 1;
-    std::unique_ptr<VclBuilder> m_xBuilder;
-    VclPtr<PopupMenu>   m_xResPopupMenu;
     UrlToDispatchMap    m_aURLToDispatchMap;
 };
 
@@ -167,34 +185,43 @@ ControlMenuController::ControlMenuController(const 
css::uno::Reference< css::uno
 }
 
 // private function
-void ControlMenuController::updateImagesPopupMenu( PopupMenu* pPopupMenu )
+void ControlMenuController::updateImagesPopupMenu(Reference<awt::XPopupMenu> 
const& rPopupMenu)
 {
+    if (!rPopupMenu)
+        return;
     for (size_t i=0; i < SAL_N_ELEMENTS(aCommands); ++i)
     {
-        //ident is .uno:Command without .uno:
-        OString sIdent = OString(aCommands[i]).copy(5);
-        sal_uInt16 nId = pPopupMenu->GetItemId(sIdent);
+        sal_Int16 nItemId = i + 1;
         if (m_bShowMenuImages)
-            pPopupMenu->SetItemImage(nId, Image(StockImage::Yes, 
OUString(aImgIds[i])));
+        {
+            Image aImage(StockImage::Yes, OUString(aImgIds[i]));
+            Graphic aGraphic(aImage);
+            rPopupMenu->setItemImage(nItemId, aGraphic.GetXGraphic(), false);
+        }
         else
-            pPopupMenu->SetItemImage(nId, Image());
+            rPopupMenu->setItemImage(nItemId, nullptr, false);
     }
 }
 
 // private function
 void ControlMenuController::fillPopupMenu( Reference< css::awt::XPopupMenu > 
const & rPopupMenu )
 {
-    VCLXPopupMenu* pPopupMenu        = static_cast<VCLXPopupMenu 
*>(comphelper::getUnoTunnelImplementation<VCLXMenu>( rPopupMenu ));
-    PopupMenu*     pVCLPopupMenu     = nullptr;
+    resetPopupMenu( rPopupMenu );
 
-    SolarMutexGuard aSolarMutexGuard;
+    for (size_t i=0; i < SAL_N_ELEMENTS(aCommands); ++i)
+    {
+        sal_Int16 nItemId = i + 1;
+        OUString sCommand(OUString::createFromAscii(aCommands[i]));
+        rPopupMenu->insertItem(nItemId, FwkResId(aLabels[i]), 0, i);
+        rPopupMenu->setCommand(nItemId, sCommand);
+        rPopupMenu->enableItem(nItemId, false);
+    }
 
-    resetPopupMenu( rPopupMenu );
-    if ( pPopupMenu )
-        pVCLPopupMenu = static_cast<PopupMenu *>(pPopupMenu->GetMenu());
+    updateImagesPopupMenu(rPopupMenu);
+
+    rPopupMenu->hideDisabledEntries(true);
+}
 
-    if (pVCLPopupMenu && m_xResPopupMenu)
-        *pVCLPopupMenu = *m_xResPopupMenu;
 }
 
 // XEventListener
@@ -209,8 +236,6 @@ void SAL_CALL ControlMenuController::disposing( const 
EventObject& )
     if ( m_xPopupMenu.is() )
         m_xPopupMenu->removeMenuListener( Reference< css::awt::XMenuListener 
>(static_cast<OWeakObject *>(this), UNO_QUERY ));
     m_xPopupMenu.clear();
-    m_xResPopupMenu.clear();
-    m_xBuilder.reset();
 }
 
 // XStatusListener
@@ -218,59 +243,23 @@ void SAL_CALL ControlMenuController::statusChanged( const 
FeatureStateEvent& Eve
 {
     osl::MutexGuard aLock( m_aMutex );
 
-    OString sIdent;
+    if (!m_xPopupMenu)
+        return;
+
+    sal_Int16 nItemId = 0;
     for (size_t i=0; i < SAL_N_ELEMENTS(aCommands); ++i)
     {
         if ( Event.FeatureURL.Complete.equalsAscii( aCommands[i] ))
         {
-            //ident is .uno:Command without .uno:
-            sIdent = OString(aCommands[i]).copy(5);
+            nItemId = i + 1;
             break;
         }
     }
 
-    sal_uInt16 nMenuId = 0;
-
-    VCLXPopupMenu*  pPopupMenu = nullptr;
-
-    if (!sIdent.isEmpty() && m_xResPopupMenu)
-    {
-        pPopupMenu = static_cast<VCLXPopupMenu 
*>(comphelper::getUnoTunnelImplementation<VCLXMenu>( m_xPopupMenu ));
-        nMenuId = m_xResPopupMenu->GetItemId(sIdent);
-    }
-
-    if (!pPopupMenu)
+    if (!nItemId)
         return;
 
-    SolarMutexGuard aSolarMutexGuard;
-
-    PopupMenu* pVCLPopupMenu = static_cast<PopupMenu *>(pPopupMenu->GetMenu());
-
-    if ( !Event.IsEnabled && pVCLPopupMenu->GetItemPos( nMenuId ) != 
MENU_ITEM_NOTFOUND )
-        pVCLPopupMenu->RemoveItem( pVCLPopupMenu->GetItemPos( nMenuId ));
-    else if ( Event.IsEnabled && pVCLPopupMenu->GetItemPos( nMenuId ) == 
MENU_ITEM_NOTFOUND )
-    {
-        sal_Int16 nSourcePos = m_xResPopupMenu->GetItemPos(nMenuId);
-        sal_Int16 nPrevInSource = nSourcePos;
-        sal_uInt16 nPrevInConversion = MENU_ITEM_NOTFOUND;
-        while (nPrevInSource>0)
-        {
-            sal_Int16 nPrevId = m_xResPopupMenu->GetItemId(--nPrevInSource);
-
-            // do we have the source's predecessor in our conversion menu, too 
?
-            nPrevInConversion = pVCLPopupMenu->GetItemPos( nPrevId );
-            if ( nPrevInConversion != MENU_ITEM_NOTFOUND )
-                break;
-        }
-
-        if ( MENU_ITEM_NOTFOUND == nPrevInConversion )
-            // none of the items which precede the nSID-slot in the source 
menu are present in our conversion menu
-            nPrevInConversion = sal::static_int_cast< sal_uInt16 >(-1); // put 
the item at the first position
-
-        pVCLPopupMenu->InsertItem(nMenuId, 
m_xResPopupMenu->GetItemText(nMenuId), m_xResPopupMenu->GetItemBits(nMenuId), 
OString(), ++nPrevInConversion);
-        pVCLPopupMenu->SetItemImage(nMenuId, 
m_xResPopupMenu->GetItemImage(nMenuId));
-        pVCLPopupMenu->SetHelpId(nMenuId, m_xResPopupMenu->GetHelpId(nMenuId));
-    }
+    m_xPopupMenu->enableItem(nItemId, Event.IsEnabled);
 }
 
 // XMenuListener
@@ -278,40 +267,20 @@ void SAL_CALL ControlMenuController::itemActivated( const 
css::awt::MenuEvent& )
 {
     osl::MutexGuard aLock( m_aMutex );
 
-    if ( !m_xPopupMenu.is() )
-        return;
-
     SolarMutexGuard aSolarMutexGuard;
 
     // Check if some modes have changed so we have to update our menu images
     const StyleSettings& rSettings = 
Application::GetSettings().GetStyleSettings();
-    bool bShowMenuImages    = rSettings.GetUseImagesInMenus();
+    bool bShowMenuImages = rSettings.GetUseImagesInMenus();
 
     if (bShowMenuImages != m_bShowMenuImages)
     {
-        m_bShowMenuImages   = bShowMenuImages;
-
-        VCLXPopupMenu* pPopupMenu = static_cast<VCLXPopupMenu 
*>(comphelper::getUnoTunnelImplementation<VCLXMenu>( m_xPopupMenu ));
-        if ( pPopupMenu )
-        {
-            PopupMenu* pVCLPopupMenu = static_cast<PopupMenu 
*>(pPopupMenu->GetMenu());
-            if (pVCLPopupMenu)
-                updateImagesPopupMenu( pVCLPopupMenu );
-        }
+        m_bShowMenuImages = bShowMenuImages;
+        updateImagesPopupMenu(m_xPopupMenu);
     }
 }
 
 // XPopupMenuController
-void ControlMenuController::impl_setPopupMenu()
-{
-    if (!m_xResPopupMenu)
-    {
-        m_xBuilder.reset(new VclBuilder(nullptr, AllSettings::GetUIRootDir(), 
"svx/ui/convertmenu.ui", ""));
-        m_xResPopupMenu = m_xBuilder->get_menu("menu");
-        updateImagesPopupMenu(m_xResPopupMenu);
-    }
-}
-
 void SAL_CALL ControlMenuController::updatePopupMenu()
 {
     osl::MutexGuard aLock( m_aMutex );
@@ -349,8 +318,6 @@ void SAL_CALL ControlMenuController::initialize( const 
Sequence< Any >& aArgumen
     m_aBaseURL.clear();
 }
 
-}
-
 extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface *
 com_sun_star_comp_framework_ControlMenuController_get_implementation(
     css::uno::XComponentContext *context,
diff --git a/svx/UIConfig_svx.mk b/svx/UIConfig_svx.mk
index 747777aa95ad..c4db5974f8b2 100644
--- a/svx/UIConfig_svx.mk
+++ b/svx/UIConfig_svx.mk
@@ -34,7 +34,6 @@ $(eval $(call gb_UIConfig_add_uifiles,svx,\
        svx/uiconfig/ui/colsmenu \
        svx/uiconfig/ui/columnswindow \
        svx/uiconfig/ui/compressgraphicdialog \
-       svx/uiconfig/ui/convertmenu \
        svx/uiconfig/ui/crashreportdlg \
        svx/uiconfig/ui/datanavigator \
        svx/uiconfig/ui/defaultshapespanel \
diff --git a/svx/uiconfig/ui/convertmenu.ui b/svx/uiconfig/ui/convertmenu.ui
deleted file mode 100644
index 7b454a290e00..000000000000
--- a/svx/uiconfig/ui/convertmenu.ui
+++ /dev/null
@@ -1,189 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!-- Generated with glade 3.20.0 -->
-<interface domain="svx">
-  <requires lib="gtk+" version="3.20"/>
-  <object class="GtkMenu" id="menu">
-    <property name="visible">True</property>
-    <property name="can_focus">False</property>
-    <child>
-      <object class="GtkMenuItem" id="ConvertToEdit">
-        <property name="visible">True</property>
-        <property name="action_name">.uno:ConvertToEdit</property>
-        <property name="can_focus">False</property>
-        <property name="label" translatable="yes" 
context="convertmenu|ConvertToEdit">_Text Box</property>
-        <property name="use_underline">True</property>
-      </object>
-    </child>
-    <child>
-      <object class="GtkMenuItem" id="ConvertToButton">
-        <property name="visible">True</property>
-        <property name="action_name">.uno:ConvertToButton</property>
-        <property name="can_focus">False</property>
-        <property name="label" translatable="yes" 
context="convertmenu|ConvertToButton">_Button</property>
-        <property name="use_underline">True</property>
-      </object>
-    </child>
-    <child>
-      <object class="GtkMenuItem" id="ConvertToFixed">
-        <property name="visible">True</property>
-        <property name="action_name">.uno:ConvertToFixed</property>
-        <property name="can_focus">False</property>
-        <property name="label" translatable="yes" 
context="convertmenu|ConvertToFixed">La_bel field</property>
-        <property name="use_underline">True</property>
-      </object>
-    </child>
-    <child>
-      <object class="GtkMenuItem" id="ConvertToGroup">
-        <property name="visible">True</property>
-        <property name="action_name">.uno:ConvertToGroup</property>
-        <property name="can_focus">False</property>
-        <property name="label" translatable="yes" 
context="convertmenu|ConvertToGroup">G_roup Box</property>
-        <property name="use_underline">True</property>
-      </object>
-    </child>
-    <child>
-      <object class="GtkMenuItem" id="ConvertToList">
-        <property name="visible">True</property>
-        <property name="action_name">.uno:ConvertToList</property>
-        <property name="can_focus">False</property>
-        <property name="label" translatable="yes" 
context="convertmenu|ConvertToList">L_ist Box</property>
-        <property name="use_underline">True</property>
-      </object>
-    </child>
-    <child>
-      <object class="GtkMenuItem" id="ConvertToCheckBox">
-        <property name="visible">True</property>
-        <property name="action_name">.uno:ConvertToCheckBox</property>
-        <property name="can_focus">False</property>
-        <property name="label" translatable="yes" 
context="convertmenu|ConvertToCheckBox">_Check Box</property>
-        <property name="use_underline">True</property>
-      </object>
-    </child>
-    <child>
-      <object class="GtkMenuItem" id="ConvertToRadio">
-        <property name="visible">True</property>
-        <property name="action_name">.uno:ConvertToRadio</property>
-        <property name="can_focus">False</property>
-        <property name="label" translatable="yes" 
context="convertmenu|ConvertToRadio">_Radio Button</property>
-        <property name="use_underline">True</property>
-      </object>
-    </child>
-    <child>
-      <object class="GtkMenuItem" id="ConvertToCombo">
-        <property name="visible">True</property>
-        <property name="action_name">.uno:ConvertToCombo</property>
-        <property name="can_focus">False</property>
-        <property name="label" translatable="yes" 
context="convertmenu|ConvertToCombo">Combo Bo_x</property>
-        <property name="use_underline">True</property>
-      </object>
-    </child>
-    <child>
-      <object class="GtkMenuItem" id="ConvertToImageBtn">
-        <property name="visible">True</property>
-        <property name="action_name">.uno:ConvertToImageBtn</property>
-        <property name="can_focus">False</property>
-        <property name="label" translatable="yes" 
context="convertmenu|ConvertToImageBtn">I_mage Button</property>
-        <property name="use_underline">True</property>
-      </object>
-    </child>
-    <child>
-      <object class="GtkMenuItem" id="ConvertToFileControl">
-        <property name="visible">True</property>
-        <property name="action_name">.uno:ConvertToFileControl</property>
-        <property name="can_focus">False</property>
-        <property name="label" translatable="yes" 
context="convertmenu|ConvertToFileControl">_File Selection</property>
-        <property name="use_underline">True</property>
-      </object>
-    </child>
-    <child>
-      <object class="GtkMenuItem" id="ConvertToDate">
-        <property name="visible">True</property>
-        <property name="action_name">.uno:ConvertToDate</property>
-        <property name="can_focus">False</property>
-        <property name="label" translatable="yes" 
context="convertmenu|ConvertToDate">_Date Field</property>
-        <property name="use_underline">True</property>
-      </object>
-    </child>
-    <child>
-      <object class="GtkMenuItem" id="ConvertToTime">
-        <property name="visible">True</property>
-        <property name="action_name">.uno:ConvertToTime</property>
-        <property name="can_focus">False</property>
-        <property name="label" translatable="yes" 
context="convertmenu|ConvertToTime">Tim_e Field</property>
-        <property name="use_underline">True</property>
-      </object>
-    </child>
-    <child>
-      <object class="GtkMenuItem" id="ConvertToNumeric">
-        <property name="visible">True</property>
-        <property name="action_name">.uno:ConvertToNumeric</property>
-        <property name="can_focus">False</property>
-        <property name="label" translatable="yes" 
context="convertmenu|ConvertToNumeric">_Numerical Field</property>
-        <property name="use_underline">True</property>
-      </object>
-    </child>
-    <child>
-      <object class="GtkMenuItem" id="ConvertToCurrency">
-        <property name="visible">True</property>
-        <property name="action_name">.uno:ConvertToCurrency</property>
-        <property name="can_focus">False</property>
-        <property name="label" translatable="yes" 
context="convertmenu|ConvertToCurrency">C_urrency Field</property>
-        <property name="use_underline">True</property>
-      </object>
-    </child>
-    <child>
-      <object class="GtkMenuItem" id="ConvertToPattern">
-        <property name="visible">True</property>
-        <property name="action_name">.uno:ConvertToPattern</property>
-        <property name="can_focus">False</property>
-        <property name="label" translatable="yes" 
context="convertmenu|ConvertToPattern">_Pattern Field</property>
-        <property name="use_underline">True</property>
-      </object>
-    </child>
-    <child>
-      <object class="GtkMenuItem" id="ConvertToImageControl">
-        <property name="visible">True</property>
-        <property name="action_name">.uno:ConvertToImageControl</property>
-        <property name="can_focus">False</property>
-        <property name="label" translatable="yes" 
context="convertmenu|ConvertToImageControl">Ima_ge Control</property>
-        <property name="use_underline">True</property>
-      </object>
-    </child>
-    <child>
-      <object class="GtkMenuItem" id="ConvertToFormatted">
-        <property name="visible">True</property>
-        <property name="action_name">.uno:ConvertToFormatted</property>
-        <property name="can_focus">False</property>
-        <property name="label" translatable="yes" 
context="convertmenu|ConvertToFormatted">Fo_rmatted Field</property>
-        <property name="use_underline">True</property>
-      </object>
-    </child>
-    <child>
-      <object class="GtkMenuItem" id="ConvertToScrollBar">
-        <property name="sensitive">False</property>
-        <property name="action_name">.uno:ConvertToScrollBar</property>
-        <property name="can_focus">False</property>
-        <property name="label" translatable="yes" 
context="convertmenu|ConvertToScrollBar">Scroll bar</property>
-        <property name="use_underline">True</property>
-      </object>
-    </child>
-    <child>
-      <object class="GtkMenuItem" id="ConvertToSpinButton">
-        <property name="visible">True</property>
-        <property name="action_name">.uno:ConvertToSpinButton</property>
-        <property name="can_focus">False</property>
-        <property name="label" translatable="yes" 
context="convertmenu|ConvertToSpinButton">Spin Button</property>
-        <property name="use_underline">True</property>
-      </object>
-    </child>
-    <child>
-      <object class="GtkMenuItem" id="ConvertToNavigationBar">
-        <property name="visible">True</property>
-        <property name="action_name">.uno:ConvertToNavigationBar</property>
-        <property name="can_focus">False</property>
-        <property name="label" translatable="yes" 
context="convertmenu|ConvertToNavigationBar">Navigation Bar</property>
-        <property name="use_underline">True</property>
-      </object>
-    </child>
-  </object>
-</interface>
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to