summaryrefslogtreecommitdiff
path: root/sd/source/ui/view/frmview.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sd/source/ui/view/frmview.cxx')
-rw-r--r--sd/source/ui/view/frmview.cxx84
1 files changed, 42 insertions, 42 deletions
diff --git a/sd/source/ui/view/frmview.cxx b/sd/source/ui/view/frmview.cxx
index 9cf26a6c0187..8724d525bbcc 100644
--- a/sd/source/ui/view/frmview.cxx
+++ b/sd/source/ui/view/frmview.cxx
@@ -638,10 +638,10 @@ void FrameView::ReadUserDataSequence ( const ::com::sun::star::uno::Sequence < :
const com::sun::star::beans::PropertyValue *pValue = rSequence.getConstArray();
for (sal_Int16 i = 0 ; i < nLength; i++, pValue++ )
{
- if (pValue->Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( sUNO_View_ViewId ) ) )
+ if ( pValue->Name == sUNO_View_ViewId )
{
}
- else if (pValue->Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( sUNO_View_SnapLinesDrawing ) ) )
+ else if ( pValue->Name == sUNO_View_SnapLinesDrawing )
{
if( pValue->Value >>= aString )
{
@@ -650,7 +650,7 @@ void FrameView::ReadUserDataSequence ( const ::com::sun::star::uno::Sequence < :
SetStandardHelpLines( aHelpLines );
}
}
- else if (pValue->Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( sUNO_View_SnapLinesNotes ) ) )
+ else if ( pValue->Name == sUNO_View_SnapLinesNotes )
{
if( pValue->Value >>= aString )
{
@@ -659,7 +659,7 @@ void FrameView::ReadUserDataSequence ( const ::com::sun::star::uno::Sequence < :
SetNotesHelpLines( aHelpLines );
}
}
- else if (pValue->Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( sUNO_View_SnapLinesHandout ) ) )
+ else if ( pValue->Name == sUNO_View_SnapLinesHandout )
{
if( pValue->Value >>= aString )
{
@@ -668,14 +668,14 @@ void FrameView::ReadUserDataSequence ( const ::com::sun::star::uno::Sequence < :
SetHandoutHelpLines( aHelpLines );
}
}
- else if (pValue->Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( sUNO_View_RulerIsVisible ) ) )
+ else if ( pValue->Name == sUNO_View_RulerIsVisible )
{
if( pValue->Value >>= bBool )
{
SetRuler( bBool );
}
}
- else if (pValue->Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( sUNO_View_PageKind ) ) )
+ else if ( pValue->Name == sUNO_View_PageKind )
{
if( pValue->Value >>= nInt16 )
{
@@ -686,7 +686,7 @@ void FrameView::ReadUserDataSequence ( const ::com::sun::star::uno::Sequence < :
SetPageKindOnLoad( (PageKind)nInt16 );
}
}
- else if (pValue->Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( sUNO_View_SelectedPage ) ) )
+ else if ( pValue->Name == sUNO_View_SelectedPage )
{
if( pValue->Value >>= nInt16 )
{
@@ -697,35 +697,35 @@ void FrameView::ReadUserDataSequence ( const ::com::sun::star::uno::Sequence < :
SetSelectedPageOnLoad( (sal_uInt16)nInt16 );
}
}
- else if (pValue->Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( sUNO_View_IsLayerMode ) ) )
+ else if ( pValue->Name == sUNO_View_IsLayerMode )
{
if( pValue->Value >>= bBool )
{
SetLayerMode( bBool );
}
}
- else if (pValue->Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( sUNO_View_IsDoubleClickTextEdit ) ) )
+ else if ( pValue->Name == sUNO_View_IsDoubleClickTextEdit )
{
if( pValue->Value >>= bBool )
{
SetDoubleClickTextEdit( bBool );
}
}
- else if (pValue->Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( sUNO_View_IsClickChangeRotation ) ) )
+ else if ( pValue->Name == sUNO_View_IsClickChangeRotation )
{
if( pValue->Value >>= bBool )
{
SetClickChangeRotation( bBool );
}
}
- else if (pValue->Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( sUNO_View_SlidesPerRow ) ) )
+ else if ( pValue->Name == sUNO_View_SlidesPerRow )
{
if( pValue->Value >>= nInt16 )
{
SetSlidesPerRow( (sal_uInt16)nInt16 );
}
}
- else if (pValue->Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( sUNO_View_EditModeStandard ) ) )
+ else if ( pValue->Name == sUNO_View_EditModeStandard )
{
if( pValue->Value >>= nInt32 )
{
@@ -734,7 +734,7 @@ void FrameView::ReadUserDataSequence ( const ::com::sun::star::uno::Sequence < :
SetViewShEditMode( (EditMode)nInt32, PK_STANDARD );
}
}
- else if (pValue->Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( sUNO_View_EditModeNotes ) ) )
+ else if ( pValue->Name == sUNO_View_EditModeNotes )
{
if( pValue->Value >>= nInt32 )
{
@@ -743,7 +743,7 @@ void FrameView::ReadUserDataSequence ( const ::com::sun::star::uno::Sequence < :
SetViewShEditMode( (EditMode)nInt32, PK_NOTES );
}
}
- else if (pValue->Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( sUNO_View_EditModeHandout ) ) )
+ else if ( pValue->Name == sUNO_View_EditModeHandout )
{
if( pValue->Value >>= nInt32 )
{
@@ -752,7 +752,7 @@ void FrameView::ReadUserDataSequence ( const ::com::sun::star::uno::Sequence < :
SetViewShEditMode( (EditMode)nInt32, PK_HANDOUT );
}
}
- else if (pValue->Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( sUNO_View_VisibleAreaTop ) ) )
+ else if ( pValue->Name == sUNO_View_VisibleAreaTop )
{
sal_Int32 nTop = 0;
if( pValue->Value >>= nTop )
@@ -763,7 +763,7 @@ void FrameView::ReadUserDataSequence ( const ::com::sun::star::uno::Sequence < :
SetVisArea( aVisArea );
}
}
- else if (pValue->Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( sUNO_View_VisibleAreaLeft ) ) )
+ else if ( pValue->Name == sUNO_View_VisibleAreaLeft )
{
sal_Int32 nLeft = 0;
if( pValue->Value >>= nLeft )
@@ -774,7 +774,7 @@ void FrameView::ReadUserDataSequence ( const ::com::sun::star::uno::Sequence < :
SetVisArea( aVisArea );
}
}
- else if (pValue->Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( sUNO_View_VisibleAreaWidth ) ) )
+ else if ( pValue->Name == sUNO_View_VisibleAreaWidth )
{
sal_Int32 nWidth = 0;
if( pValue->Value >>= nWidth )
@@ -784,7 +784,7 @@ void FrameView::ReadUserDataSequence ( const ::com::sun::star::uno::Sequence < :
SetVisArea( aVisArea );
}
}
- else if (pValue->Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( sUNO_View_VisibleAreaHeight ) ) )
+ else if ( pValue->Name == sUNO_View_VisibleAreaHeight )
{
sal_Int32 nHeight = 0;
if( pValue->Value >>= nHeight )
@@ -795,7 +795,7 @@ void FrameView::ReadUserDataSequence ( const ::com::sun::star::uno::Sequence < :
}
}
- else if (pValue->Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( sUNO_View_GridIsVisible ) ) )
+ else if ( pValue->Name == sUNO_View_GridIsVisible )
{
if( pValue->Value >>= bBool )
{
@@ -803,98 +803,98 @@ void FrameView::ReadUserDataSequence ( const ::com::sun::star::uno::Sequence < :
}
}
- else if (pValue->Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( sUNO_View_IsSnapToGrid ) ) )
+ else if ( pValue->Name == sUNO_View_IsSnapToGrid )
{
if( pValue->Value >>= bBool )
{
SetGridSnap( bBool );
}
}
- else if (pValue->Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( sUNO_View_GridIsFront ) ) )
+ else if ( pValue->Name == sUNO_View_GridIsFront )
{
if( pValue->Value >>= bBool )
{
SetGridFront( bBool );
}
}
- else if (pValue->Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( sUNO_View_IsSnapToPageMargins ) ) )
+ else if ( pValue->Name == sUNO_View_IsSnapToPageMargins )
{
if( pValue->Value >>= bBool )
{
SetBordSnap( bBool );
}
}
- else if (pValue->Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( sUNO_View_IsSnapToSnapLines ) ) )
+ else if ( pValue->Name == sUNO_View_IsSnapToSnapLines )
{
if( pValue->Value >>= bBool )
{
SetHlplSnap( bBool );
}
}
- else if (pValue->Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( sUNO_View_IsSnapToObjectFrame ) ) )
+ else if ( pValue->Name == sUNO_View_IsSnapToObjectFrame )
{
if( pValue->Value >>= bBool )
{
SetOFrmSnap( bBool );
}
}
- else if (pValue->Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( sUNO_View_IsSnapToObjectPoints ) ) )
+ else if ( pValue->Name == sUNO_View_IsSnapToObjectPoints )
{
if( pValue->Value >>= bBool )
{
SetOPntSnap( bBool );
}
}
- else if (pValue->Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( sUNO_View_IsPlusHandlesAlwaysVisible ) ) )
+ else if ( pValue->Name == sUNO_View_IsPlusHandlesAlwaysVisible )
{
if( pValue->Value >>= bBool )
{
SetPlusHandlesAlwaysVisible( bBool );
}
}
- else if (pValue->Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( sUNO_View_IsFrameDragSingles ) ) )
+ else if ( pValue->Name == sUNO_View_IsFrameDragSingles )
{
if( pValue->Value >>= bBool )
{
SetFrameDragSingles( bBool );
}
}
- else if (pValue->Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( sUNO_View_EliminatePolyPointLimitAngle ) ) )
+ else if ( pValue->Name == sUNO_View_EliminatePolyPointLimitAngle )
{
if( pValue->Value >>= nInt32 )
{
SetEliminatePolyPointLimitAngle( nInt32 );
}
}
- else if (pValue->Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( sUNO_View_IsEliminatePolyPoints ) ) )
+ else if ( pValue->Name == sUNO_View_IsEliminatePolyPoints )
{
if( pValue->Value >>= bBool )
{
SetEliminatePolyPoints( bBool );
}
}
- else if (pValue->Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( sUNO_View_ActiveLayer ) ) )
+ else if ( pValue->Name == sUNO_View_ActiveLayer )
{
if( pValue->Value >>= aString )
{
SetActiveLayer( aString );
}
}
- else if (pValue->Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( sUNO_View_NoAttribs ) ) )
+ else if ( pValue->Name == sUNO_View_NoAttribs )
{
if( pValue->Value >>= bBool )
{
SetNoAttribs( bBool );
}
}
- else if (pValue->Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( sUNO_View_NoColors ) ) )
+ else if ( pValue->Name == sUNO_View_NoColors )
{
if( pValue->Value >>= bBool )
{
SetNoColors( bBool );
}
}
- else if (pValue->Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( sUNO_View_GridCoarseWidth ) ) )
+ else if ( pValue->Name == sUNO_View_GridCoarseWidth )
{
if( pValue->Value >>= nInt32 )
{
@@ -902,7 +902,7 @@ void FrameView::ReadUserDataSequence ( const ::com::sun::star::uno::Sequence < :
SetGridCoarse( aCoarse );
}
}
- else if (pValue->Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( sUNO_View_GridCoarseHeight ) ) )
+ else if ( pValue->Name == sUNO_View_GridCoarseHeight )
{
if( pValue->Value >>= nInt32 )
{
@@ -910,7 +910,7 @@ void FrameView::ReadUserDataSequence ( const ::com::sun::star::uno::Sequence < :
SetGridCoarse( aCoarse );
}
}
- else if (pValue->Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( sUNO_View_GridFineWidth ) ) )
+ else if ( pValue->Name == sUNO_View_GridFineWidth )
{
if( pValue->Value >>= nInt32 )
{
@@ -918,7 +918,7 @@ void FrameView::ReadUserDataSequence ( const ::com::sun::star::uno::Sequence < :
SetGridFine( aCoarse );
}
}
- else if (pValue->Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( sUNO_View_GridFineHeight ) ) )
+ else if ( pValue->Name == sUNO_View_GridFineHeight )
{
if( pValue->Value >>= nInt32 )
{
@@ -926,33 +926,33 @@ void FrameView::ReadUserDataSequence ( const ::com::sun::star::uno::Sequence < :
SetGridFine( aCoarse );
}
}
- else if (pValue->Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( sUNO_View_IsAngleSnapEnabled ) ) )
+ else if ( pValue->Name == sUNO_View_IsAngleSnapEnabled )
{
if( pValue->Value >>= bBool )
{
SetAngleSnapEnabled( bBool );
}
}
- else if (pValue->Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( sUNO_View_SnapAngle ) ) )
+ else if ( pValue->Name == sUNO_View_SnapAngle )
{
if( pValue->Value >>= nInt32 )
{
SetSnapAngle( nInt32 );
}
}
- else if (pValue->Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( sUNO_View_GridSnapWidthXNumerator ) ) )
+ else if ( pValue->Name == sUNO_View_GridSnapWidthXNumerator )
{
pValue->Value >>= aSnapGridWidthXNum;
}
- else if (pValue->Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( sUNO_View_GridSnapWidthXDenominator ) ) )
+ else if ( pValue->Name == sUNO_View_GridSnapWidthXDenominator )
{
pValue->Value >>= aSnapGridWidthXDom;
}
- else if (pValue->Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( sUNO_View_GridSnapWidthYNumerator ) ) )
+ else if ( pValue->Name == sUNO_View_GridSnapWidthYNumerator )
{
pValue->Value >>= aSnapGridWidthYNum;
}
- else if (pValue->Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( sUNO_View_GridSnapWidthYDenominator ) ) )
+ else if ( pValue->Name == sUNO_View_GridSnapWidthYDenominator )
{
pValue->Value >>= aSnapGridWidthYDom;
}