diff options
Diffstat (limited to 'sd/source/ui/app')
31 files changed, 293 insertions, 293 deletions
diff --git a/sd/source/ui/app/_app.hrc b/sd/source/ui/app/_app.hrc index 3bbaaf9f4557..7b3eaa023175 100644 --- a/sd/source/ui/app/_app.hrc +++ b/sd/source/ui/app/_app.hrc @@ -1,7 +1,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 diff --git a/sd/source/ui/app/accel_tmpl.src b/sd/source/ui/app/accel_tmpl.src index 467c5e2ae466..5afada2dd5fc 100644 --- a/sd/source/ui/app/accel_tmpl.src +++ b/sd/source/ui/app/accel_tmpl.src @@ -1,7 +1,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 @@ -57,7 +57,7 @@ Accelerator SD_ACCELERATOR AI_COPYOBJECTS AI_LEAVE_GROUP AI_ATTR_TRANSFORM - // AI_NAVIGATOR + // AI_NAVIGATOR AI_SD_NAVIGATOR AI_SPELLING AI_THESAURUS diff --git a/sd/source/ui/app/accelids_tmpl.src b/sd/source/ui/app/accelids_tmpl.src index 0a3c33c0bb38..a96008c1d862 100644 --- a/sd/source/ui/app/accelids_tmpl.src +++ b/sd/source/ui/app/accelids_tmpl.src @@ -1,7 +1,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 diff --git a/sd/source/ui/app/app.src b/sd/source/ui/app/app.src index 94945be2c3ce..4433082781a7 100644 --- a/sd/source/ui/app/app.src +++ b/sd/source/ui/app/app.src @@ -1,7 +1,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 diff --git a/sd/source/ui/app/menu_tmpl.src b/sd/source/ui/app/menu_tmpl.src index d4c6e2774024..24b7df31bd28 100644 --- a/sd/source/ui/app/menu_tmpl.src +++ b/sd/source/ui/app/menu_tmpl.src @@ -1,7 +1,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 @@ -31,7 +31,7 @@ #include "menuids2.src" #endif -#define DEFINE_SLOTID_FOR_NUMBER_BULLETS SID_OUTLINE_BULLET +#define DEFINE_SLOTID_FOR_NUMBER_BULLETS SID_OUTLINE_BULLET /*The application menu bar resource has become obsolete. You can now find the menu bar definition at: diff --git a/sd/source/ui/app/menuids2_tmpl.src b/sd/source/ui/app/menuids2_tmpl.src index 21d906bfedf0..0913a74cb585 100755 --- a/sd/source/ui/app/menuids2_tmpl.src +++ b/sd/source/ui/app/menuids2_tmpl.src @@ -1,7 +1,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 @@ -28,23 +28,23 @@ #ifndef _MENUIDS2_SRC #define _MENUIDS2_SRC -#define MI(x) MenuItem { x }; +#define MI(x) MenuItem { x }; #define SEPARATOR MenuItem { Separator = TRUE; }; // SubMenu-IDs -#define MN_SUB_VIEW 91 -#define MN_SUB_TOOLBAR 92 -#define MN_SUB_GRAPHIC 93 -#define MN_SUB_SPELLING 94 -#define MN_SUB_TEMPLATES 95 -#define MN_SUB_POSITION 96 -#define MN_SUB_MASTERPAGE 97 -#define MN_SUB_SEND 98 -#define MN_SUB_FIELD 99 -#define MN_SUB_OUTPUT_QUALITY 100 -#define MN_SUB_PREVIEW_OUTPUT_QUALITY 101 -#define MN_SUB_GROUP 102 -#define MN_TEMPLATES 103 -#define MN_SUB_MASTER_LAYOUTS 104 +#define MN_SUB_VIEW 91 +#define MN_SUB_TOOLBAR 92 +#define MN_SUB_GRAPHIC 93 +#define MN_SUB_SPELLING 94 +#define MN_SUB_TEMPLATES 95 +#define MN_SUB_POSITION 96 +#define MN_SUB_MASTERPAGE 97 +#define MN_SUB_SEND 98 +#define MN_SUB_FIELD 99 +#define MN_SUB_OUTPUT_QUALITY 100 +#define MN_SUB_PREVIEW_OUTPUT_QUALITY 101 +#define MN_SUB_GROUP 102 +#define MN_TEMPLATES 103 +#define MN_SUB_MASTER_LAYOUTS 104 // Windowmenu-ID (wird in globlmn.hrc gebraucht) #ifndef MN_WIN @@ -113,7 +113,7 @@ HelpID = 20 ; \ Command = ".uno:EditMenu"; \ Text [ en-US ] = "~Edit" ; \ - + #define MN_PASTE2 \ MenuItem\ {\ @@ -169,7 +169,7 @@ HelpID = 23 ; \ Command = ".uno:ViewMenu" ; \ Text [ en-US ] = "~View" ; \ - + #define MN_TOGGLETOOLBAR \ MenuItem\ {\ @@ -396,7 +396,7 @@ HelpID = 21 ; \ Command = ".uno:InsertMenu" ; \ Text [ en-US ] = "~Insert" ; \ - + #define MN_INSERTPAGE \ MenuItem\ {\ @@ -773,7 +773,7 @@ HelpID = 24 ; \ Command = ".uno:ModifyMenu" ; \ Text [ en-US ] = "~Modify" ; \ - + #define MN_MOREFRONT \ MenuItem\ {\ diff --git a/sd/source/ui/app/menuids3_tmpl.src b/sd/source/ui/app/menuids3_tmpl.src index 09a90fdc0649..a7935fe2c67c 100644 --- a/sd/source/ui/app/menuids3_tmpl.src +++ b/sd/source/ui/app/menuids3_tmpl.src @@ -1,7 +1,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 diff --git a/sd/source/ui/app/menuids4_tmpl.src b/sd/source/ui/app/menuids4_tmpl.src index 9b077db8f22f..5cd541b0243e 100644 --- a/sd/source/ui/app/menuids4_tmpl.src +++ b/sd/source/ui/app/menuids4_tmpl.src @@ -1,7 +1,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 @@ -46,7 +46,7 @@ };\ };\ }; -#endif // _MENUIDS4_SRC +#endif // _MENUIDS4_SRC diff --git a/sd/source/ui/app/menuids_tmpl.src b/sd/source/ui/app/menuids_tmpl.src index e21caafaa739..6e89d6a4d4e0 100644 --- a/sd/source/ui/app/menuids_tmpl.src +++ b/sd/source/ui/app/menuids_tmpl.src @@ -1,7 +1,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 @@ -1271,7 +1271,7 @@ Identifier = DUMMY + 7 ; \ Command = ".uno:LayerMenu" ; \ Text [ en-US ] = "La~yer"; \ - SubMenu = Menu \ + SubMenu = Menu \ {\ ItemList = \ {\ diff --git a/sd/source/ui/app/menuportal_tmpl.src b/sd/source/ui/app/menuportal_tmpl.src index 29d7c6da1e4a..cdc1a705e011 100644 --- a/sd/source/ui/app/menuportal_tmpl.src +++ b/sd/source/ui/app/menuportal_tmpl.src @@ -1,7 +1,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 @@ -32,7 +32,7 @@ #include "menuids2.src" #endif -#define DEFINE_SLOTID_FOR_NUMBER_BULLETS SID_OUTLINE_BULLET +#define DEFINE_SLOTID_FOR_NUMBER_BULLETS SID_OUTLINE_BULLET Menu SD_MENU_PORTAL { @@ -297,13 +297,13 @@ Menu SD_MENU_PORTAL MNSUB_POSITION MNSUB_OBJECT_ALIGN MN_DISTRIBUTE - + //-#i68101#---------------------- SEPARATOR MN_OBJECT_TITLE_DESCRIPTION MN_NAME_GROUP //-#i68101#---------------------- - + SEPARATOR MN_GROUP MN_UNGROUP @@ -341,7 +341,7 @@ Menu SD_MENU_PORTAL MN_HIDE_SLIDE SEPARATOR MN_ANIMATION_OBJECTS -// MN_EFFECT_WIN +// MN_EFFECT_WIN MN_ANIMATION_EFFECTS }; }; diff --git a/sd/source/ui/app/optsitem.cxx b/sd/source/ui/app/optsitem.cxx index 4355da3011c9..a5a26f267646 100755 --- a/sd/source/ui/app/optsitem.cxx +++ b/sd/source/ui/app/optsitem.cxx @@ -1,7 +1,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 @@ -52,8 +52,8 @@ using namespace ::com::sun::star::uno; // ----------------- SdOptionsItem::SdOptionsItem( const SdOptionsGeneric& rParent, const OUString rSubTree ) : - ConfigItem ( rSubTree ), - mrParent ( rParent ) + ConfigItem ( rSubTree ), + mrParent ( rParent ) { } @@ -77,7 +77,7 @@ void SdOptionsItem::Notify( const com::sun::star::uno::Sequence<rtl::OUString>& // ----------------------------------------------------------------------------- -Sequence< Any > SdOptionsItem::GetProperties( const Sequence< OUString >& rNames ) +Sequence< Any > SdOptionsItem::GetProperties( const Sequence< OUString >& rNames ) { return ConfigItem::GetProperties( rNames ); } @@ -101,10 +101,10 @@ void SdOptionsItem::SetModified() // -------------------- SdOptionsGeneric::SdOptionsGeneric( USHORT nConfigId, const OUString& rSubTree ) : - maSubTree ( rSubTree ), - mpCfgItem ( NULL ), - mnConfigId ( nConfigId ), - mbInit ( rSubTree.getLength() == 0 ) + maSubTree ( rSubTree ), + mpCfgItem ( NULL ), + mnConfigId ( nConfigId ), + mbInit ( rSubTree.getLength() == 0 ) { } @@ -114,13 +114,13 @@ void SdOptionsGeneric::Init() const { if( !mbInit ) { - SdOptionsGeneric* pThis = const_cast<SdOptionsGeneric*>(this); + SdOptionsGeneric* pThis = const_cast<SdOptionsGeneric*>(this); if( !mpCfgItem ) pThis->mpCfgItem = new SdOptionsItem( *this, maSubTree ); - const Sequence< OUString > aNames( GetPropertyNames() ); - const Sequence< Any > aValues = mpCfgItem->GetProperties( aNames ); + const Sequence< OUString > aNames( GetPropertyNames() ); + const Sequence< Any > aValues = mpCfgItem->GetProperties( aNames ); if( aNames.getLength() && ( aValues.getLength() == aNames.getLength() ) ) { @@ -147,8 +147,8 @@ SdOptionsGeneric::~SdOptionsGeneric() void SdOptionsGeneric::Commit( SdOptionsItem& rCfgItem ) const { - const Sequence< OUString > aNames( GetPropertyNames() ); - Sequence< Any > aValues( aNames.getLength() ); + const Sequence< OUString > aNames( GetPropertyNames() ); + Sequence< Any > aValues( aNames.getLength() ); if( aNames.getLength() && ( aValues.getLength() == aNames.getLength() ) ) { @@ -165,13 +165,13 @@ void SdOptionsGeneric::Commit( SdOptionsItem& rCfgItem ) const Sequence< OUString > SdOptionsGeneric::GetPropertyNames() const { - ULONG nCount; - const char** ppPropNames; + ULONG nCount; + const char** ppPropNames; GetPropNameArray( ppPropNames, nCount ); Sequence< OUString > aNames( nCount ); - OUString* pNames = aNames.getArray(); + OUString* pNames = aNames.getArray(); for( ULONG i = 0; i < nCount; i++ ) pNames[ i ] = OUString::createFromAscii( ppPropNames[ i ] ); @@ -215,7 +215,7 @@ SdOptionsLayout::SdOptionsLayout( USHORT nConfigId, BOOL bUseConfig ) : bHandlesBezier( FALSE ), bHelplines( TRUE ), nMetric((UINT16)(isMetricSystem() ? FUNIT_CM : FUNIT_INCH)), - nDefTab( 1250 ) + nDefTab( 1250 ) { EnableModify( TRUE ); } @@ -224,7 +224,7 @@ SdOptionsLayout::SdOptionsLayout( USHORT nConfigId, BOOL bUseConfig ) : BOOL SdOptionsLayout::operator==( const SdOptionsLayout& rOpt ) const { - return( IsRulerVisible() == rOpt.IsRulerVisible() && + return( IsRulerVisible() == rOpt.IsRulerVisible() && IsMoveOutline() == rOpt.IsMoveOutline() && IsDragStripes() == rOpt.IsDragStripes() && IsHandlesBezier() == rOpt.IsHandlesBezier() && @@ -304,16 +304,16 @@ BOOL SdOptionsLayout::WriteData( Any* pValues ) const \************************************************************************/ SdOptionsLayoutItem::SdOptionsLayoutItem( USHORT _nWhich ) -: SfxPoolItem ( _nWhich ) -, maOptionsLayout ( 0, FALSE ) +: SfxPoolItem ( _nWhich ) +, maOptionsLayout ( 0, FALSE ) { } // ---------------------------------------------------------------------- SdOptionsLayoutItem::SdOptionsLayoutItem( USHORT _nWhich, SdOptions* pOpts, ::sd::FrameView* pView ) -: SfxPoolItem ( _nWhich ) -, maOptionsLayout ( 0, FALSE ) +: SfxPoolItem ( _nWhich ) +, maOptionsLayout ( 0, FALSE ) { if( pOpts ) { @@ -438,8 +438,8 @@ BOOL SdOptionsContents::WriteData( Any* pValues ) const \************************************************************************/ SdOptionsContentsItem::SdOptionsContentsItem(USHORT _nWhich, SdOptions*, ::sd::FrameView*) -: SfxPoolItem ( _nWhich ) -, maOptionsContents ( 0, FALSE ) +: SfxPoolItem ( _nWhich ) +, maOptionsContents ( 0, FALSE ) { } @@ -514,7 +514,7 @@ SdOptionsMisc::SdOptionsMisc( USHORT nConfigId, BOOL bUseConfig ) : BOOL SdOptionsMisc::operator==( const SdOptionsMisc& rOpt ) const { - return( IsStartWithTemplate() == rOpt.IsStartWithTemplate() && + return( IsStartWithTemplate() == rOpt.IsStartWithTemplate() && IsMarkedHitMovesAlways() == rOpt.IsMarkedHitMovesAlways() && IsMoveOnlyDragging() == rOpt.IsMoveOnlyDragging() && IsCrookNoContortion() == rOpt.IsCrookNoContortion() && @@ -603,7 +603,7 @@ BOOL SdOptionsMisc::ReadData( const Any* pValues ) if( pValues[6].hasValue() ) SetBigHandles( *(sal_Bool*) pValues[ 6 ].getValue() ); if( pValues[7].hasValue() ) SetDoubleClickTextEdit( *(sal_Bool*) pValues[ 7 ].getValue() ); if( pValues[8].hasValue() ) SetClickChangeRotation( *(sal_Bool*) pValues[ 8 ].getValue() ); - // if( pValues[9].hasValue() ) SetPreviewQuality( FRound( *(double*) pValues[ 9 ].getValue() ) ); + // if( pValues[9].hasValue() ) SetPreviewQuality( FRound( *(double*) pValues[ 9 ].getValue() ) ); if( pValues[10].hasValue() ) SetSolidDragging( *(sal_Bool*) pValues[ 10 ].getValue() ); if( pValues[11].hasValue() ) SetSolidMarkHdl( *(sal_Bool*) pValues[ 11 ].getValue() ); // #97016# @@ -624,7 +624,7 @@ BOOL SdOptionsMisc::ReadData( const Any* pValues ) if( pValues[18].hasValue() ) SetSummationOfParagraphs( *(sal_Bool*) pValues[ 18 ].getValue() ); // #90356# - if( pValues[19].hasValue() ) + if( pValues[19].hasValue() ) SetShowUndoDeleteWarning( *(sal_Bool*) pValues[ 19 ].getValue() ); if( pValues[20].hasValue() ) @@ -668,7 +668,7 @@ BOOL SdOptionsMisc::WriteData( Any* pValues ) const pValues[ 13 ] <<= GetDefaultObjectSizeHeight(); pValues[ 14 ] <<= GetPrinterIndependentLayout(); pValues[ 15 ] <<= (sal_Bool)IsShowComments(); - + // just for Impress if( GetConfigId() == SDCFG_IMPRESS ) { @@ -696,16 +696,16 @@ BOOL SdOptionsMisc::WriteData( Any* pValues ) const \************************************************************************/ SdOptionsMiscItem::SdOptionsMiscItem( USHORT _nWhich ) -: SfxPoolItem ( _nWhich ) -, maOptionsMisc ( 0, FALSE ) +: SfxPoolItem ( _nWhich ) +, maOptionsMisc ( 0, FALSE ) { } // ---------------------------------------------------------------------- SdOptionsMiscItem::SdOptionsMiscItem( USHORT _nWhich, SdOptions* pOpts, ::sd::FrameView* pView ) -: SfxPoolItem ( _nWhich ) -, maOptionsMisc ( 0, FALSE ) +: SfxPoolItem ( _nWhich ) +, maOptionsMisc ( 0, FALSE ) { if( pOpts ) { @@ -823,9 +823,9 @@ void SdOptionsMiscItem::SetOptions( SdOptions* pOpts ) const \************************************************************************/ SdOptionsSnap::SdOptionsSnap( USHORT nConfigId, BOOL bUseConfig ) : - SdOptionsGeneric( nConfigId, bUseConfig ? - ( ( SDCFG_DRAW == nConfigId ) ? - B2U( "Office.Draw/Snap" ) : + SdOptionsGeneric( nConfigId, bUseConfig ? + ( ( SDCFG_DRAW == nConfigId ) ? + B2U( "Office.Draw/Snap" ) : B2U( "Office.Impress/Snap" ) ) : OUString() ), bSnapHelplines( TRUE ), @@ -847,7 +847,7 @@ SdOptionsSnap::SdOptionsSnap( USHORT nConfigId, BOOL bUseConfig ) : BOOL SdOptionsSnap::operator==( const SdOptionsSnap& rOpt ) const { - return( IsSnapHelplines() == rOpt.IsSnapHelplines() && + return( IsSnapHelplines() == rOpt.IsSnapHelplines() && IsSnapBorder() == rOpt.IsSnapBorder() && IsSnapFrame() == rOpt.IsSnapFrame() && IsSnapPoints() == rOpt.IsSnapPoints() && @@ -876,7 +876,7 @@ void SdOptionsSnap::GetPropNameArray( const char**& ppNames, ULONG& rCount ) con "Position/RotatingValue", "Position/PointReduction" }; - + rCount = 10; ppNames = aPropNames; } @@ -885,16 +885,16 @@ void SdOptionsSnap::GetPropNameArray( const char**& ppNames, ULONG& rCount ) con BOOL SdOptionsSnap::ReadData( const Any* pValues ) { - if( pValues[0].hasValue() ) SetSnapHelplines( *(sal_Bool*) pValues[ 0 ].getValue() ); - if( pValues[1].hasValue() ) SetSnapBorder( *(sal_Bool*)pValues[ 1 ].getValue() ); - if( pValues[2].hasValue() ) SetSnapFrame( *(sal_Bool*) pValues[ 2 ].getValue() ); - if( pValues[3].hasValue() ) SetSnapPoints( *(sal_Bool*) pValues[ 3 ].getValue() ); - if( pValues[4].hasValue() ) SetOrtho( *(sal_Bool*) pValues[ 4 ].getValue() ); - if( pValues[5].hasValue() ) SetBigOrtho( *(sal_Bool*) pValues[ 5 ].getValue() ); - if( pValues[6].hasValue() ) SetRotate( *(sal_Bool*) pValues[ 6 ].getValue() ); - if( pValues[7].hasValue() ) SetSnapArea( (INT16) *(sal_Int32*) pValues[ 7 ].getValue() ); - if( pValues[8].hasValue() ) SetAngle( (INT16) *(sal_Int32*) pValues[ 8 ].getValue() ); - if( pValues[9].hasValue() ) SetEliminatePolyPointLimitAngle( (INT16) *(sal_Int32*) pValues[ 9 ].getValue() ); + if( pValues[0].hasValue() ) SetSnapHelplines( *(sal_Bool*) pValues[ 0 ].getValue() ); + if( pValues[1].hasValue() ) SetSnapBorder( *(sal_Bool*)pValues[ 1 ].getValue() ); + if( pValues[2].hasValue() ) SetSnapFrame( *(sal_Bool*) pValues[ 2 ].getValue() ); + if( pValues[3].hasValue() ) SetSnapPoints( *(sal_Bool*) pValues[ 3 ].getValue() ); + if( pValues[4].hasValue() ) SetOrtho( *(sal_Bool*) pValues[ 4 ].getValue() ); + if( pValues[5].hasValue() ) SetBigOrtho( *(sal_Bool*) pValues[ 5 ].getValue() ); + if( pValues[6].hasValue() ) SetRotate( *(sal_Bool*) pValues[ 6 ].getValue() ); + if( pValues[7].hasValue() ) SetSnapArea( (INT16) *(sal_Int32*) pValues[ 7 ].getValue() ); + if( pValues[8].hasValue() ) SetAngle( (INT16) *(sal_Int32*) pValues[ 8 ].getValue() ); + if( pValues[9].hasValue() ) SetEliminatePolyPointLimitAngle( (INT16) *(sal_Int32*) pValues[ 9 ].getValue() ); return TRUE; } @@ -903,16 +903,16 @@ BOOL SdOptionsSnap::ReadData( const Any* pValues ) BOOL SdOptionsSnap::WriteData( Any* pValues ) const { - pValues[ 0 ] <<= IsSnapHelplines(); - pValues[ 1 ] <<= IsSnapBorder(); - pValues[ 2 ] <<= IsSnapFrame(); - pValues[ 3 ] <<= IsSnapPoints(); - pValues[ 4 ] <<= IsOrtho(); - pValues[ 5 ] <<= IsBigOrtho(); - pValues[ 6 ] <<= IsRotate(); - pValues[ 7 ] <<= (sal_Int32) GetSnapArea(); - pValues[ 8 ] <<= (sal_Int32) GetAngle(); - pValues[ 9 ] <<= (sal_Int32) GetEliminatePolyPointLimitAngle(); + pValues[ 0 ] <<= IsSnapHelplines(); + pValues[ 1 ] <<= IsSnapBorder(); + pValues[ 2 ] <<= IsSnapFrame(); + pValues[ 3 ] <<= IsSnapPoints(); + pValues[ 4 ] <<= IsOrtho(); + pValues[ 5 ] <<= IsBigOrtho(); + pValues[ 6 ] <<= IsRotate(); + pValues[ 7 ] <<= (sal_Int32) GetSnapArea(); + pValues[ 8 ] <<= (sal_Int32) GetAngle(); + pValues[ 9 ] <<= (sal_Int32) GetEliminatePolyPointLimitAngle(); return TRUE; } @@ -924,16 +924,16 @@ BOOL SdOptionsSnap::WriteData( Any* pValues ) const \************************************************************************/ SdOptionsSnapItem::SdOptionsSnapItem( USHORT _nWhich ) -: SfxPoolItem ( _nWhich ) -, maOptionsSnap ( 0, FALSE ) +: SfxPoolItem ( _nWhich ) +, maOptionsSnap ( 0, FALSE ) { } // ---------------------------------------------------------------------- SdOptionsSnapItem::SdOptionsSnapItem( USHORT _nWhich, SdOptions* pOpts, ::sd::FrameView* pView ) -: SfxPoolItem ( _nWhich ) -, maOptionsSnap ( 0, FALSE ) +: SfxPoolItem ( _nWhich ) +, maOptionsSnap ( 0, FALSE ) { if( pView ) { @@ -1006,12 +1006,12 @@ void SdOptionsSnapItem::SetOptions( SdOptions* pOpts ) const \************************************************************************/ SdOptionsZoom::SdOptionsZoom( USHORT nConfigId, BOOL bUseConfig ) : - SdOptionsGeneric( nConfigId, ( bUseConfig && ( SDCFG_DRAW == nConfigId ) ) ? - B2U( "Office.Draw/Zoom" ) : + SdOptionsGeneric( nConfigId, ( bUseConfig && ( SDCFG_DRAW == nConfigId ) ) ? + B2U( "Office.Draw/Zoom" ) : OUString() ), nX( 1 ), nY( 1 ) - + { EnableModify( TRUE ); } @@ -1025,7 +1025,7 @@ BOOL SdOptionsZoom::operator==( const SdOptionsZoom& rOpt ) const GetScale( nX1, nY1 ); rOpt.GetScale( nX2, nY2 ); - return( ( nX1 == nX2 ) && + return( ( nX1 == nX2 ) && ( nY1 == nY2 ) ); } @@ -1038,7 +1038,7 @@ void SdOptionsZoom::GetPropNameArray( const char**& ppNames, ULONG& rCount ) con "ScaleX", "ScaleY" }; - + rCount = ( GetConfigId() == SDCFG_DRAW ) ? 2 : 0; ppNames = aPropNames; } @@ -1049,9 +1049,9 @@ BOOL SdOptionsZoom::ReadData( const Any* pValues ) { INT32 x = 1, y = 1; - if( pValues[0].hasValue() ) x = ( *(sal_Int32*) pValues[ 0 ].getValue() ); - if( pValues[1].hasValue() ) y = ( *(sal_Int32*) pValues[ 1 ].getValue() ); - + if( pValues[0].hasValue() ) x = ( *(sal_Int32*) pValues[ 0 ].getValue() ); + if( pValues[1].hasValue() ) y = ( *(sal_Int32*) pValues[ 1 ].getValue() ); + SetScale( x, y ); return TRUE; @@ -1065,8 +1065,8 @@ BOOL SdOptionsZoom::WriteData( Any* pValues ) const GetScale( x, y ); - pValues[ 0 ] <<= (sal_Int32) x; - pValues[ 1 ] <<= (sal_Int32) y; + pValues[ 0 ] <<= (sal_Int32) x; + pValues[ 1 ] <<= (sal_Int32) y; return TRUE; } @@ -1078,9 +1078,9 @@ BOOL SdOptionsZoom::WriteData( Any* pValues ) const \************************************************************************/ SdOptionsGrid::SdOptionsGrid( USHORT nConfigId, BOOL bUseConfig ) : - SdOptionsGeneric( nConfigId, bUseConfig ? - ( ( SDCFG_DRAW == nConfigId ) ? - B2U( "Office.Draw/Grid" ) : + SdOptionsGeneric( nConfigId, bUseConfig ? + ( ( SDCFG_DRAW == nConfigId ) ? + B2U( "Office.Draw/Grid" ) : B2U( "Office.Impress/Grid" ) ) : OUString() ) { @@ -1117,7 +1117,7 @@ void SdOptionsGrid::SetDefaults() BOOL SdOptionsGrid::operator==( const SdOptionsGrid& rOpt ) const { - return( GetFldDrawX() == rOpt.GetFldDrawX() && + return( GetFldDrawX() == rOpt.GetFldDrawX() && GetFldDivisionX() == rOpt.GetFldDivisionX() && GetFldDrawY() == rOpt.GetFldDrawY() && GetFldDivisionY() == rOpt.GetFldDivisionY() && @@ -1173,27 +1173,27 @@ void SdOptionsGrid::GetPropNameArray( const char**& ppNames, ULONG& rCount ) con BOOL SdOptionsGrid::ReadData( const Any* pValues ) { - if( pValues[0].hasValue() ) SetFldDrawX( *(sal_Int32*) pValues[ 0 ].getValue() ); - if( pValues[1].hasValue() ) SetFldDrawY( *(sal_Int32*) pValues[ 1 ].getValue() ); + if( pValues[0].hasValue() ) SetFldDrawX( *(sal_Int32*) pValues[ 0 ].getValue() ); + if( pValues[1].hasValue() ) SetFldDrawY( *(sal_Int32*) pValues[ 1 ].getValue() ); if( pValues[2].hasValue() ) { const UINT32 nDivX = FRound( *(double*) pValues[ 2 ].getValue() ); - SetFldDivisionX( SvxOptionsGrid::GetFldDrawX() / ( nDivX + 1 ) ); + SetFldDivisionX( SvxOptionsGrid::GetFldDrawX() / ( nDivX + 1 ) ); } if( pValues[3].hasValue() ) { const UINT32 nDivY = FRound( *(double*) pValues[ 3 ].getValue() ); - SetFldDivisionY( SvxOptionsGrid::GetFldDrawY() / ( nDivY + 1 ) ); + SetFldDivisionY( SvxOptionsGrid::GetFldDrawY() / ( nDivY + 1 ) ); } - if( pValues[4].hasValue() ) SetFldSnapX( *(sal_Int32*) pValues[ 4 ].getValue() ); - if( pValues[5].hasValue() ) SetFldSnapY( *(sal_Int32*) pValues[ 5 ].getValue() ); - if( pValues[6].hasValue() ) SetUseGridSnap( *(sal_Bool*) pValues[ 6 ].getValue() ); - if( pValues[7].hasValue() ) SetSynchronize( *(sal_Bool*) pValues[ 7 ].getValue() ); - if( pValues[8].hasValue() ) SetGridVisible( *(sal_Bool*) pValues[ 8 ].getValue() ); - if( pValues[9].hasValue() ) SetEqualGrid( *(sal_Bool*) pValues[ 9 ].getValue() ); + if( pValues[4].hasValue() ) SetFldSnapX( *(sal_Int32*) pValues[ 4 ].getValue() ); + if( pValues[5].hasValue() ) SetFldSnapY( *(sal_Int32*) pValues[ 5 ].getValue() ); + if( pValues[6].hasValue() ) SetUseGridSnap( *(sal_Bool*) pValues[ 6 ].getValue() ); + if( pValues[7].hasValue() ) SetSynchronize( *(sal_Bool*) pValues[ 7 ].getValue() ); + if( pValues[8].hasValue() ) SetGridVisible( *(sal_Bool*) pValues[ 8 ].getValue() ); + if( pValues[9].hasValue() ) SetEqualGrid( *(sal_Bool*) pValues[ 9 ].getValue() ); return TRUE; } @@ -1202,16 +1202,16 @@ BOOL SdOptionsGrid::ReadData( const Any* pValues ) BOOL SdOptionsGrid::WriteData( Any* pValues ) const { - pValues[ 0 ] <<= (sal_Int32) GetFldDrawX(); - pValues[ 1 ] <<= (sal_Int32) GetFldDrawY(); + pValues[ 0 ] <<= (sal_Int32) GetFldDrawX(); + pValues[ 1 ] <<= (sal_Int32) GetFldDrawY(); pValues[ 2 ] <<= ( GetFldDivisionX() ? ( (double) GetFldDrawX() / GetFldDivisionX() - 1.0 ) : (double) 0 ); pValues[ 3 ] <<= ( GetFldDivisionY() ? ( (double) GetFldDrawY() / GetFldDivisionY() - 1.0 ) : (double) 0 ); - pValues[ 4 ] <<= (sal_Int32) GetFldSnapX(); - pValues[ 5 ] <<= (sal_Int32) GetFldSnapY(); - pValues[ 6 ] <<= IsUseGridSnap(); - pValues[ 7 ] <<= IsSynchronize(); - pValues[ 8 ] <<= IsGridVisible(); - pValues[ 9 ] <<= IsEqualGrid(); + pValues[ 4 ] <<= (sal_Int32) GetFldSnapX(); + pValues[ 5 ] <<= (sal_Int32) GetFldSnapY(); + pValues[ 6 ] <<= IsUseGridSnap(); + pValues[ 7 ] <<= IsSynchronize(); + pValues[ 8 ] <<= IsGridVisible(); + pValues[ 9 ] <<= IsEqualGrid(); return TRUE; } @@ -1275,9 +1275,9 @@ void SdOptionsGridItem::SetOptions( SdOptions* pOpts ) const \************************************************************************/ SdOptionsPrint::SdOptionsPrint( USHORT nConfigId, BOOL bUseConfig ) : - SdOptionsGeneric( nConfigId, bUseConfig ? - ( ( SDCFG_DRAW == nConfigId ) ? - B2U( "Office.Draw/Print" ) : + SdOptionsGeneric( nConfigId, bUseConfig ? + ( ( SDCFG_DRAW == nConfigId ) ? + B2U( "Office.Draw/Print" ) : B2U( "Office.Impress/Print" ) ) : OUString() ), bDraw( TRUE ), @@ -1396,25 +1396,25 @@ void SdOptionsPrint::GetPropNameArray( const char**& ppNames, ULONG& rCount ) co BOOL SdOptionsPrint::ReadData( const Any* pValues ) { - if( pValues[0].hasValue() ) SetDate( *(sal_Bool*) pValues[ 0 ].getValue() ); - if( pValues[1].hasValue() ) SetTime( *(sal_Bool*) pValues[ 1 ].getValue() ); - if( pValues[2].hasValue() ) SetPagename( *(sal_Bool*) pValues[ 2 ].getValue() ); - if( pValues[3].hasValue() ) SetHiddenPages( *(sal_Bool*) pValues[ 3 ].getValue() ); - if( pValues[4].hasValue() ) SetPagesize( *(sal_Bool*) pValues[ 4 ].getValue() ); - if( pValues[5].hasValue() ) SetPagetile( *(sal_Bool*) pValues[ 5 ].getValue() ); - if( pValues[6].hasValue() ) SetBooklet( *(sal_Bool*) pValues[ 6 ].getValue() ); - if( pValues[7].hasValue() ) SetFrontPage( *(sal_Bool*) pValues[ 7 ].getValue() ); - if( pValues[8].hasValue() ) SetBackPage( *(sal_Bool*) pValues[ 8 ].getValue() ); - if( pValues[9].hasValue() ) SetPaperbin( *(sal_Bool*) pValues[ 9 ].getValue() ); - if( pValues[10].hasValue() ) SetOutputQuality( (UINT16) *(sal_Int32*) pValues[ 10 ].getValue() ); - if( pValues[11].hasValue() ) SetDraw( *(sal_Bool*) pValues[ 11 ].getValue() ); + if( pValues[0].hasValue() ) SetDate( *(sal_Bool*) pValues[ 0 ].getValue() ); + if( pValues[1].hasValue() ) SetTime( *(sal_Bool*) pValues[ 1 ].getValue() ); + if( pValues[2].hasValue() ) SetPagename( *(sal_Bool*) pValues[ 2 ].getValue() ); + if( pValues[3].hasValue() ) SetHiddenPages( *(sal_Bool*) pValues[ 3 ].getValue() ); + if( pValues[4].hasValue() ) SetPagesize( *(sal_Bool*) pValues[ 4 ].getValue() ); + if( pValues[5].hasValue() ) SetPagetile( *(sal_Bool*) pValues[ 5 ].getValue() ); + if( pValues[6].hasValue() ) SetBooklet( *(sal_Bool*) pValues[ 6 ].getValue() ); + if( pValues[7].hasValue() ) SetFrontPage( *(sal_Bool*) pValues[ 7 ].getValue() ); + if( pValues[8].hasValue() ) SetBackPage( *(sal_Bool*) pValues[ 8 ].getValue() ); + if( pValues[9].hasValue() ) SetPaperbin( *(sal_Bool*) pValues[ 9 ].getValue() ); + if( pValues[10].hasValue() ) SetOutputQuality( (UINT16) *(sal_Int32*) pValues[ 10 ].getValue() ); + if( pValues[11].hasValue() ) SetDraw( *(sal_Bool*) pValues[ 11 ].getValue() ); // just for impress if( GetConfigId() == SDCFG_IMPRESS ) { - if( pValues[12].hasValue() ) SetNotes( *(sal_Bool*) pValues[ 12 ].getValue() ); - if( pValues[13].hasValue() ) SetHandout( *(sal_Bool*) pValues[ 13 ].getValue() ); - if( pValues[14].hasValue() ) SetOutline( *(sal_Bool*) pValues[ 14 ].getValue() ); + if( pValues[12].hasValue() ) SetNotes( *(sal_Bool*) pValues[ 12 ].getValue() ); + if( pValues[13].hasValue() ) SetHandout( *(sal_Bool*) pValues[ 13 ].getValue() ); + if( pValues[14].hasValue() ) SetOutline( *(sal_Bool*) pValues[ 14 ].getValue() ); if( pValues[15].hasValue() ) SetHandoutHorizontal( *(sal_Bool*) pValues[15].getValue() ); if( pValues[16].hasValue() ) SetHandoutPages( (UINT16)*(sal_Int32*) pValues[16].getValue() ); } @@ -1426,25 +1426,25 @@ BOOL SdOptionsPrint::ReadData( const Any* pValues ) BOOL SdOptionsPrint::WriteData( Any* pValues ) const { - pValues[ 0 ] <<= IsDate(); - pValues[ 1 ] <<= IsTime(); + pValues[ 0 ] <<= IsDate(); + pValues[ 1 ] <<= IsTime(); pValues[ 2 ] <<= IsPagename(); pValues[ 3 ] <<= IsHiddenPages(); - pValues[ 4 ] <<= IsPagesize(); + pValues[ 4 ] <<= IsPagesize(); pValues[ 5 ] <<= IsPagetile(); pValues[ 6 ] <<= IsBooklet(); - pValues[ 7 ] <<= IsFrontPage(); - pValues[ 8 ] <<= IsBackPage(); + pValues[ 7 ] <<= IsFrontPage(); + pValues[ 8 ] <<= IsBackPage(); pValues[ 9 ] <<= IsPaperbin(); - pValues[ 10 ] <<= (sal_Int32) GetOutputQuality(); + pValues[ 10 ] <<= (sal_Int32) GetOutputQuality(); pValues[ 11 ] <<= IsDraw(); - + // just for impress if( GetConfigId() == SDCFG_IMPRESS ) { - pValues[ 12 ] <<= IsNotes(); - pValues[ 13 ] <<= IsHandout(); - pValues[ 14 ] <<= IsOutline(); + pValues[ 12 ] <<= IsNotes(); + pValues[ 13 ] <<= IsHandout(); + pValues[ 14 ] <<= IsOutline(); pValues[ 15 ] <<= IsHandoutHorizontal(); pValues[ 16 ] <<= GetHandoutPages(); } @@ -1459,16 +1459,16 @@ BOOL SdOptionsPrint::WriteData( Any* pValues ) const \************************************************************************/ SdOptionsPrintItem::SdOptionsPrintItem( USHORT _nWhich ) -: SfxPoolItem ( _nWhich ) -, maOptionsPrint ( 0, FALSE ) +: SfxPoolItem ( _nWhich ) +, maOptionsPrint ( 0, FALSE ) { } // ---------------------------------------------------------------------- SdOptionsPrintItem::SdOptionsPrintItem( USHORT _nWhich, SdOptions* pOpts, ::sd::FrameView* ) -: SfxPoolItem ( _nWhich ) -, maOptionsPrint ( 0, FALSE ) +: SfxPoolItem ( _nWhich ) +, maOptionsPrint ( 0, FALSE ) { if( pOpts ) { diff --git a/sd/source/ui/app/popup.src b/sd/source/ui/app/popup.src index 54d25c998ff5..9bd30474750a 100644 --- a/sd/source/ui/app/popup.src +++ b/sd/source/ui/app/popup.src @@ -1,7 +1,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 @@ -36,7 +36,7 @@ #include <svx/globlmn.hrc> #endif -#define DEFINE_SLOTID_FOR_NUMBER_BULLETS SID_OUTLINE_BULLET +#define DEFINE_SLOTID_FOR_NUMBER_BULLETS SID_OUTLINE_BULLET Menu RID_DRAW_TEXTOBJ_INSIDE_POPUP { @@ -367,7 +367,7 @@ Menu RID_MASTERPAGE_POPUP MN_TRANSFORM SEPARATOR MN_CHAR_PARAGRAPH - // MN_PRESENTATIONOBJECT + // MN_PRESENTATIONOBJECT SEPARATOR MN_POSITION }; diff --git a/sd/source/ui/app/popup2_tmpl.src b/sd/source/ui/app/popup2_tmpl.src index 5ee8fb5e4d6a..6bbba0e37800 100644 --- a/sd/source/ui/app/popup2_tmpl.src +++ b/sd/source/ui/app/popup2_tmpl.src @@ -1,7 +1,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 @@ -164,7 +164,7 @@ SEPARATOR MN_STYLEDT SEPARATOR - + }; }; @@ -202,8 +202,8 @@ MN_EFFECT MN_ACTION #endif -// SEPARATOR -// MN_STYLEDT +// SEPARATOR +// MN_STYLEDT }; }; @@ -242,8 +242,8 @@ MN_EFFECT MN_ACTION #endif -// SEPARATOR -// MN_STYLEDT +// SEPARATOR +// MN_STYLEDT }; }; @@ -517,7 +517,7 @@ MN_SLIDE_MENU #elif SD_POPUP == RID_GRAPHIC_TEXTOBJ_POPUP MN_PAGE_MENU -#endif +#endif SEPARATOR MN_CAPTUREPOINT SEPARATOR @@ -698,7 +698,7 @@ MN_OBJECT_ALIGN MN_DISTRIBUTE MN_BREAK - + //-#i68101#---------------------- SEPARATOR MN_OBJECT_TITLE_DESCRIPTION diff --git a/sd/source/ui/app/res_bmp.src b/sd/source/ui/app/res_bmp.src index 0901e53df0ed..2996640ee558 100755 --- a/sd/source/ui/app/res_bmp.src +++ b/sd/source/ui/app/res_bmp.src @@ -1,7 +1,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 @@ -426,7 +426,7 @@ SfxStyleFamilies DLG_STYLE_DESIGNER { < STR_STYLE_FILTER_ALL ; SFXSTYLEBIT_ALL ; > ; }; - }; + }; }; #define STYLE_IMAGE_LISTEF \ IdList = \ @@ -435,13 +435,13 @@ SfxStyleFamilies DLG_STYLE_DESIGNER }; \ IdCount = 2; - ImageList 1 // == BMP_COLOR_NORMAL + 1 + ImageList 1 // == BMP_COLOR_NORMAL + 1 { Prefix = "sf"; MaskColor = IMAGE_MASK_STDCOLOR; STYLE_IMAGE_LISTEF }; - ImageList 2 // == BMP_COLOR_HIGHCONTRAST + 1 + ImageList 2 // == BMP_COLOR_HIGHCONTRAST + 1 { Prefix = "sfh"; MaskColor = IMAGE_MASK_STDCOLOR_HC; diff --git a/sd/source/ui/app/sddll.cxx b/sd/source/ui/app/sddll.cxx index 02945586d013..a2c27ff2d8f6 100644 --- a/sd/source/ui/app/sddll.cxx +++ b/sd/source/ui/app/sddll.cxx @@ -1,7 +1,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 diff --git a/sd/source/ui/app/sddll1.cxx b/sd/source/ui/app/sddll1.cxx index 53a2b4e9b1e9..c197fb8d3696 100755 --- a/sd/source/ui/app/sddll1.cxx +++ b/sd/source/ui/app/sddll1.cxx @@ -1,7 +1,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 diff --git a/sd/source/ui/app/sddll2.cxx b/sd/source/ui/app/sddll2.cxx index 3b576c8c668b..567edcbd974c 100755 --- a/sd/source/ui/app/sddll2.cxx +++ b/sd/source/ui/app/sddll2.cxx @@ -1,7 +1,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 @@ -151,7 +151,7 @@ void SdDLL::RegisterControllers() SvxStyleToolBoxControl::RegisterControl(0, pMod); SvxFontNameToolBoxControl::RegisterControl(0, pMod); -// SvxFontHeightToolBoxControl::RegisterControl(0, pMod); +// SvxFontHeightToolBoxControl::RegisterControl(0, pMod); SvxFontColorToolBoxControl::RegisterControl(0, pMod); SvxGrafFilterToolBoxControl::RegisterControl( SID_GRFFILTER, pMod ); @@ -207,6 +207,6 @@ void SdDLL::RegisterControllers() SvxFrameToolBoxControl::RegisterControl(SID_ATTR_BORDER, pMod ); SvxSubToolBoxControl::RegisterControl(SID_OPTIMIZE_TABLE, pMod); -// SdLayoutControl::RegisterControl( SID_ASSIGN_LAYOUT, pMod ); -// SdLayoutControl::RegisterControl( SID_INSERTPAGE, pMod ); +// SdLayoutControl::RegisterControl( SID_ASSIGN_LAYOUT, pMod ); +// SdLayoutControl::RegisterControl( SID_INSERTPAGE, pMod ); } diff --git a/sd/source/ui/app/sdmod.cxx b/sd/source/ui/app/sdmod.cxx index ccbc7c8f5665..fb36a7fc198b 100755 --- a/sd/source/ui/app/sdmod.cxx +++ b/sd/source/ui/app/sdmod.cxx @@ -1,7 +1,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 @@ -99,7 +99,7 @@ SdModule::SdModule(SfxObjectFactory* pFact1, SfxObjectFactory* pFact2 ) bWaterCan(FALSE), mpResourceContainer(new ::sd::SdGlobalResourceContainer()) { - SetName( UniString::CreateFromAscii( RTL_CONSTASCII_STRINGPARAM( "StarDraw" ) ) ); // Nicht uebersetzen! + SetName( UniString::CreateFromAscii( RTL_CONSTASCII_STRINGPARAM( "StarDraw" ) ) ); // Nicht uebersetzen! pSearchItem = new SvxSearchItem(SID_SEARCH_ITEM); pSearchItem->SetAppFlag(SVX_SEARCHAPP_DRAW); StartListening( *SFX_APP() ); @@ -274,13 +274,13 @@ SdOptions* SdModule::GetSdOptions(DocumentType eDocType) SvStorageStreamRef SdModule::GetOptionStream( const String& rOptionName, SdOptionStreamMode eMode ) { - ::sd::DrawDocShell* pDocSh = PTR_CAST(::sd::DrawDocShell, SfxObjectShell::Current() ); - SvStorageStreamRef xStm; + ::sd::DrawDocShell* pDocSh = PTR_CAST(::sd::DrawDocShell, SfxObjectShell::Current() ); + SvStorageStreamRef xStm; if( pDocSh ) { - DocumentType eType = pDocSh->GetDoc()->GetDocumentType(); - String aStmName; + DocumentType eType = pDocSh->GetDoc()->GetDocumentType(); + String aStmName; if( !xOptionStorage.Is() ) { diff --git a/sd/source/ui/app/sdmod1.cxx b/sd/source/ui/app/sdmod1.cxx index 3c1abc0c7d22..2374f946b00b 100755 --- a/sd/source/ui/app/sdmod1.cxx +++ b/sd/source/ui/app/sdmod1.cxx @@ -1,7 +1,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 @@ -153,7 +153,7 @@ void SdModule::Execute(SfxRequest& rReq) FieldUnit eUnit = (FieldUnit)((const SfxUInt16Item*)pItem)->GetValue(); switch( eUnit ) { - case FUNIT_MM: // nur die Einheiten, die auch im Dialog stehen + case FUNIT_MM: // nur die Einheiten, die auch im Dialog stehen case FUNIT_CM: case FUNIT_INCH: case FUNIT_PICA: @@ -441,7 +441,7 @@ void SdModule::GetState(SfxItemSet& rItemSet) if ( !bOnce ) { ::sd::DrawDocShell* pDocShell = PTR_CAST(::sd::DrawDocShell, SfxObjectShell::Current()); - if( pDocShell ) // Impress or Draw ? + if( pDocShell ) // Impress or Draw ? { ::sd::ViewShell* pViewShell = pDocShell->GetViewShell(); @@ -599,7 +599,7 @@ SfxFrame* SdModule::ExecuteNewDocument( SfxRequest& rReq ) std::auto_ptr< AbstractAssistentDlg > pPilotDlg( pFact ? pFact->CreateAssistentDlg( NULL, !bNewDocDirect ) : 0 ); // Open the Pilot - if( pPilotDlg.get() && pPilotDlg->Execute()==RET_OK ) + if( pPilotDlg.get() && pPilotDlg->Execute()==RET_OK ) { const String aDocPath( pPilotDlg->GetDocPath()); const sal_Bool bIsDocEmpty = pPilotDlg->IsDocEmpty(); diff --git a/sd/source/ui/app/sdmod2.cxx b/sd/source/ui/app/sdmod2.cxx index 58aba6823d3a..5bca13cdeac1 100755 --- a/sd/source/ui/app/sdmod2.cxx +++ b/sd/source/ui/app/sdmod2.cxx @@ -1,7 +1,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 @@ -405,7 +405,7 @@ IMPL_LINK(SdModule, CalcFieldValueHdl, EditFieldInfo*, pInfo) DBG_ERROR("sd::SdModule::CalcFieldValueHdl(), unknown field type!"); } - if( aRepresentation.Len() == 0 ) // TODO: Edit engine doesn't handle empty fields? + if( aRepresentation.Len() == 0 ) // TODO: Edit engine doesn't handle empty fields? aRepresentation += sal_Unicode( ' ' ); pInfo->SetRepresentation( aRepresentation ); } @@ -421,7 +421,7 @@ IMPL_LINK(SdModule, CalcFieldValueHdl, EditFieldInfo*, pInfo) |* virt. Methoden fuer Optionendialog |* \************************************************************************/ -SfxItemSet* SdModule::CreateItemSet( USHORT nSlot ) +SfxItemSet* SdModule::CreateItemSet( USHORT nSlot ) { ::sd::FrameView* pFrameView = NULL; ::sd::DrawDocShell* pDocSh = PTR_CAST(::sd::DrawDocShell, SfxObjectShell::Current() ); @@ -454,7 +454,7 @@ SfxItemSet* SdModule::CreateItemSet( USHORT nSlot ) SfxItemPool& rPool = GetPool(); rPool.SetDefaultMetric( SFX_MAPUNIT_100TH_MM ); - SfxItemSet* pRet = new SfxItemSet( rPool, + SfxItemSet* pRet = new SfxItemSet( rPool, SID_ATTR_METRIC, SID_ATTR_METRIC, SID_ATTR_DEFTABSTOP, SID_ATTR_DEFTABSTOP, @@ -550,7 +550,7 @@ SfxItemSet* SdModule::CreateItemSet( USHORT nSlot ) } void SdModule::ApplyItemSet( USHORT nSlot, const SfxItemSet& rSet ) { - const SfxPoolItem* pItem = NULL; + const SfxPoolItem* pItem = NULL; BOOL bNewDefTab = FALSE; BOOL bNewPrintOptions = FALSE; BOOL bMiscOptions = FALSE; @@ -657,9 +657,9 @@ void SdModule::ApplyItemSet( USHORT nSlot, const SfxItemSet& rSet ) } SfxItemSet aPrintSet( GetPool(), - SID_PRINTER_NOTFOUND_WARN, SID_PRINTER_NOTFOUND_WARN, - SID_PRINTER_CHANGESTODOC, SID_PRINTER_CHANGESTODOC, - ATTR_OPTIONS_PRINT, ATTR_OPTIONS_PRINT, + SID_PRINTER_NOTFOUND_WARN, SID_PRINTER_NOTFOUND_WARN, + SID_PRINTER_CHANGESTODOC, SID_PRINTER_CHANGESTODOC, + ATTR_OPTIONS_PRINT, ATTR_OPTIONS_PRINT, 0 ); // Drucken @@ -672,7 +672,7 @@ void SdModule::ApplyItemSet( USHORT nSlot, const SfxItemSet& rSet ) // PrintOptionsSet setzen SdOptionsPrintItem aPrintItem( ATTR_OPTIONS_PRINT, pOptions ); SfxFlagItem aFlagItem( SID_PRINTER_CHANGESTODOC ); - USHORT nFlags = 0; + USHORT nFlags = 0; nFlags = (aPrintItem.GetOptionsPrint().IsWarningSize() ? SFX_PRINTER_CHG_SIZE : 0) | (aPrintItem.GetOptionsPrint().IsWarningOrientation() ? SFX_PRINTER_CHG_ORIENTATION : 0); @@ -774,14 +774,14 @@ SfxTabPage* SdModule::CreateTabPage( USHORT nId, Window* pParent, const SfxItemS { case SID_SD_TP_CONTENTS: case SID_SI_TP_CONTENTS: - { ::CreateTabPage fnCreatePage = pFact->GetSdOptionsContentsTabPageCreatorFunc(); + { ::CreateTabPage fnCreatePage = pFact->GetSdOptionsContentsTabPageCreatorFunc(); if( fnCreatePage ) pRet = (*fnCreatePage)( pParent, rSet ); } break; case SID_SD_TP_SNAP: case SID_SI_TP_SNAP: - { ::CreateTabPage fnCreatePage = pFact->GetSdOptionsSnapTabPageCreatorFunc(); + { ::CreateTabPage fnCreatePage = pFact->GetSdOptionsSnapTabPageCreatorFunc(); if( fnCreatePage ) pRet = (*fnCreatePage)( pParent, rSet ); } diff --git a/sd/source/ui/app/sdpopup.cxx b/sd/source/ui/app/sdpopup.cxx index 63d6fc0b195c..08eb6e06607b 100644 --- a/sd/source/ui/app/sdpopup.cxx +++ b/sd/source/ui/app/sdpopup.cxx @@ -1,7 +1,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 @@ -52,8 +52,8 @@ \************************************************************************/ SdFieldPopup::SdFieldPopup( const SvxFieldData* pInField, LanguageType eLanguage ) : - PopupMenu (), - pField ( pInField ) + PopupMenu (), + pField ( pInField ) { Fill( eLanguage ); } @@ -92,24 +92,24 @@ void SdFieldPopup::Fill( LanguageType eLanguage ) else CheckItem( 2 ); - //SVXDATEFORMAT_APPDEFAULT, // Wird nicht benutzt - //SVXDATEFORMAT_SYSTEM, // Wird nicht benutzt + //SVXDATEFORMAT_APPDEFAULT, // Wird nicht benutzt + //SVXDATEFORMAT_SYSTEM, // Wird nicht benutzt InsertItem( nID++, String( SdResId( STR_STANDARD_SMALL ) ), nStyle ); InsertItem( nID++, String( SdResId( STR_STANDARD_BIG ) ), nStyle ); SvNumberFormatter* pNumberFormatter = SD_MOD()->GetNumberFormatter(); - aDateField.SetFormat( SVXDATEFORMAT_A ); // 13.02.96 + aDateField.SetFormat( SVXDATEFORMAT_A ); // 13.02.96 InsertItem( nID++, aDateField.GetFormatted( *pNumberFormatter, eLanguage ), nStyle ); - aDateField.SetFormat( SVXDATEFORMAT_B ); // 13.02.1996 + aDateField.SetFormat( SVXDATEFORMAT_B ); // 13.02.1996 InsertItem( nID++, aDateField.GetFormatted( *pNumberFormatter, eLanguage ), nStyle ); - aDateField.SetFormat( SVXDATEFORMAT_C ); // 13.Feb 1996 + aDateField.SetFormat( SVXDATEFORMAT_C ); // 13.Feb 1996 InsertItem( nID++, aDateField.GetFormatted( *pNumberFormatter, eLanguage ), nStyle ); - aDateField.SetFormat( SVXDATEFORMAT_D ); // 13.Februar 1996 + aDateField.SetFormat( SVXDATEFORMAT_D ); // 13.Februar 1996 InsertItem( nID++, aDateField.GetFormatted( *pNumberFormatter, eLanguage ), nStyle ); - aDateField.SetFormat( SVXDATEFORMAT_E ); // Die, 13.Februar 1996 + aDateField.SetFormat( SVXDATEFORMAT_E ); // Die, 13.Februar 1996 InsertItem( nID++, aDateField.GetFormatted( *pNumberFormatter, eLanguage ), nStyle ); - aDateField.SetFormat( SVXDATEFORMAT_F ); // Dienstag, 13.Februar 1996 + aDateField.SetFormat( SVXDATEFORMAT_F ); // Dienstag, 13.Februar 1996 InsertItem( nID++, aDateField.GetFormatted( *pNumberFormatter, eLanguage ), nStyle ); CheckItem( (USHORT) ( pDateField->GetFormat() ) + 1 ); // - 2 + 3 ! @@ -124,27 +124,27 @@ void SdFieldPopup::Fill( LanguageType eLanguage ) else CheckItem( 2 ); - //SVXTIMEFORMAT_APPDEFAULT, // Wird nicht benutzt - //SVXTIMEFORMAT_SYSTEM, // Wird nicht benutzt + //SVXTIMEFORMAT_APPDEFAULT, // Wird nicht benutzt + //SVXTIMEFORMAT_SYSTEM, // Wird nicht benutzt InsertItem( nID++, String( SdResId( STR_STANDARD_NORMAL ) ), nStyle ); SvNumberFormatter* pNumberFormatter = SD_MOD()->GetNumberFormatter(); - aTimeField.SetFormat( SVXTIMEFORMAT_24_HM ); // 13:49 + aTimeField.SetFormat( SVXTIMEFORMAT_24_HM ); // 13:49 InsertItem( nID++, aTimeField.GetFormatted( *pNumberFormatter, eLanguage ), nStyle ); - aTimeField.SetFormat( SVXTIMEFORMAT_24_HMS ); // 13:49:38 + aTimeField.SetFormat( SVXTIMEFORMAT_24_HMS ); // 13:49:38 InsertItem( nID++, aTimeField.GetFormatted( *pNumberFormatter, eLanguage ), nStyle ); - aTimeField.SetFormat( SVXTIMEFORMAT_24_HMSH ); // 13:49:38.78 + aTimeField.SetFormat( SVXTIMEFORMAT_24_HMSH ); // 13:49:38.78 InsertItem( nID++, aTimeField.GetFormatted( *pNumberFormatter, eLanguage ), nStyle ); - aTimeField.SetFormat( SVXTIMEFORMAT_12_HM ); // 01:49 + aTimeField.SetFormat( SVXTIMEFORMAT_12_HM ); // 01:49 InsertItem( nID++, aTimeField.GetFormatted( *pNumberFormatter, eLanguage ), nStyle ); - aTimeField.SetFormat( SVXTIMEFORMAT_12_HMS ); // 01:49:38 + aTimeField.SetFormat( SVXTIMEFORMAT_12_HMS ); // 01:49:38 InsertItem( nID++, aTimeField.GetFormatted( *pNumberFormatter, eLanguage ), nStyle ); - aTimeField.SetFormat( SVXTIMEFORMAT_12_HMSH ); // 01:49:38.78 + aTimeField.SetFormat( SVXTIMEFORMAT_12_HMSH ); // 01:49:38.78 InsertItem( nID++, aTimeField.GetFormatted( *pNumberFormatter, eLanguage ), nStyle ); - //SVXTIMEFORMAT_AM_HM, // 01:49 PM - //SVXTIMEFORMAT_AM_HMS, // 01:49:38 PM - //SVXTIMEFORMAT_AM_HMSH // 01:49:38.78 PM + //SVXTIMEFORMAT_AM_HM, // 01:49 PM + //SVXTIMEFORMAT_AM_HMS, // 01:49:38 PM + //SVXTIMEFORMAT_AM_HMSH // 01:49:38.78 PM CheckItem( (USHORT) ( pTimeField->GetFormat() ) + 1 ); // - 2 + 3 ! } @@ -199,7 +199,7 @@ SvxFieldData* SdFieldPopup::GetField() if( pField->ISA( SvxDateField ) ) { const SvxDateField* pDateField = (const SvxDateField*) pField; - SvxDateType eType; + SvxDateType eType; SvxDateFormat eFormat; USHORT i; @@ -232,7 +232,7 @@ SvxFieldData* SdFieldPopup::GetField() else if( pField->ISA( SvxExtTimeField ) ) { const SvxExtTimeField* pTimeField = (const SvxExtTimeField*) pField; - SvxTimeType eType; + SvxTimeType eType; SvxTimeFormat eFormat; USHORT i; @@ -266,7 +266,7 @@ SvxFieldData* SdFieldPopup::GetField() else if( pField->ISA( SvxExtFileField ) ) { const SvxExtFileField* pFileField = (const SvxExtFileField*) pField; - SvxFileType eType; + SvxFileType eType; SvxFileFormat eFormat; USHORT i; @@ -306,7 +306,7 @@ SvxFieldData* SdFieldPopup::GetField() else if( pField->ISA( SvxAuthorField ) ) { const SvxAuthorField* pAuthorField = (const SvxAuthorField*) pField; - SvxAuthorType eType; + SvxAuthorType eType; SvxAuthorFormat eFormat; USHORT i; diff --git a/sd/source/ui/app/sdresid.cxx b/sd/source/ui/app/sdresid.cxx index cc32bcb7a8d5..f5dfe11badfd 100644 --- a/sd/source/ui/app/sdresid.cxx +++ b/sd/source/ui/app/sdresid.cxx @@ -1,7 +1,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 diff --git a/sd/source/ui/app/sdstring.src b/sd/source/ui/app/sdstring.src index 1b520fb140a8..d9d399aa31ee 100644 --- a/sd/source/ui/app/sdstring.src +++ b/sd/source/ui/app/sdstring.src @@ -1,7 +1,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 diff --git a/sd/source/ui/app/sdxfer.cxx b/sd/source/ui/app/sdxfer.cxx index ddbc0698a341..0bba7d7049a5 100644 --- a/sd/source/ui/app/sdxfer.cxx +++ b/sd/source/ui/app/sdxfer.cxx @@ -1,7 +1,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 @@ -96,33 +96,33 @@ using namespace ::com::sun::star::datatransfer::clipboard; // - Defines - // ----------- -#define SDTRANSFER_OBJECTTYPE_DRAWMODEL 0x00000001 -#define SDTRANSFER_OBJECTTYPE_DRAWOLE 0x00000002 +#define SDTRANSFER_OBJECTTYPE_DRAWMODEL 0x00000001 +#define SDTRANSFER_OBJECTTYPE_DRAWOLE 0x00000002 // ------------------ // - SdTransferable - // ------------------ SdTransferable::SdTransferable( SdDrawDocument* pSrcDoc, ::sd::View* pWorkView, BOOL bInitOnGetData ) -: mpPageDocShell( NULL ) -, mpOLEDataHelper( NULL ) -, mpObjDesc( NULL ) -, mpSdView( pWorkView ) -, mpSdViewIntern( pWorkView ) -, mpSdDrawDocument( NULL ) -, mpSdDrawDocumentIntern( NULL ) -, mpSourceDoc( pSrcDoc ) -, mpVDev( NULL ) -, mpBookmark( NULL ) -, mpGraphic( NULL ) -, mpImageMap( NULL ) -, mbInternalMove( FALSE ) -, mbOwnDocument( FALSE ) -, mbOwnView( FALSE ) -, mbLateInit( bInitOnGetData ) -, mbPageTransferable( FALSE ) -, mbPageTransferablePersistent( FALSE ) -, mbIsUnoObj( false ) +: mpPageDocShell( NULL ) +, mpOLEDataHelper( NULL ) +, mpObjDesc( NULL ) +, mpSdView( pWorkView ) +, mpSdViewIntern( pWorkView ) +, mpSdDrawDocument( NULL ) +, mpSdDrawDocumentIntern( NULL ) +, mpSourceDoc( pSrcDoc ) +, mpVDev( NULL ) +, mpBookmark( NULL ) +, mpGraphic( NULL ) +, mpImageMap( NULL ) +, mbInternalMove( FALSE ) +, mbOwnDocument( FALSE ) +, mbOwnView( FALSE ) +, mbLateInit( bInitOnGetData ) +, mbPageTransferable( FALSE ) +, mbPageTransferablePersistent( FALSE ) +, mbIsUnoObj( false ) { if( mpSourceDoc ) StartListening( *mpSourceDoc ); @@ -229,8 +229,8 @@ void SdTransferable::CreateObjectReplacement( SdrObject* pObj ) if( !xPropSet.is() ) return; - ::com::sun::star::form::FormButtonType eButtonType; - Any aTmp( xPropSet->getPropertyValue( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "ButtonType" ) ) ) ); + ::com::sun::star::form::FormButtonType eButtonType; + Any aTmp( xPropSet->getPropertyValue( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "ButtonType" ) ) ) ); if( aTmp >>= eButtonType ) { @@ -265,7 +265,7 @@ void SdTransferable::CreateObjectReplacement( SdrObject* pObj ) } } - SdIMapInfo* pInfo = static_cast< SdDrawDocument* >( pObj->GetModel() )->GetIMapInfo( static_cast< SdrObject* >( pObj ) ); + SdIMapInfo* pInfo = static_cast< SdDrawDocument* >( pObj->GetModel() )->GetIMapInfo( static_cast< SdrObject* >( pObj ) ); if( pInfo ) mpImageMap = new ImageMap( pInfo->GetImageMap() ); @@ -318,13 +318,13 @@ void SdTransferable::CreateData() } // Groesse der Source-Seite uebernehmen - SdrPageView* pPgView = mpSdView->GetSdrPageView(); - SdPage* pOldPage = (SdPage*) pPgView->GetPage(); - SdrModel* pOldModel = mpSdView->GetModel(); - SdStyleSheetPool* pOldStylePool = (SdStyleSheetPool*) pOldModel->GetStyleSheetPool(); - SdStyleSheetPool* pNewStylePool = (SdStyleSheetPool*) mpSdDrawDocumentIntern->GetStyleSheetPool(); - SdPage* pPage = mpSdDrawDocumentIntern->GetSdPage( 0, PK_STANDARD ); - String aOldLayoutName( pOldPage->GetLayoutName() ); + SdrPageView* pPgView = mpSdView->GetSdrPageView(); + SdPage* pOldPage = (SdPage*) pPgView->GetPage(); + SdrModel* pOldModel = mpSdView->GetModel(); + SdStyleSheetPool* pOldStylePool = (SdStyleSheetPool*) pOldModel->GetStyleSheetPool(); + SdStyleSheetPool* pNewStylePool = (SdStyleSheetPool*) mpSdDrawDocumentIntern->GetStyleSheetPool(); + SdPage* pPage = mpSdDrawDocumentIntern->GetSdPage( 0, PK_STANDARD ); + String aOldLayoutName( pOldPage->GetLayoutName() ); pPage->SetSize( pOldPage->GetSize() ); pPage->SetLayoutName( aOldLayoutName ); @@ -341,12 +341,12 @@ void SdTransferable::CreateData() mpSdDrawDocumentIntern && mpSdViewIntern && mpSdDrawDocumentIntern->GetPageCount() ) { - SdPage* pPage = mpSdDrawDocumentIntern->GetSdPage( 0, PK_STANDARD ); + SdPage* pPage = mpSdDrawDocumentIntern->GetSdPage( 0, PK_STANDARD ); if( 1 == mpSdDrawDocumentIntern->GetPageCount() ) { - Point aOrigin( ( maVisArea = mpSdViewIntern->GetAllMarkedRect() ).TopLeft() ); - Size aVector( -aOrigin.X(), -aOrigin.Y() ); + Point aOrigin( ( maVisArea = mpSdViewIntern->GetAllMarkedRect() ).TopLeft() ); + Size aVector( -aOrigin.X(), -aOrigin.Y() ); for( ULONG nObj = 0, nObjCount = pPage->GetObjCount(); nObj < nObjCount; nObj++ ) { @@ -426,8 +426,8 @@ void SdTransferable::AddSupportedFormats() { AddFormat( SOT_FORMATSTR_ID_EMBED_SOURCE ); - DataFlavorExVector aVector( mpOLEDataHelper->GetDataFlavorExVector() ); - DataFlavorExVector::iterator aIter( aVector.begin() ), aEnd( aVector.end() ); + DataFlavorExVector aVector( mpOLEDataHelper->GetDataFlavorExVector() ); + DataFlavorExVector::iterator aIter( aVector.begin() ), aEnd( aVector.end() ); while( aIter != aEnd ) AddFormat( *aIter++ ); @@ -481,8 +481,8 @@ sal_Bool SdTransferable::GetData( const DataFlavor& rFlavor ) if (SD_MOD()==NULL) return sal_False; - sal_uInt32 nFormat = SotExchange::GetFormat( rFlavor ); - sal_Bool bOK = sal_False; + sal_uInt32 nFormat = SotExchange::GetFormat( rFlavor ); + sal_Bool bOK = sal_False; CreateData(); @@ -871,7 +871,7 @@ sal_Bool SdTransferable::SetTableRTF( SdDrawDocument* pModel, const DataFlavor& if( pTableObj ) { SvMemoryStream aMemStm( 65535, 65535 ); - sdr::table::SdrTableObj::ExportAsRTF( aMemStm, *pTableObj ); + sdr::table::SdrTableObj::ExportAsRTF( aMemStm, *pTableObj ); return SetAny( Any( Sequence< sal_Int8 >( reinterpret_cast< const sal_Int8* >( aMemStm.GetData() ), aMemStm.Seek( STREAM_SEEK_TO_END ) ) ), rFlavor ); } } diff --git a/sd/source/ui/app/strings.src b/sd/source/ui/app/strings.src index e992e7016f04..969a6738a0ef 100755 --- a/sd/source/ui/app/strings.src +++ b/sd/source/ui/app/strings.src @@ -1,7 +1,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 @@ -1241,7 +1241,7 @@ String RID_ANNOTATIONS_START }; String STR_RESET_LAYOUT { - Text[ en-US ] = "Reset Slide Layout"; + Text[ en-US ] = "Reset Slide Layout"; }; String STR_INSERT_TABLE diff --git a/sd/source/ui/app/tbx_ww.src b/sd/source/ui/app/tbx_ww.src index 67e62be0f1be..91336d5a93ef 100644 --- a/sd/source/ui/app/tbx_ww.src +++ b/sd/source/ui/app/tbx_ww.src @@ -1,7 +1,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 diff --git a/sd/source/ui/app/tbxids_tmpl.src b/sd/source/ui/app/tbxids_tmpl.src index 90fd733434a7..4da4f604034d 100644 --- a/sd/source/ui/app/tbxids_tmpl.src +++ b/sd/source/ui/app/tbxids_tmpl.src @@ -1,7 +1,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 diff --git a/sd/source/ui/app/tbxww.cxx b/sd/source/ui/app/tbxww.cxx index 80bd3a5ac8b9..b3d234283bbf 100644 --- a/sd/source/ui/app/tbxww.cxx +++ b/sd/source/ui/app/tbxww.cxx @@ -1,7 +1,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 @@ -39,7 +39,7 @@ #endif #include <rtl/ustring.hxx> #include <rtl/ustrbuf.hxx> - + #include "sddll.hxx" #include "GraphicDocShell.hxx" @@ -63,11 +63,11 @@ SFX_IMPL_TOOLBOX_CONTROL( SdTbxControl, TbxImageItem ) SdPopupWindowTbx::SdPopupWindowTbx( USHORT nId, WindowAlign eAlign, SdResId aRIdWin, SdResId aRIdTbx, SfxBindings& rBindings ) : - SfxPopupWindow ( nId, aRIdWin, rBindings ), + SfxPopupWindow ( nId, aRIdWin, rBindings ), aTbx ( this, GetBindings(), aRIdTbx ), aSdResIdWin ( aRIdWin ), aSdResIdTbx ( aRIdTbx ), - eTbxAlign ( eAlign ) + eTbxAlign ( eAlign ) { aTbx.UseDefault(); aSelectLink = aTbx.GetToolBox().GetSelectHdl(); @@ -79,7 +79,7 @@ SdPopupWindowTbx::SdPopupWindowTbx( USHORT nId, WindowAlign eAlign, { if ( aSdResIdWin.GetId() != RID_TEXT ) aTbx.GetToolBox().SetAlign( WINDOWALIGN_LEFT ); - + SetText( String() ); } @@ -179,7 +179,7 @@ IMPL_LINK( SdPopupWindowTbx, TbxSelectHdl, ToolBox*, pBox) if ( pBox->GetModifier() & KEY_MOD1 ) { - // #99013# if selected with control key, return focus to current view + // #99013# if selected with control key, return focus to current view Window* pShellWnd = SfxViewShell::Current()->GetWindow(); if ( pShellWnd ) pShellWnd->GrabFocus(); @@ -216,7 +216,7 @@ SfxPopupWindowType SdTbxControl::GetPopupWindowType() const |* \************************************************************************/ -SfxPopupWindow* SdTbxControl::CreatePopupWindow() +SfxPopupWindow* SdTbxControl::CreatePopupWindow() { SfxPopupWindow *pWin = NULL; rtl::OUString aToolBarResStr; @@ -272,10 +272,10 @@ SfxPopupWindow* SdTbxControl::CreatePopupWindow() aToolBarResStr = aTbxResName.makeStringAndClear(); break; } - + if ( aToolBarResStr.getLength() > 0 ) createAndPositionSubToolBar( aToolBarResStr ); - + return( pWin ); } @@ -305,7 +305,7 @@ void SdTbxControl::StateChanged( USHORT nSId, { rtl::OUString aSlotURL( RTL_CONSTASCII_USTRINGPARAM( "slot:" )); aSlotURL += rtl::OUString::valueOf( sal_Int32( nImage )); - Image aImage = GetImage( m_xFrame, + Image aImage = GetImage( m_xFrame, aSlotURL, hasBigImages(), GetToolBox().GetSettings().GetStyleSettings().GetHighContrastMode() ); diff --git a/sd/source/ui/app/tmplctrl.cxx b/sd/source/ui/app/tmplctrl.cxx index 039df4bbce3f..7ba048a0d01a 100644 --- a/sd/source/ui/app/tmplctrl.cxx +++ b/sd/source/ui/app/tmplctrl.cxx @@ -1,7 +1,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 @@ -52,10 +52,10 @@ class TemplatePopup_Impl : public PopupMenu public: TemplatePopup_Impl(); - USHORT GetCurId() const { return nCurId; } + USHORT GetCurId() const { return nCurId; } private: - USHORT nCurId; + USHORT nCurId; virtual void Select(); }; @@ -131,13 +131,13 @@ void SdTemplateControl::Command( const CommandEvent& rCEvt ) TemplatePopup_Impl aPop; { const USHORT nMasterCount = pDoc->GetMasterSdPageCount(PK_STANDARD); - + USHORT nCount = 0; for( USHORT nPage = 0; nPage < nMasterCount; ++nPage ) { SdPage* pMaster = pDoc->GetMasterSdPage(nPage, PK_STANDARD); if( pMaster ) - aPop.InsertItem( ++nCount, pMaster->GetName() ); + aPop.InsertItem( ++nCount, pMaster->GetName() ); } aPop.Execute( &GetStatusBar(), rCEvt.GetMousePosPixel()); diff --git a/sd/source/ui/app/toolbox.src b/sd/source/ui/app/toolbox.src index a3446a2c58b4..945bb0b0aae9 100644 --- a/sd/source/ui/app/toolbox.src +++ b/sd/source/ui/app/toolbox.src @@ -1,7 +1,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 diff --git a/sd/source/ui/app/toolbox2_tmpl.src b/sd/source/ui/app/toolbox2_tmpl.src index d5033cef9127..c2122678f6b9 100644 --- a/sd/source/ui/app/toolbox2_tmpl.src +++ b/sd/source/ui/app/toolbox2_tmpl.src @@ -1,7 +1,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 |