summaryrefslogtreecommitdiff
path: root/cui/source/tabpages/labdlg.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'cui/source/tabpages/labdlg.cxx')
-rw-r--r--cui/source/tabpages/labdlg.cxx112
1 files changed, 56 insertions, 56 deletions
diff --git a/cui/source/tabpages/labdlg.cxx b/cui/source/tabpages/labdlg.cxx
index 4eeb6be807fe..e722bfa43c6b 100644
--- a/cui/source/tabpages/labdlg.cxx
+++ b/cui/source/tabpages/labdlg.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -48,21 +48,21 @@
// define ----------------------------------------------------------------
-#define AZ_OPTIMAL 0
-#define AZ_VON_OBEN 1
-#define AZ_VON_LINKS 2
-#define AZ_HORIZONTAL 3
-#define AZ_VERTIKAL 4
+#define AZ_OPTIMAL 0
+#define AZ_VON_OBEN 1
+#define AZ_VON_LINKS 2
+#define AZ_HORIZONTAL 3
+#define AZ_VERTIKAL 4
-#define AT_OBEN 0
-#define AT_MITTE 1
-#define AT_UNTEN 2
+#define AT_OBEN 0
+#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
+#define WK_OPTIMAL 0
+#define WK_30 1
+#define WK_45 2
+#define WK_60 3
+#define WK_90 4
// static ----------------------------------------------------------------
@@ -84,27 +84,27 @@ static USHORT pCaptionRanges[] =
// -----------------------------------------------------------------------
SvxCaptionTabPage::SvxCaptionTabPage(Window* pParent, const SfxItemSet& rInAttrs)
- : SfxTabPage( pParent, CUI_RES( RID_SVXPAGE_CAPTION ), 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 ) ),
- aMF_ANSATZ( this, CUI_RES( MF_ANSATZ ) ),
- aFT_ANSATZ_REL( this, CUI_RES( FT_ANSATZ_REL ) ),
- aLB_ANSATZ_REL( this, CUI_RES( LB_ANSATZ_REL ) ),
- aFT_LAENGE( this, CUI_RES( FT_LAENGE ) ),
- aMF_LAENGE( this, CUI_RES( MF_LAENGE ) ),
- aCB_LAENGE( this, CUI_RES( CB_LAENGE ) ),
+ : SfxTabPage( pParent, CUI_RES( RID_SVXPAGE_CAPTION ), 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 ) ),
+ aMF_ANSATZ( this, CUI_RES( MF_ANSATZ ) ),
+ aFT_ANSATZ_REL( this, CUI_RES( FT_ANSATZ_REL ) ),
+ aLB_ANSATZ_REL( this, CUI_RES( LB_ANSATZ_REL ) ),
+ aFT_LAENGE( this, CUI_RES( FT_LAENGE ) ),
+ aMF_LAENGE( this, CUI_RES( MF_LAENGE ) ),
+ aCB_LAENGE( this, CUI_RES( CB_LAENGE ) ),
aStrHorzList( CUI_RES(STR_HORZ_LIST) ),
aStrVertList( CUI_RES(STR_VERT_LIST) ),
- rOutAttrs ( rInAttrs )
+ rOutAttrs ( rInAttrs )
{
//------------NYI-------------------------------------------
aFT_WINKEL.Hide();
@@ -138,9 +138,9 @@ SvxCaptionTabPage::SvxCaptionTabPage(Window* pParent, const SfxItemSet& rInAttrs
aCT_CAPTTYPE.SetSelectHdl(LINK( this, SvxCaptionTabPage, SelectCaptTypeHdl_Impl));
Image aImage;
- aCT_CAPTTYPE.InsertItem(BMP_CAPTTYPE_1, aImage, String(CUI_RES(STR_CAPTTYPE_1)));
- aCT_CAPTTYPE.InsertItem(BMP_CAPTTYPE_2, aImage, String(CUI_RES(STR_CAPTTYPE_2)));
- aCT_CAPTTYPE.InsertItem(BMP_CAPTTYPE_3, aImage, String(CUI_RES(STR_CAPTTYPE_3)));
+ aCT_CAPTTYPE.InsertItem(BMP_CAPTTYPE_1, aImage, String(CUI_RES(STR_CAPTTYPE_1)));
+ aCT_CAPTTYPE.InsertItem(BMP_CAPTTYPE_2, aImage, String(CUI_RES(STR_CAPTTYPE_2)));
+ aCT_CAPTTYPE.InsertItem(BMP_CAPTTYPE_3, aImage, String(CUI_RES(STR_CAPTTYPE_3)));
FillValueSet();
@@ -178,7 +178,7 @@ BOOL SvxCaptionTabPage::FillItemSet( SfxItemSet& _rOutAttrs)
SfxItemPool* pPool = _rOutAttrs.GetPool();
DBG_ASSERT( pPool, "Wo ist der Pool" );
- SfxMapUnit eUnit;
+ SfxMapUnit eUnit;
nCaptionType = aCT_CAPTTYPE.GetSelectItemId()-1;
@@ -195,8 +195,8 @@ BOOL SvxCaptionTabPage::FillItemSet( SfxItemSet& _rOutAttrs)
{
switch( nEscDir )
{
- case SDRCAPT_ESCHORIZONTAL: nEscDir=SDRCAPT_ESCVERTICAL;break;
- case SDRCAPT_ESCVERTICAL: nEscDir=SDRCAPT_ESCHORIZONTAL;break;
+ case SDRCAPT_ESCHORIZONTAL: nEscDir=SDRCAPT_ESCVERTICAL;break;
+ case SDRCAPT_ESCVERTICAL: nEscDir=SDRCAPT_ESCHORIZONTAL;break;
}
}
@@ -207,13 +207,13 @@ BOOL SvxCaptionTabPage::FillItemSet( SfxItemSet& _rOutAttrs)
if( bEscRel )
{
- long nVal = 0;
+ long nVal = 0;
switch( aLB_ANSATZ_REL.GetSelectEntryPos() )
{
- case AT_OBEN: nVal=0;break;
- case AT_MITTE: nVal=5000;break;
- case AT_UNTEN: nVal=10000;break;
+ case AT_OBEN: nVal=0;break;
+ case AT_MITTE: nVal=5000;break;
+ case AT_UNTEN: nVal=10000;break;
}
_rOutAttrs.Put( SdrCaptionEscRelItem( nVal ) );
}
@@ -265,11 +265,11 @@ void SvxCaptionTabPage::Reset( const SfxItemSet& )
SetFieldUnit( aMF_ANSATZ, eFUnit );
SetFieldUnit( aMF_LAENGE, eFUnit );
- SfxItemPool* pPool = rOutAttrs.GetPool();
+ SfxItemPool* pPool = rOutAttrs.GetPool();
DBG_ASSERT( pPool, "Wo ist der Pool" );
- USHORT nWhich;
- SfxMapUnit eUnit;
+ USHORT nWhich;
+ SfxMapUnit eUnit;
//------- Winkel ----------
nWhich = GetWhich( SDRATTR_CAPTIONANGLE );
@@ -311,8 +311,8 @@ void SvxCaptionTabPage::Reset( const SfxItemSet& )
{
switch( nEscDir )
{
- case SDRCAPT_ESCHORIZONTAL: nEscDir=SDRCAPT_ESCVERTICAL;break;
- case SDRCAPT_ESCVERTICAL: nEscDir=SDRCAPT_ESCHORIZONTAL;break;
+ case SDRCAPT_ESCHORIZONTAL: nEscDir=SDRCAPT_ESCVERTICAL;break;
+ case SDRCAPT_ESCVERTICAL: nEscDir=SDRCAPT_ESCHORIZONTAL;break;
}
}
@@ -392,7 +392,7 @@ SfxTabPage* SvxCaptionTabPage::Create( Window* pWindow,
//------------------------------------------------------------------------
-USHORT* SvxCaptionTabPage::GetRanges()
+USHORT* SvxCaptionTabPage::GetRanges()
{
return( pCaptionRanges );
}
@@ -401,13 +401,13 @@ USHORT* SvxCaptionTabPage::GetRanges()
void SvxCaptionTabPage::SetupAnsatz_Impl( USHORT nType )
{
- xub_StrLen nCnt=0, nIdx=0;
+ xub_StrLen nCnt=0, nIdx=0;
switch( nType )
{
case AZ_OPTIMAL:
-// aMF_ANSATZ.Hide(); //XXX auch bei OPTIMAL werden Abswerte genommen
-// aFT_UM.Hide();
+// aMF_ANSATZ.Hide(); //XXX auch bei OPTIMAL werden Abswerte genommen
+// aFT_UM.Hide();
aMF_ANSATZ.Show();
aFT_UM.Show();
aFT_ANSATZ_REL.Hide();
@@ -580,7 +580,7 @@ void SvxCaptionTabPage::FillValueSet()
SvxCaptionTabDialog::SvxCaptionTabDialog(Window* pParent, const SdrView* pSdrView, USHORT nAnchorTypes)
- : SfxTabDialog( pParent, CUI_RES( RID_SVXDLG_CAPTION ) ),
+ : SfxTabDialog( pParent, CUI_RES( RID_SVXDLG_CAPTION ) ),
pView ( pSdrView ),
nAnchorCtrls(nAnchorTypes)
{
@@ -590,13 +590,13 @@ SvxCaptionTabDialog::SvxCaptionTabDialog(Window* pParent, const SdrView* pSdrVie
//different positioning page in Writer
if(nAnchorCtrls & 0x00ff )
- {
- AddTabPage( RID_SVXPAGE_SWPOSSIZE, SvxSwPosSizeTabPage::Create,
+ {
+ AddTabPage( RID_SVXPAGE_SWPOSSIZE, SvxSwPosSizeTabPage::Create,
SvxSwPosSizeTabPage::GetRanges );
RemoveTabPage( RID_SVXPAGE_POSITION_SIZE);
}
else
- {
+ {
AddTabPage( RID_SVXPAGE_POSITION_SIZE, SvxPositionSizeTabPage::Create,
SvxPositionSizeTabPage::GetRanges );
RemoveTabPage( RID_SVXPAGE_SWPOSSIZE );
@@ -631,7 +631,7 @@ void SvxCaptionTabDialog::PageCreated( USHORT nId, SfxTabPage &rPage )
SvxSwPosSizeTabPage& rSwPage = static_cast<SvxSwPosSizeTabPage&>(rPage);
rSwPage.EnableAnchorTypes(nAnchorCtrls);
rSwPage.SetValidateFramePosLink( aValidateLink );
- }
+ }
break;
case RID_SVXPAGE_CAPTION:
@@ -646,7 +646,7 @@ void SvxCaptionTabDialog::PageCreated( USHORT nId, SfxTabPage &rPage )
void SvxCaptionTabDialog::SetValidateFramePosLink( const Link& rLink )
{
aValidateLink = rLink;
-}
+}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */