diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-10-06 17:06:02 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-10-06 20:48:02 +0100 |
commit | c874231c3ab0dc836db497ed63865a226e41bb45 (patch) | |
tree | a798ea44d3007839aa73e2ee250c79129f7a1bc8 /sw/source/uibase/ribbar/workctrl.cxx | |
parent | 071f0dbc67009ed4749875f14d5d1cd2117e9445 (diff) |
de-src RID_JUMP_TO_SPEC_PAGE and RID_PVIEW_ZOOM_LB
Change-Id: Ideb8eff9d89dbc207dcf7d1228070b2e4a954723
Diffstat (limited to 'sw/source/uibase/ribbar/workctrl.cxx')
-rw-r--r-- | sw/source/uibase/ribbar/workctrl.cxx | 34 |
1 files changed, 14 insertions, 20 deletions
diff --git a/sw/source/uibase/ribbar/workctrl.cxx b/sw/source/uibase/ribbar/workctrl.cxx index e49564f12bdc..32eb4c5af748 100644 --- a/sw/source/uibase/ribbar/workctrl.cxx +++ b/sw/source/uibase/ribbar/workctrl.cxx @@ -386,13 +386,13 @@ protected: }; -SwZoomBox_Impl::SwZoomBox_Impl( - vcl::Window* pParent, - sal_uInt16 nSlot ): - ComboBox( pParent, SW_RES(RID_PVIEW_ZOOM_LB)), - nSlotId(nSlot), - bRelease(true) +SwZoomBox_Impl::SwZoomBox_Impl(vcl::Window* pParent, sal_uInt16 nSlot) + : ComboBox(pParent, WB_HIDE | WB_BORDER | WB_DROPDOWN | WB_AUTOHSCROLL) + , nSlotId(nSlot) + , bRelease(true) { + SetHelpId(HID_PVIEW_ZOOM_LB); + SetSizePixel(LogicToPixel(Size(30, 86), MapUnit::MapAppFont)); EnableAutocomplete( false ); sal_uInt16 aZoomValues[] = { RID_SVXSTR_ZOOM_25 , RID_SVXSTR_ZOOM_50 , @@ -536,28 +536,22 @@ VclPtr<vcl::Window> SwPreviewZoomControl::CreateItemWindow( vcl::Window *pParent class SwJumpToSpecificBox_Impl : public NumericField { - sal_uInt16 nSlotId; + sal_uInt16 nSlotId; public: - SwJumpToSpecificBox_Impl( - vcl::Window* pParent, - sal_uInt16 nSlot ); - virtual ~SwJumpToSpecificBox_Impl() override; + SwJumpToSpecificBox_Impl(vcl::Window* pParent, sal_uInt16 nSlot); protected: void Select(); virtual bool Notify( NotifyEvent& rNEvt ) SAL_OVERRIDE; }; -SwJumpToSpecificBox_Impl::SwJumpToSpecificBox_Impl( - vcl::Window* pParent, - sal_uInt16 nSlot ): - NumericField( pParent, SW_RES(RID_JUMP_TO_SPEC_PAGE)), - nSlotId(nSlot) -{} - -SwJumpToSpecificBox_Impl::~SwJumpToSpecificBox_Impl() -{} +SwJumpToSpecificBox_Impl::SwJumpToSpecificBox_Impl(vcl::Window* pParent, sal_uInt16 nSlot) + : NumericField(pParent, WB_HIDE | WB_BORDER) + , nSlotId(nSlot) +{ + SetSizePixel(LogicToPixel(Size(16, 12), MapUnit::MapAppFont)); +} void SwJumpToSpecificBox_Impl::Select() { |