From 9dadd9288d51e092f4b4567b6135ecde1436cce7 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 11 Apr 2013 12:47:40 +0100 Subject: Restore original mnemonics for view page And remove the remaining SetPosPixel calls of layout controlled elements, they are now unnecessary and get overridden by the layout anyway. Including the ones left over from the printer options conversion. Tweak things for 6/12 spacings. Change-Id: Ifb460fb966452c10a9ac08c6f8cd57b96a2166f0 --- sw/inc/helpid.h | 1 - sw/source/ui/config/optpage.cxx | 12 +-- sw/uiconfig/swriter/ui/viewoptionspage.ui | 174 ++++++++++++++++-------------- 3 files changed, 92 insertions(+), 95 deletions(-) (limited to 'sw') diff --git a/sw/inc/helpid.h b/sw/inc/helpid.h index 66574aa17402..1340e25483d9 100644 --- a/sw/inc/helpid.h +++ b/sw/inc/helpid.h @@ -158,7 +158,6 @@ #define HID_ENV_ENV "SW_HID_ENV_ENV" #define HID_ENV_FMT "SW_HID_ENV_FMT" #define HID_FRM_URL "SW_HID_FRM_URL" -#define HID_CONTENT_OPT "SW_HID_CONTENT_OPT" #define HID_STD_FONT "SW_HID_STD_FONT" #define HID_COND_COLL "SW_HID_COND_COLL" #define HID_FRM_ADD "SW_HID_FRM_ADD" diff --git a/sw/source/ui/config/optpage.cxx b/sw/source/ui/config/optpage.cxx index 82ef325125a7..055150e7d0cf 100644 --- a/sw/source/ui/config/optpage.cxx +++ b/sw/source/ui/config/optpage.cxx @@ -111,13 +111,7 @@ SwContentOptPage::SwContentOptPage( Window* pParent, } SvtCJKOptions aCJKOptions; - if(aCJKOptions.IsVerticalTextEnabled() ) - { - Point aSmoothPos(m_pSmoothCBox->GetPosPixel()); - aSmoothPos.Y() += aSmoothPos.Y() - m_pVRulerCBox->GetPosPixel().Y(); - m_pSmoothCBox->SetPosPixel(aSmoothPos); - } - else + if(!aCJKOptions.IsVerticalTextEnabled() ) m_pVRulerRightCBox->Hide(); m_pVRulerCBox->SetClickHdl(LINK(this, SwContentOptPage, VertRulerHdl )); m_pAnyRulerCB->SetClickHdl(LINK(this, SwContentOptPage, AnyRulerHdl)); @@ -351,10 +345,6 @@ SwAddPrinterTabPage::SwAddPrinterTabPage(Window* pParent, m_pRightPageCB->Hide(); m_pPrintHiddenTextCB->Hide(); m_pPrintTextPlaceholderCB->Hide(); - m_pProspectCB->SetPosPixel(m_pLeftPageCB->GetPosPixel()); - Point aPt( m_pRightPageCB->GetPosPixel() ); - aPt.setX(aPt.getX() + 15); // indent - m_pProspectCB_RTL->SetPosPixel(aPt); // hide m_pPrintEmptyPagesCB m_pPrintEmptyPagesCB->Hide(); diff --git a/sw/uiconfig/swriter/ui/viewoptionspage.ui b/sw/uiconfig/swriter/ui/viewoptionspage.ui index 22832717d8c0..6b11ae2316ce 100644 --- a/sw/uiconfig/swriter/ui/viewoptionspage.ui +++ b/sw/uiconfig/swriter/ui/viewoptionspage.ui @@ -12,13 +12,14 @@ True False 6 - 6 + 12 True True False vertical + 12 True @@ -37,10 +38,11 @@ False - Helplines While Moving + Helplines _While Moving True True False + True 0 True @@ -88,12 +90,14 @@ True False + 6 - Graphics and objects + _Graphics and objects True True False + True 0 True @@ -106,10 +110,11 @@ - Tables + _Tables True True False + True 0 True @@ -122,10 +127,11 @@ - Drawings and controls + Dra_wings and controls True True False + True 0 True @@ -138,10 +144,11 @@ - Field codes + _Field codes True True False + True 0 True @@ -154,10 +161,11 @@ - Comments + _Comments True True False + True 0 True @@ -202,6 +210,7 @@ True False vertical + 12 True @@ -218,12 +227,14 @@ True False + 6 - Horizontal scrollbar + H_orizontal scrollbar True True False + True 0 True @@ -236,10 +247,11 @@ - Vertical scrollbar + _Vertical scrollbar True True False + True 0 True @@ -252,10 +264,11 @@ - Ruler + R_uler True True False + True 0 True @@ -267,64 +280,73 @@ - + + S_mooth scroll + True + True + False + True + 0 + True + + + 0 + 4 + 1 + 1 + + + + True False - 18 - True + 12 + 6 + 12 - Horizontal ruler + Hori_zontal ruler True True False + True 0 True - False - True - 0 + 0 + 0 + 1 + 1 - + + Verti_cal ruler True - False + True + False + True + 0 + True - False - True - 1 + 0 + 1 + 1 + 1 - - - 0 - 3 - 1 - 1 - - - - - True - False - 18 - True - - Vertical ruler + True - True - False - 0 - True + False - False - True - 0 + 1 + 0 + 1 + 1 @@ -333,48 +355,34 @@ False - False - True - 1 + 1 + 1 + 1 + 1 + + + + + Right-aligned + True + True + False + 12 + True + 0 + True + + + 0 + 2 + 2 + 1 0 - 4 - 1 - 1 - - - - - Right-aligned - True - True - False - 36 - 0 - True - - - 0 - 5 - 1 - 1 - - - - - Smooth scroll - True - True - False - 0 - True - - - 0 - 6 + 3 1 1 @@ -416,7 +424,7 @@ True False - 10 + 12 True -- cgit