summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-01-04 23:34:51 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-01-04 23:38:57 +0000
commit6670e1f5df7f6b27b9af07d1b401d8bc1e474f73 (patch)
tree535f1cdf14b4fc6be92583a32562dbf10a87537f /cui
parent1d4f3c627f8af013645c0e93da9323c1800acc0c (diff)
near obsolete SdrCaption dialog has Not Implemented Yet stub
and it's never going to be now, so remove unused WINKEL elements. The whole SDRATTR_CAPTIONANGLE attribute is under doubt methinks. Change-Id: Ie51eb8efbeb9a2e70780f2e19ddc57b2fb9a86eb
Diffstat (limited to 'cui')
-rw-r--r--cui/source/inc/labdlg.hxx4
-rw-r--r--cui/source/tabpages/labdlg.cxx39
-rw-r--r--cui/source/tabpages/labdlg.hrc2
-rw-r--r--cui/source/tabpages/labdlg.src24
4 files changed, 0 insertions, 69 deletions
diff --git a/cui/source/inc/labdlg.hxx b/cui/source/inc/labdlg.hxx
index 68f4379df2f2..f63aa757953b 100644
--- a/cui/source/inc/labdlg.hxx
+++ b/cui/source/inc/labdlg.hxx
@@ -36,8 +36,6 @@ private:
ValueSet aCT_CAPTTYPE;
FixedText aFT_ABSTAND;
MetricField aMF_ABSTAND;
- FixedText aFT_WINKEL;
- ListBox aLB_WINKEL;
FixedText aFT_ANSATZ;
ListBox aLB_ANSATZ;
FixedText aFT_UM;
@@ -54,8 +52,6 @@ private:
OUString aStrVertList;
short nCaptionType;
- sal_Bool bFixedAngle;
- sal_Int32 nFixedAngle;
sal_Int32 nGap;
short nEscDir;
sal_Bool bEscRel;
diff --git a/cui/source/tabpages/labdlg.cxx b/cui/source/tabpages/labdlg.cxx
index 5fac81733a09..5c28178578ee 100644
--- a/cui/source/tabpages/labdlg.cxx
+++ b/cui/source/tabpages/labdlg.cxx
@@ -50,12 +50,6 @@
#define AT_MITTE 1
#define AT_UNTEN 2
-#define WK_OPTIMAL 0
-#define WK_30 1
-#define WK_45 2
-#define WK_60 3
-#define WK_90 4
-
// static ----------------------------------------------------------------
static sal_uInt16 pCaptionRanges[] =
@@ -81,8 +75,6 @@ SvxCaptionTabPage::SvxCaptionTabPage(Window* pParent, const SfxItemSet& rInAttrs
aCT_CAPTTYPE( this, CUI_RES( CT_CAPTTYPE ) ),
aFT_ABSTAND( this, CUI_RES( FT_ABSTAND ) ),
aMF_ABSTAND( this, CUI_RES( MF_ABSTAND ) ),
- aFT_WINKEL( this, CUI_RES( FT_WINKEL ) ),
- aLB_WINKEL( this, CUI_RES( LB_WINKEL ) ),
aFT_ANSATZ( this, CUI_RES( FT_ANSATZ ) ),
aLB_ANSATZ( this, CUI_RES( LB_ANSATZ ) ),
aFT_UM( this, CUI_RES( FT_UM ) ),
@@ -98,10 +90,6 @@ SvxCaptionTabPage::SvxCaptionTabPage(Window* pParent, const SfxItemSet& rInAttrs
rOutAttrs ( rInAttrs )
{
- //------------NYI-------------------------------------------
- aFT_WINKEL.Hide();
- aLB_WINKEL.Hide();
-
//------------correct positions-------------------------
aFT_ANSATZ_REL.SetPosPixel( aFT_UM.GetPosPixel() );
aLB_ANSATZ_REL.SetPosPixel(
@@ -257,10 +245,6 @@ void SvxCaptionTabPage::Reset( const SfxItemSet& )
sal_uInt16 nWhich;
SfxMapUnit eUnit;
- //------- angle ----------
- nWhich = GetWhich( SDRATTR_CAPTIONANGLE );
- nFixedAngle = ( ( const SdrCaptionAngleItem& ) rOutAttrs.Get( nWhich ) ).GetValue();
-
nWhich = GetWhich( SDRATTR_CAPTIONESCABS );
eUnit = pPool->GetMetric( nWhich );
nEscAbs = ( ( const SdrCaptionEscAbsItem& ) rOutAttrs.Get( nWhich ) ).GetValue();
@@ -285,7 +269,6 @@ void SvxCaptionTabPage::Reset( const SfxItemSet& )
nGap = static_cast<long>(aMF_ABSTAND.GetValue());
nCaptionType = (short)( ( const SdrCaptionTypeItem& ) rOutAttrs.Get( GetWhich( SDRATTR_CAPTIONTYPE ) ) ).GetValue();
- bFixedAngle = ( ( const SfxBoolItem& ) rOutAttrs.Get( GetWhich( SDRATTR_CAPTIONFIXEDANGLE ) ) ).GetValue();
bFitLineLen = ( ( const SfxBoolItem& ) rOutAttrs.Get( GetWhich( SDRATTR_CAPTIONFITLINELEN ) ) ).GetValue();
nEscDir = (short)( ( const SdrCaptionEscDirItem& ) rOutAttrs.Get( GetWhich( SDRATTR_CAPTIONESCDIR ) ) ).GetValue();
bEscRel = ( ( const SfxBoolItem& ) rOutAttrs.Get( GetWhich( SDRATTR_CAPTIONESCISREL ) ) ).GetValue();
@@ -302,7 +285,6 @@ void SvxCaptionTabPage::Reset( const SfxItemSet& )
nAnsatzRelPos=AT_MITTE;
nAnsatzTypePos=AZ_OPTIMAL;
- nWinkelTypePos=WK_OPTIMAL;
aMF_ABSTAND.SetValue( nGap );
@@ -343,23 +325,10 @@ void SvxCaptionTabPage::Reset( const SfxItemSet& )
nAnsatzTypePos = AZ_OPTIMAL;
}
- if( bFixedAngle )
- {
- if( nFixedAngle <= 3000 )
- nWinkelTypePos=WK_30;
- else if( nFixedAngle <= 4500 )
- nWinkelTypePos=WK_45;
- else if( nFixedAngle <= 6000 )
- nWinkelTypePos=WK_60;
- else
- nWinkelTypePos=WK_90;
- }
-
aCB_LAENGE.Check( bFitLineLen );
aMF_LAENGE.SetValue( nLineLen );
aLB_ANSATZ.SelectEntryPos( nAnsatzTypePos );
- aLB_WINKEL.SelectEntryPos( nWinkelTypePos );
SetupAnsatz_Impl( nAnsatzTypePos );
aCT_CAPTTYPE.SelectItem( nCaptionType+1 ); // Enum starts at 0!
@@ -505,32 +474,24 @@ void SvxCaptionTabPage::SetupType_Impl( sal_uInt16 nType )
switch( nType-1 )
{
case SDRCAPT_TYPE1:
- aFT_WINKEL.Disable();
- aLB_WINKEL.Disable();
aFT_LAENGE.Disable();
aCB_LAENGE.Disable();
LineOptHdl_Impl( &aCB_LAENGE );
break;
case SDRCAPT_TYPE2:
- aFT_WINKEL.Enable();
- aLB_WINKEL.Enable();
aFT_LAENGE.Disable();
aCB_LAENGE.Disable();
LineOptHdl_Impl( &aCB_LAENGE );
break;
case SDRCAPT_TYPE3:
- aFT_WINKEL.Enable();
- aLB_WINKEL.Enable();
aFT_LAENGE.Enable();
aCB_LAENGE.Enable();
LineOptHdl_Impl( &aCB_LAENGE );
break;
case SDRCAPT_TYPE4:
- aFT_WINKEL.Enable();
- aLB_WINKEL.Enable();
aFT_LAENGE.Enable();
aCB_LAENGE.Enable();
LineOptHdl_Impl( &aCB_LAENGE );
diff --git a/cui/source/tabpages/labdlg.hrc b/cui/source/tabpages/labdlg.hrc
index 4ce4485052f9..acd7e72c442e 100644
--- a/cui/source/tabpages/labdlg.hrc
+++ b/cui/source/tabpages/labdlg.hrc
@@ -24,7 +24,6 @@
#define BTN_HELP 1
#define FT_ABSTAND 1
-#define FT_WINKEL 2
#define FT_ANSATZ 3
#define FT_LAENGE 4
#define FT_UM 5
@@ -38,7 +37,6 @@
#define CB_LAENGE 1
-#define LB_WINKEL 1
#define LB_ANSATZ 2
#define LB_ANSATZ_REL 3
diff --git a/cui/source/tabpages/labdlg.src b/cui/source/tabpages/labdlg.src
index 24374dd55d7a..3bac45a7513e 100644
--- a/cui/source/tabpages/labdlg.src
+++ b/cui/source/tabpages/labdlg.src
@@ -58,30 +58,6 @@ TabPage RID_SVXPAGE_CAPTION
Unit = FUNIT_MM ;
SpinSize = 50 ;
};
- FixedText FT_WINKEL
- {
- Pos = MAP_APPFONT ( 106 , 53 ) ;
- Size = MAP_APPFONT ( 35 , 8 ) ;
- Text [ en-US ] = "~Angle" ;
- };
- ListBox LB_WINKEL
- {
- HelpID = "cui:ListBox:RID_SVXPAGE_CAPTION:LB_WINKEL";
- Border = TRUE ;
- Pos = MAP_APPFONT ( 143 , 51 ) ;
- Size = MAP_APPFONT ( 50 , 60 ) ;
- TabStop = TRUE ;
- DropDown = TRUE ;
- CurPos = 0 ;
- StringList [ en-US ] =
- {
- < "Free" ; 1 ; > ;
- < "30 Degrees" ; 3000 ; > ;
- < "45 Degrees" ; 4500 ; > ;
- < "60 Degrees" ; 6000 ; > ;
- < "90 Degrees" ; 9000 ; > ;
- };
- };
FixedText FT_ANSATZ
{
Pos = MAP_APPFONT ( 6 , 69 ) ;