diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-04-05 15:02:12 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-04-05 15:03:26 +0100 |
commit | 6b6d642fe56868114669bab73f00df88afeab7fb (patch) | |
tree | 95ea5f0ae7a44e973496e4d5981f189b88f46bce /svx | |
parent | 4d9c1206c8375c514c686f744efb62d523f8d7ea (diff) |
convert RID_SVXMNU_XMLSECSTATBAR menu to .ui
Change-Id: I16ca1543baa14cdc14dbcebd5e6093e6f3029a61
Diffstat (limited to 'svx')
-rw-r--r-- | svx/UIConfig_svx.mk | 1 | ||||
-rw-r--r-- | svx/inc/helpid.hrc | 1 | ||||
-rw-r--r-- | svx/source/stbctrls/stbctrls.h | 2 | ||||
-rw-r--r-- | svx/source/stbctrls/stbctrls.src | 12 | ||||
-rw-r--r-- | svx/source/stbctrls/xmlsecctrl.cxx | 6 | ||||
-rw-r--r-- | svx/uiconfig/ui/xmlsecstatmenu.ui | 17 |
6 files changed, 22 insertions, 17 deletions
diff --git a/svx/UIConfig_svx.mk b/svx/UIConfig_svx.mk index 5c71dc2240de..ae2f419b73b1 100644 --- a/svx/UIConfig_svx.mk +++ b/svx/UIConfig_svx.mk @@ -79,6 +79,7 @@ $(eval $(call gb_UIConfig_add_uifiles,svx,\ svx/uiconfig/ui/textcontrolchardialog \ svx/uiconfig/ui/textcontrolparadialog \ svx/uiconfig/ui/textunderlinecontrol \ + svx/uiconfig/ui/xmlsecstatmenu \ svx/uiconfig/ui/xformspage \ )) diff --git a/svx/inc/helpid.hrc b/svx/inc/helpid.hrc index 7c9f9838f098..6ebd60d993ce 100644 --- a/svx/inc/helpid.hrc +++ b/svx/inc/helpid.hrc @@ -69,7 +69,6 @@ #define HID_POPUP_LINEEND_CTRL "SVX_HID_POPUP_LINEEND_CTRL" #define HID_STYLE_LISTBOX "SVX_HID_STYLE_LISTBOX" #define HID_VALUESET_EXTRUSION_LIGHTING "SVX_HID_VALUESET_EXTRUSION_LIGHTING" -#define HID_XMLSEC_CALL "SVX_HID_XMLSEC_CALL" #endif diff --git a/svx/source/stbctrls/stbctrls.h b/svx/source/stbctrls/stbctrls.h index 91d4fa9987b5..316cab0eb458 100644 --- a/svx/source/stbctrls/stbctrls.h +++ b/svx/source/stbctrls/stbctrls.h @@ -40,8 +40,6 @@ #define PSZ_FUNC_SELECTION_COUNT 13 #define PSZ_FUNC_NONE 16 -#define XMLSEC_CALL 1 - #define SELECTION_STANDARD 1 #define SELECTION_EXTENDED 2 #define SELECTION_ADDED 3 diff --git a/svx/source/stbctrls/stbctrls.src b/svx/source/stbctrls/stbctrls.src index 033cfbac6277..e8f9c072e1b4 100644 --- a/svx/source/stbctrls/stbctrls.src +++ b/svx/source/stbctrls/stbctrls.src @@ -298,18 +298,6 @@ Menu RID_SVXMNU_PSZ_FUNC }; }; }; -Menu RID_SVXMNU_XMLSECSTATBAR -{ - ItemList = - { - MenuItem - { - Identifier = XMLSEC_CALL ; - HelpId = HID_XMLSEC_CALL ; - Text [ en-US ] = "Digital Signatures..." ; - }; - }; -}; Bitmap RID_SVXBMP_POSITION { diff --git a/svx/source/stbctrls/xmlsecctrl.cxx b/svx/source/stbctrls/xmlsecctrl.cxx index ba706e8e506e..42f94aeeefba 100644 --- a/svx/source/stbctrls/xmlsecctrl.cxx +++ b/svx/source/stbctrls/xmlsecctrl.cxx @@ -19,6 +19,7 @@ #include <vcl/status.hxx> +#include <vcl/builder.hxx> #include <vcl/menu.hxx> #include <vcl/image.hxx> #include <sfx2/signaturestate.hxx> @@ -101,8 +102,9 @@ void XmlSecStatusBarControl::Command( const CommandEvent& rCEvt ) { if( rCEvt.GetCommand() == CommandEventId::ContextMenu ) { - ScopedVclPtrInstance<PopupMenu> aPopupMenu( ResId( RID_SVXMNU_XMLSECSTATBAR, DIALOG_MGR() ) ); - if( aPopupMenu->Execute( &GetStatusBar(), rCEvt.GetMousePosPixel() ) ) + VclBuilder aBuilder(nullptr, VclBuilderContainer::getUIRootDir(), "svx/ui/xmlsecstatmenu.ui", ""); + VclPtr<PopupMenu> aPopupMenu(aBuilder.get_menu("menu")); + if (aPopupMenu->Execute(&GetStatusBar(), rCEvt.GetMousePosPixel())) { css::uno::Any a; SfxUInt16Item aState( GetSlotId(), 0 ); diff --git a/svx/uiconfig/ui/xmlsecstatmenu.ui b/svx/uiconfig/ui/xmlsecstatmenu.ui new file mode 100644 index 000000000000..c8b31350f431 --- /dev/null +++ b/svx/uiconfig/ui/xmlsecstatmenu.ui @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- Generated with glade 3.20.0 --> +<interface> + <requires lib="gtk+" version="3.10"/> + <object class="GtkMenu" id="menu"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <child> + <object class="GtkMenuItem" id="signatures"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="label" translatable="yes">Digital Signatures...</property> + <property name="use_underline">True</property> + </object> + </child> + </object> +</interface> |