summaryrefslogtreecommitdiff
path: root/sc/source/ui/attrdlg/tabpages.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-02-12 00:12:27 +0000
committerCaolán McNamara <caolanm@redhat.com>2013-02-12 00:31:22 +0000
commite53c0cb90066645d66c2265afbde0a4bdc6fbc98 (patch)
treefcdbf1170d203f24f3eaa49716bdd3aac594d0ff /sc/source/ui/attrdlg/tabpages.cxx
parented51d060fa10b2664abc24b22c20529de30dff64 (diff)
address cell protection text alignment
tabpage code lives in sc, so .ui should live in sc Change-Id: Ia7cfe98291ef92d5f661ff4665000a433c14c75d
Diffstat (limited to 'sc/source/ui/attrdlg/tabpages.cxx')
-rw-r--r--sc/source/ui/attrdlg/tabpages.cxx23
1 files changed, 5 insertions, 18 deletions
diff --git a/sc/source/ui/attrdlg/tabpages.cxx b/sc/source/ui/attrdlg/tabpages.cxx
index b0eca20ccfca..f16897ac176f 100644
--- a/sc/source/ui/attrdlg/tabpages.cxx
+++ b/sc/source/ui/attrdlg/tabpages.cxx
@@ -43,14 +43,10 @@ static sal_uInt16 pProtectionRanges[] =
// Zellschutz-Tabpage:
//========================================================================
-ScTabPageProtection::ScTabPageProtection( Window* pParent,
- const SfxItemSet& rCoreAttrs )
- : SfxTabPage ( pParent,
- "ProtectionPage",
- "cui/ui/cellprotectionpage.ui",
- rCoreAttrs )
-
- {
+ScTabPageProtection::ScTabPageProtection(Window* pParent, const SfxItemSet& rCoreAttrs)
+ : SfxTabPage(pParent, "CellProtectionPage",
+ "modules/scalc/ui/cellprotectionpage.ui", rCoreAttrs)
+{
get(m_pBtnHideCell,"checkHideAll");
get(m_pBtnProtect,"checkProtected");
get(m_pBtnHideFormula,"checkHideFormula");
@@ -66,17 +62,8 @@ ScTabPageProtection::ScTabPageProtection( Window* pParent,
m_pBtnHideCell->SetClickHdl( LINK( this, ScTabPageProtection, ButtonClickHdl ) );
m_pBtnHideFormula->SetClickHdl( LINK( this, ScTabPageProtection, ButtonClickHdl ) );
m_pBtnHidePrint->SetClickHdl( LINK( this, ScTabPageProtection, ButtonClickHdl ) );
-
}
-// -----------------------------------------------------------------------
-
-ScTabPageProtection::~ScTabPageProtection()
-{
-}
-
-//------------------------------------------------------------------------
-
sal_uInt16* ScTabPageProtection::GetRanges()
{
return pProtectionRanges;
@@ -180,7 +167,7 @@ int ScTabPageProtection::DeactivatePage( SfxItemSet* pSetP )
//------------------------------------------------------------------------
-IMPL_LINK( ScTabPageProtection, ButtonClickHdl, CheckBox*, pBox )
+IMPL_LINK( ScTabPageProtection, ButtonClickHdl, TriStateBox*, pBox )
{
TriState eState = pBox->GetState();
if ( eState == STATE_DONTKNOW )