diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-05-13 15:42:11 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-05-13 15:45:35 +0100 |
commit | 3182b959c06535884f7adb501e5373012fc30601 (patch) | |
tree | 5e8800417e1aa137e39438bed185fc9aade1a097 /sc/source/ui | |
parent | c3bf1bdaabb31b4db5455d27720f92854f3f9778 (diff) |
reenable left/right area swap in .ui layout terms
Change-Id: Ic680a0e9f0254722163c1bd1b822d1c51f96454f
Diffstat (limited to 'sc/source/ui')
-rw-r--r-- | sc/source/ui/inc/scuitphfedit.hxx | 3 | ||||
-rw-r--r-- | sc/source/ui/pagedlg/scuitphfedit.cxx | 29 | ||||
-rw-r--r-- | sc/source/ui/src/globstr.src | 35 |
3 files changed, 17 insertions, 50 deletions
diff --git a/sc/source/ui/inc/scuitphfedit.hxx b/sc/source/ui/inc/scuitphfedit.hxx index 0c3a0d8080d9..40476da70a7e 100644 --- a/sc/source/ui/inc/scuitphfedit.hxx +++ b/sc/source/ui/inc/scuitphfedit.hxx @@ -61,11 +61,8 @@ protected: virtual ~ScHFEditPage(); private: - //FixedText aFtLeft; ScEditWindow* m_pWndLeft; - //FixedText aFtCenter; ScEditWindow* m_pWndCenter; - //FixedText aFtRight; ScEditWindow* m_pWndRight; FixedText* m_pFtDefinedHF; ListBox* m_pLbDefined; diff --git a/sc/source/ui/pagedlg/scuitphfedit.cxx b/sc/source/ui/pagedlg/scuitphfedit.cxx index 342774a3a0f4..bc4b07125fd9 100644 --- a/sc/source/ui/pagedlg/scuitphfedit.cxx +++ b/sc/source/ui/pagedlg/scuitphfedit.cxx @@ -119,18 +119,23 @@ ScHFEditPage::ScHFEditPage( Window* pParent, m_pFtDefinedHF->Show(); m_pFtCustomHF->Show(); -// if( Application::GetSettings().GetLayoutRTL() ) -// { -// Point pt1 = m_pWndLeft->GetPosPixel(); -// Point pt2 = m_pWndRight->GetPosPixel(); -// m_pWndLeft->SetPosPixel(pt2); -// m_pWndRight->SetPosPixel(pt1); -// -// pt1 = aFtLeft.GetPosPixel(); -// pt2 = aFtRight.GetPosPixel(); -// aFtLeft.SetPosPixel(pt2); -// aFtRight.SetPosPixel(pt1); -// } + //swap left/right areas and their lables in RTL mode + if( Application::GetSettings().GetLayoutRTL() ) + { + Window *pLeft = get<Window>("labelFT_LEFT"); + Window *pRight = get<Window>("labelFT_RIGHT"); + sal_Int32 nOldLeftAttach = pLeft->get_grid_left_attach(); + sal_Int32 nOldRightAttach = pRight->get_grid_left_attach(); + pLeft->set_grid_left_attach(nOldRightAttach); + pRight->set_grid_left_attach(nOldLeftAttach); + + pLeft = m_pWndLeft; + pRight = m_pWndRight; + nOldLeftAttach = pLeft->get_grid_left_attach(); + nOldRightAttach = pRight->get_grid_left_attach(); + pLeft->set_grid_left_attach(nOldRightAttach); + pRight->set_grid_left_attach(nOldLeftAttach); + } m_pWndLeft->SetFont( aPatAttr ); m_pWndCenter->SetFont( aPatAttr ); m_pWndRight->SetFont( aPatAttr ); diff --git a/sc/source/ui/src/globstr.src b/sc/source/ui/src/globstr.src index a4a60187b32b..b9ffd2a79388 100644 --- a/sc/source/ui/src/globstr.src +++ b/sc/source/ui/src/globstr.src @@ -1619,41 +1619,6 @@ Resource RID_GLOBSTR Text[ en-US ] = "WARNING: This action may have resulted in references to the deleted area not being restored."; }; -// String STR_HF_NONE_IN_BRACKETS -// { -// Text [ en-US ] = "(none)"; -// }; -// -// String STR_HF_OF -// { -// Text [ en-US ] = "of"; -// }; -// -// String STR_HF_OF_QUESTION -// { -// Text [ en-US ] = "of ?"; -// }; -// -// String STR_HF_CREATED_BY -// { -// Text [ en-US ] = "Created by"; -// }; -// -// String STR_HF_CONFIDENTIAL -// { -// Text [ en-US ] = "Confidential"; -// }; -// -// String STR_HF_CUSTOMIZED -// { -// Text [ en-US ] = "Customized"; -// }; - -// String STR_HF_CUSTOM_FOOTER -// { -// Text [ en-US ] = "Custom footer"; -// }; - String STR_UNDO_CHINESE_TRANSLATION { Text [ en-US ] = "Chinese conversion"; |