diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-12-19 16:15:13 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-12-19 19:06:35 +0000 |
commit | 9b214cacce55fa25d11942f7079e91c17775b290 (patch) | |
tree | 006e35568491d8d8b1c592a47d9a8b5042139f9e /svx | |
parent | 974a70ccb78e36f4aecd641dfb84bcc3dd77a48d (diff) |
Extrusion depth is just a simple menu
where 6 of the strings are already just string resources, doing a full docking
window res to .ui conversion for the two remaining strings seems overkill
Change-Id: I6d3224f8bb84edcdb784901aa93351c042684a3e
Diffstat (limited to 'svx')
-rw-r--r-- | svx/inc/helpid.hrc | 1 | ||||
-rw-r--r-- | svx/source/tbxctrls/extrusioncontrols.cxx | 22 | ||||
-rw-r--r-- | svx/source/tbxctrls/extrusioncontrols.src | 34 |
3 files changed, 18 insertions, 39 deletions
diff --git a/svx/inc/helpid.hrc b/svx/inc/helpid.hrc index 151dd7a34a89..59200f9edf28 100644 --- a/svx/inc/helpid.hrc +++ b/svx/inc/helpid.hrc @@ -65,7 +65,6 @@ #define HID_GALLERY_RENAME "SVX_HID_GALLERY_RENAME" #define HID_GALLERY_THEMELIST "SVX_HID_GALLERY_THEMELIST" #define HID_GALLERY_WINDOW "SVX_HID_GALLERY_WINDOW" -#define HID_MENU_EXTRUSION_DEPTH "SVX_HID_MENU_EXTRUSION_DEPTH" #define HID_MENU_EXTRUSION_DIRECTION "SVX_HID_MENU_EXTRUSION_DIRECTION" #define HID_MENU_EXTRUSION_LIGHTING "SVX_HID_MENU_EXTRUSION_LIGHTING" #define HID_MENU_EXTRUSION_SURFACE "SVX_HID_MENU_EXTRUSION_SURFACE" diff --git a/svx/source/tbxctrls/extrusioncontrols.cxx b/svx/source/tbxctrls/extrusioncontrols.cxx index 4a8497f1b2e8..4e781c64df62 100644 --- a/svx/source/tbxctrls/extrusioncontrols.cxx +++ b/svx/source/tbxctrls/extrusioncontrols.cxx @@ -315,36 +315,30 @@ ExtrusionDepthWindow::ExtrusionDepthWindow( svt::ToolboxController& rController, const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& rFrame, vcl::Window* pParentWindow -) : ToolbarMenu( rFrame, pParentWindow, SVX_RES( RID_SVXFLOAT_EXTRUSION_DEPTH )) +) : ToolbarMenu( rFrame, pParentWindow, WB_MOVEABLE|WB_CLOSEABLE|WB_HIDE|WB_3DLOOK) , mrController( rController ) , meUnit(FUNIT_NONE) , mfDepth( -1.0 ) , msExtrusionDepth( ".uno:ExtrusionDepth" ) , msMetricUnit( ".uno:MetricUnit" ) { - SetHelpId( HID_MENU_EXTRUSION_DEPTH ); - SetSelectHdl( LINK( this, ExtrusionDepthWindow, SelectHdl ) ); OUString aEmpty; - appendEntry( 0, aEmpty ); - appendEntry( 1, aEmpty ); - appendEntry( 2, aEmpty ); - appendEntry( 3, aEmpty ); - appendEntry( 4, aEmpty ); - appendEntry( 5, SVX_RESSTR( STR_INFINITY ) ); - appendEntry( 6, SVX_RESSTR( STR_CUSTOM ) ); + appendEntry(0, aEmpty); + appendEntry(1, aEmpty); + appendEntry(2, aEmpty); + appendEntry(3, aEmpty); + appendEntry(4, aEmpty); + appendEntry(5, SVX_RESSTR(RID_SVXSTR_INFINITY)); + appendEntry(6, SVX_RESSTR(RID_SVXSTR_CUSTOM)); SetOutputSizePixel( getMenuSize() ); - FreeResource(); - AddStatusListener( msExtrusionDepth ); AddStatusListener( msMetricUnit ); } - - void ExtrusionDepthWindow::implSetDepth( double fDepth ) { mfDepth = fDepth; diff --git a/svx/source/tbxctrls/extrusioncontrols.src b/svx/source/tbxctrls/extrusioncontrols.src index 87e666feb642..b298114138a3 100644 --- a/svx/source/tbxctrls/extrusioncontrols.src +++ b/svx/source/tbxctrls/extrusioncontrols.src @@ -138,30 +138,6 @@ DockingWindow RID_SVXFLOAT_EXTRUSION_DIRECTION }; }; -DockingWindow RID_SVXFLOAT_EXTRUSION_DEPTH -{ - HelpID = "svx:DockingWindow:RID_SVXFLOAT_EXTRUSION_DEPTH"; - Border = FALSE ; - Hide = TRUE ; - SVLook = TRUE ; - Sizeable = FALSE ; - Moveable = TRUE ; - Closeable = TRUE ; - Zoomable = TRUE ; - - Text [ en-US ] = "Extrusion Depth" ; - - String STR_CUSTOM - { - Text [ en-US ] = "~Custom..."; - }; - - String STR_INFINITY - { - Text [ en-US ] = "~Infinity"; - }; -}; - DockingWindow RID_SVXFLOAT_EXTRUSION_LIGHTING { HelpID = "svx:DockingWindow:RID_SVXFLOAT_EXTRUSION_LIGHTING"; @@ -448,4 +424,14 @@ String RID_SVXSTR_DEPTH_4_INCH Text [ en-US ] = "~4 inch"; }; +String RID_SVXSTR_CUSTOM +{ + Text [ en-US ] = "~Custom..."; +}; + +String RID_SVXSTR_INFINITY +{ + Text [ en-US ] = "~Infinity"; +}; + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |