summaryrefslogtreecommitdiff
path: root/sd/source/ui/unoidl/unopage.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sd/source/ui/unoidl/unopage.cxx')
-rw-r--r--sd/source/ui/unoidl/unopage.cxx40
1 files changed, 20 insertions, 20 deletions
diff --git a/sd/source/ui/unoidl/unopage.cxx b/sd/source/ui/unoidl/unopage.cxx
index 096af6d322c9..879128104a5c 100644
--- a/sd/source/ui/unoidl/unopage.cxx
+++ b/sd/source/ui/unoidl/unopage.cxx
@@ -534,7 +534,7 @@ SdrObject * SdGenericDrawPage::_CreateSdrObject( const Reference< drawing::XShap
}
else
{
- pPresObj = GetPage()->CreatePresObj( eObjKind, FALSE, aRect, sal_True );
+ pPresObj = GetPage()->CreatePresObj( eObjKind, sal_False, aRect, sal_True );
}
if( pPresObj )
@@ -669,7 +669,7 @@ void SAL_CALL SdGenericDrawPage::setPropertyValue( const OUString& aPropertyName
SdDrawDocument* pDoc = (SdDrawDocument*)GetPage()->GetModel();
const PageKind ePageKind = GetPage()->GetPageKind();
- USHORT i, nPageCnt = pDoc->GetMasterSdPageCount(ePageKind);
+ sal_uInt16 i, nPageCnt = pDoc->GetMasterSdPageCount(ePageKind);
for (i = 0; i < nPageCnt; i++)
{
SdPage* pPage = pDoc->GetMasterSdPage(i, ePageKind);
@@ -712,7 +712,7 @@ void SAL_CALL SdGenericDrawPage::setPropertyValue( const OUString& aPropertyName
sal_Bool bVisible = sal_False;
if( ! ( aValue >>= bVisible ) )
throw lang::IllegalArgumentException();
- GetPage()->SetExcluded( bVisible == FALSE );
+ GetPage()->SetExcluded( bVisible == sal_False );
break;
}
case WID_PAGE_SOUNDFILE :
@@ -768,7 +768,7 @@ void SAL_CALL SdGenericDrawPage::setPropertyValue( const OUString& aPropertyName
{
SdrLayerAdmin& rLayerAdmin = pDoc->GetLayerAdmin();
SetOfByte aVisibleLayers = pPage->TRG_GetMasterPageVisibleLayers();
- aVisibleLayers.Set(rLayerAdmin.GetLayerID(String(SdResId(STR_LAYER_BCKGRND)), FALSE), bVisible);
+ aVisibleLayers.Set(rLayerAdmin.GetLayerID(String(SdResId(STR_LAYER_BCKGRND)), sal_False), bVisible);
pPage->TRG_SetMasterPageVisibleLayers(aVisibleLayers);
}
}
@@ -788,7 +788,7 @@ void SAL_CALL SdGenericDrawPage::setPropertyValue( const OUString& aPropertyName
{
SdrLayerAdmin& rLayerAdmin = pDoc->GetLayerAdmin();
SetOfByte aVisibleLayers = pPage->TRG_GetMasterPageVisibleLayers();
- aVisibleLayers.Set(rLayerAdmin.GetLayerID(String(SdResId(STR_LAYER_BCKGRNDOBJ)), FALSE), bVisible);
+ aVisibleLayers.Set(rLayerAdmin.GetLayerID(String(SdResId(STR_LAYER_BCKGRNDOBJ)), sal_False), bVisible);
pPage->TRG_SetMasterPageVisibleLayers(aVisibleLayers);
}
}
@@ -1094,7 +1094,7 @@ Any SAL_CALL SdGenericDrawPage::getPropertyValue( const OUString& PropertyName )
{
Point aPoint;
Size aSize( GetPage()->GetSize() );
- pMetaFile->AddAction( (MetaAction*) new MetaFillColorAction( COL_WHITE, TRUE ), 0 );
+ pMetaFile->AddAction( (MetaAction*) new MetaFillColorAction( COL_WHITE, sal_True ), 0 );
pMetaFile->AddAction( (MetaAction*) new MetaRectAction( Rectangle( aPoint, aSize ) ), 1 );
pMetaFile->SetPrefMapMode( MAP_100TH_MM );
pMetaFile->SetPrefSize( aSize );
@@ -1132,7 +1132,7 @@ Any SAL_CALL SdGenericDrawPage::getPropertyValue( const OUString& PropertyName )
aBitmap ) )
{
SvMemoryStream aMemStream;
- aBitmap.GetBitmap().Write( aMemStream, FALSE, FALSE );
+ aBitmap.GetBitmap().Write( aMemStream, sal_False, sal_False );
uno::Sequence<sal_Int8> aSeq( (sal_Int8*)aMemStream.GetData(), aMemStream.Tell() );
aAny <<= aSeq;
}
@@ -1143,7 +1143,7 @@ Any SAL_CALL SdGenericDrawPage::getPropertyValue( const OUString& PropertyName )
case WID_PAGE_VISIBLE :
{
- sal_Bool bVisible = GetPage()->IsExcluded() == FALSE;
+ sal_Bool bVisible = GetPage()->IsExcluded() == sal_False;
aAny <<= Any( &bVisible, ::getBooleanCppuType() );
break;
}
@@ -1184,7 +1184,7 @@ Any SAL_CALL SdGenericDrawPage::getPropertyValue( const OUString& PropertyName )
{
SdrLayerAdmin& rLayerAdmin = pDoc->GetLayerAdmin();
SetOfByte aVisibleLayers = pPage->TRG_GetMasterPageVisibleLayers();
- aAny <<= (sal_Bool)aVisibleLayers.IsSet(rLayerAdmin.GetLayerID(String(SdResId(STR_LAYER_BCKGRND)), FALSE));
+ aAny <<= (sal_Bool)aVisibleLayers.IsSet(rLayerAdmin.GetLayerID(String(SdResId(STR_LAYER_BCKGRND)), sal_False));
}
else
{
@@ -1203,7 +1203,7 @@ Any SAL_CALL SdGenericDrawPage::getPropertyValue( const OUString& PropertyName )
{
SdrLayerAdmin& rLayerAdmin = pDoc->GetLayerAdmin();
SetOfByte aVisibleLayers = pPage->TRG_GetMasterPageVisibleLayers();
- aAny <<= (sal_Bool)aVisibleLayers.IsSet(rLayerAdmin.GetLayerID(String(SdResId(STR_LAYER_BCKGRNDOBJ)), FALSE));
+ aAny <<= (sal_Bool)aVisibleLayers.IsSet(rLayerAdmin.GetLayerID(String(SdResId(STR_LAYER_BCKGRNDOBJ)), sal_False));
}
else
{
@@ -1671,7 +1671,7 @@ void SdGenericDrawPage::SetLftBorder( sal_Int32 nValue )
SdDrawDocument* pDoc = (SdDrawDocument*)GetPage()->GetModel();
const PageKind ePageKind = GetPage()->GetPageKind();
- USHORT i, nPageCnt = pDoc->GetMasterSdPageCount(ePageKind);
+ sal_uInt16 i, nPageCnt = pDoc->GetMasterSdPageCount(ePageKind);
for (i = 0; i < nPageCnt; i++)
{
SdPage* pPage = pDoc->GetMasterSdPage(i, ePageKind);
@@ -1695,7 +1695,7 @@ void SdGenericDrawPage::SetRgtBorder( sal_Int32 nValue )
SdDrawDocument* pDoc = (SdDrawDocument*)GetPage()->GetModel();
const PageKind ePageKind = GetPage()->GetPageKind();
- USHORT i, nPageCnt = pDoc->GetMasterSdPageCount(ePageKind);
+ sal_uInt16 i, nPageCnt = pDoc->GetMasterSdPageCount(ePageKind);
for (i = 0; i < nPageCnt; i++)
{
SdPage* pPage = pDoc->GetMasterSdPage(i, ePageKind);
@@ -1719,7 +1719,7 @@ void SdGenericDrawPage::SetUppBorder( sal_Int32 nValue )
SdDrawDocument* pDoc = (SdDrawDocument*)GetPage()->GetModel();
const PageKind ePageKind = GetPage()->GetPageKind();
- USHORT i, nPageCnt = pDoc->GetMasterSdPageCount(ePageKind);
+ sal_uInt16 i, nPageCnt = pDoc->GetMasterSdPageCount(ePageKind);
for (i = 0; i < nPageCnt; i++)
{
SdPage* pPage = pDoc->GetMasterSdPage(i, ePageKind);
@@ -1743,7 +1743,7 @@ void SdGenericDrawPage::SetLwrBorder( sal_Int32 nValue )
SdDrawDocument* pDoc = (SdDrawDocument*)GetPage()->GetModel();
const PageKind ePageKind = GetPage()->GetPageKind();
- USHORT i, nPageCnt = pDoc->GetMasterSdPageCount(ePageKind);
+ sal_uInt16 i, nPageCnt = pDoc->GetMasterSdPageCount(ePageKind);
for (i = 0; i < nPageCnt; i++)
{
SdPage* pPage = pDoc->GetMasterSdPage(i, ePageKind);
@@ -1781,7 +1781,7 @@ static void refreshpage( SdDrawDocument* pDoc, const PageKind ePageKind )
pDoc->SetMaxObjSize(aViewSize);
- pViewSh->InitWindows(aPageOrg, aViewSize, Point(-1, -1), TRUE);
+ pViewSh->InitWindows(aPageOrg, aViewSize, Point(-1, -1), sal_True);
pViewSh->UpdateScrollBars();
}
@@ -1798,7 +1798,7 @@ void SdGenericDrawPage::SetWidth( sal_Int32 nWidth )
SdDrawDocument* pDoc = (SdDrawDocument*)GetPage()->GetModel();
const PageKind ePageKind = GetPage()->GetPageKind();
- USHORT i, nPageCnt = pDoc->GetMasterSdPageCount(ePageKind);
+ sal_uInt16 i, nPageCnt = pDoc->GetMasterSdPageCount(ePageKind);
for (i = 0; i < nPageCnt; i++)
{
SdPage* pPage = pDoc->GetMasterSdPage(i, ePageKind);
@@ -1827,7 +1827,7 @@ void SdGenericDrawPage::SetHeight( sal_Int32 nHeight )
SdDrawDocument* pDoc = (SdDrawDocument*)GetPage()->GetModel();
const PageKind ePageKind = GetPage()->GetPageKind();
- USHORT i, nPageCnt = pDoc->GetMasterSdPageCount(ePageKind);
+ sal_uInt16 i, nPageCnt = pDoc->GetMasterSdPageCount(ePageKind);
for (i = 0; i < nPageCnt; i++)
{
SdPage* pPage = pDoc->GetMasterSdPage(i, ePageKind);
@@ -2318,7 +2318,7 @@ void SAL_CALL SdDrawPage::setName( const OUString& rName )
GetPage()->SetName( aName );
- USHORT nNotesPageNum = (GetPage()->GetPageNum()-1)>>1;
+ sal_uInt16 nNotesPageNum = (GetPage()->GetPageNum()-1)>>1;
if( GetModel()->GetDoc()->GetSdPageCount( PK_NOTES ) > nNotesPageNum )
{
SdPage* pNotesPage = GetModel()->GetDoc()->GetSdPage( nNotesPageNum, PK_NOTES );
@@ -2337,7 +2337,7 @@ void SAL_CALL SdDrawPage::setName( const OUString& rName )
EditMode eMode = pDrawViewSh->GetEditMode();
if( eMode == EM_PAGE )
{
- BOOL bLayer = pDrawViewSh->IsLayerModeActive();
+ sal_Bool bLayer = pDrawViewSh->IsLayerModeActive();
pDrawViewSh->ChangeEditMode( eMode, !bLayer );
pDrawViewSh->ChangeEditMode( eMode, bLayer );
@@ -3061,7 +3061,7 @@ void SAL_CALL SdMasterPage::setName( const OUString& aName )
EditMode eMode = pDrawViewSh->GetEditMode();
if( eMode == EM_MASTERPAGE )
{
- BOOL bLayer = pDrawViewSh->IsLayerModeActive();
+ sal_Bool bLayer = pDrawViewSh->IsLayerModeActive();
pDrawViewSh->ChangeEditMode( eMode, !bLayer );
pDrawViewSh->ChangeEditMode( eMode, bLayer );