summaryrefslogtreecommitdiff
path: root/sc/source/ui/sidebar/AlignmentPropertyPanel.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/sidebar/AlignmentPropertyPanel.cxx')
-rw-r--r--sc/source/ui/sidebar/AlignmentPropertyPanel.cxx55
1 files changed, 0 insertions, 55 deletions
diff --git a/sc/source/ui/sidebar/AlignmentPropertyPanel.cxx b/sc/source/ui/sidebar/AlignmentPropertyPanel.cxx
index c27d0e994f79..d572ffd61a75 100644
--- a/sc/source/ui/sidebar/AlignmentPropertyPanel.cxx
+++ b/sc/source/ui/sidebar/AlignmentPropertyPanel.cxx
@@ -45,7 +45,6 @@ AlignmentPropertyPanel::AlignmentPropertyPanel(
maMergeCellControl(FID_MERGE_TOGGLE, *pBindings, *this),
maWrapTextControl(SID_ATTR_ALIGN_LINEBREAK, *pBindings, *this),
maAngleControl(SID_ATTR_ALIGN_DEGREES, *pBindings, *this),
- maStackControl(SID_ATTR_ALIGN_STACKED, *pBindings, *this),
mbMultiDisable(false),
mxFrame(rxFrame),
maContext(),
@@ -56,9 +55,7 @@ AlignmentPropertyPanel::AlignmentPropertyPanel(
get(mpCBXWrapText, "wraptext");
get(mpCBXMergeCell, "mergecells");
get(mpFtRotate, "orientationlabel");
- get(mpCtrlDial, "orientationcontrol");
get(mpMtrAngle, "orientationdegrees");
- get(mpCbStacked, "verticallystacked");
Initialize();
@@ -78,16 +75,13 @@ void AlignmentPropertyPanel::dispose()
mpCBXWrapText.clear();
mpCBXMergeCell.clear();
mpFtRotate.clear();
- mpCtrlDial.clear();
mpMtrAngle.clear();
- mpCbStacked.clear();
maAlignHorControl.dispose();
maLeftIndentControl.dispose();
maMergeCellControl.dispose();
maWrapTextControl.dispose();
maAngleControl.dispose();
- maStackControl.dispose();
PanelLayout::dispose();
}
@@ -107,8 +101,6 @@ void AlignmentPropertyPanel::Initialize()
mpCBXWrapText->SetClickHdl ( aLink );
//rotation control
- mpCtrlDial->SetAccessibleName(OUString( "Text Orientation")); //wj acc
- mpCtrlDial->SetModifyHdl(LINK( this, AlignmentPropertyPanel, RotationHdl));
//rotation
mpMtrAngle->SetAccessibleName(OUString( "Text Orientation")); //wj acc
@@ -116,7 +108,6 @@ void AlignmentPropertyPanel::Initialize()
mpMtrAngle->EnableAutocomplete( false );
//Vertical stacked
- mpCbStacked->SetClickHdl( LINK( this, AlignmentPropertyPanel, ClickStackHdl ) );
mpMtrAngle->InsertValue(0, FUNIT_CUSTOM);
mpMtrAngle->InsertValue(45, FUNIT_CUSTOM);
@@ -170,27 +161,6 @@ IMPL_LINK_NOARG( AlignmentPropertyPanel, AngleModifiedHdl )
SID_ATTR_ALIGN_DEGREES, SfxCallMode::RECORD, &aAngleItem, 0L );
return 0;
}
-
-IMPL_LINK_NOARG( AlignmentPropertyPanel, RotationHdl )
-{
- sal_Int32 nTmp = mpCtrlDial->GetRotation();
- SfxInt32Item aAngleItem( SID_ATTR_ALIGN_DEGREES,(sal_uInt32) nTmp);
-
- GetBindings()->GetDispatcher()->Execute(
- SID_ATTR_ALIGN_DEGREES, SfxCallMode::RECORD, &aAngleItem, 0L );
-
- return 0;
-}
-
-IMPL_LINK_NOARG( AlignmentPropertyPanel, ClickStackHdl )
-{
- bool bVertical = mpCbStacked->IsChecked();
- SfxBoolItem aStackItem( SID_ATTR_ALIGN_STACKED, bVertical );
- GetBindings()->GetDispatcher()->Execute(
- SID_ATTR_ALIGN_STACKED, SfxCallMode::RECORD, &aStackItem, 0L );
- return 0;
-}
-
IMPL_LINK_NOARG(AlignmentPropertyPanel, MFLeftIndentMdyHdl)
{
mpCBXWrapText->EnableTriState(false);
@@ -282,17 +252,14 @@ void AlignmentPropertyPanel::NotifyItemUpdate(
if( meHorAlignState == SVX_HOR_JUSTIFY_REPEAT )
{
mpFtRotate->Disable();
- mpCtrlDial->Disable();
mpMtrAngle->Disable();
}
else
{
mpFtRotate->Enable(!mbMultiDisable);
- mpCtrlDial->Enable(!mbMultiDisable);
mpMtrAngle->Enable(!mbMultiDisable);
}
- mpCbStacked->Enable( meHorAlignState != SVX_HOR_JUSTIFY_REPEAT );
mpFTLeftIndent->Enable( meHorAlignState == SVX_HOR_JUSTIFY_LEFT );
mpMFLeftIndent->Enable( meHorAlignState == SVX_HOR_JUSTIFY_LEFT );
}
@@ -352,7 +319,6 @@ void AlignmentPropertyPanel::NotifyItemUpdate(
{
long nTmp = static_cast<const SfxInt32Item*>(pState)->GetValue();
mpMtrAngle->SetValue( nTmp / 100); //wj
- mpCtrlDial->SetRotation( nTmp );
switch(nTmp)
{
case 0:
@@ -383,29 +349,8 @@ void AlignmentPropertyPanel::NotifyItemUpdate(
else
{
mpMtrAngle->SetText( OUString() );
- mpCtrlDial->SetRotation( 0 );
}
break;
- case SID_ATTR_ALIGN_STACKED:
- if (eState >= SfxItemState::DEFAULT)
- {
- mpCbStacked->EnableTriState(false);
- const SfxBoolItem* aStackItem = static_cast<const SfxBoolItem*>(pState);
- mbMultiDisable = aStackItem->GetValue();
- mpCbStacked->Check(mbMultiDisable);
- mpFtRotate->Enable(!mbMultiDisable);
- mpMtrAngle->Enable(!mbMultiDisable);
- mpCtrlDial->Enable(!mbMultiDisable);
- }
- else
- {
- mbMultiDisable = true;
- mpFtRotate->Disable();
- mpMtrAngle->Disable();
- mpCtrlDial->Disable();
- mpCbStacked->EnableTriState(true);
- mpCbStacked->SetState(TRISTATE_INDET);
- }
}
}