summaryrefslogtreecommitdiff
path: root/sd/source/ui/dlg
diff options
context:
space:
mode:
Diffstat (limited to 'sd/source/ui/dlg')
-rwxr-xr-x[-rw-r--r--]sd/source/ui/dlg/AnimationChildWindow.cxx4
-rwxr-xr-x[-rw-r--r--]sd/source/ui/dlg/LayerDialogChildWindow.cxx2
-rwxr-xr-xsd/source/ui/dlg/LayerDialogContent.cxx2
-rwxr-xr-xsd/source/ui/dlg/LayerTabBar.cxx32
-rwxr-xr-x[-rw-r--r--]sd/source/ui/dlg/NavigatorChildWindow.cxx2
-rwxr-xr-xsd/source/ui/dlg/PaneChildWindows.cxx14
-rw-r--r--sd/source/ui/dlg/PaneDockingWindow.cxx4
-rwxr-xr-xsd/source/ui/dlg/SpellDialogChildWindow.cxx4
-rwxr-xr-xsd/source/ui/dlg/animobjs.cxx156
-rwxr-xr-x[-rw-r--r--]sd/source/ui/dlg/assclass.cxx4
-rwxr-xr-x[-rw-r--r--]sd/source/ui/dlg/brkdlg.cxx10
-rwxr-xr-x[-rw-r--r--]sd/source/ui/dlg/celltempl.cxx4
-rwxr-xr-x[-rw-r--r--]sd/source/ui/dlg/copydlg.cxx32
-rwxr-xr-xsd/source/ui/dlg/custsdlg.cxx92
-rwxr-xr-x[-rw-r--r--]sd/source/ui/dlg/diactrl.cxx6
-rwxr-xr-xsd/source/ui/dlg/dlgass.cxx184
-rwxr-xr-xsd/source/ui/dlg/dlgassim.cxx22
-rwxr-xr-xsd/source/ui/dlg/dlgassim.hxx4
-rwxr-xr-x[-rw-r--r--]sd/source/ui/dlg/dlgchar.cxx2
-rwxr-xr-xsd/source/ui/dlg/dlgctrls.cxx8
-rwxr-xr-x[-rw-r--r--]sd/source/ui/dlg/dlgfield.cxx12
-rwxr-xr-x[-rw-r--r--]sd/source/ui/dlg/dlgolbul.cxx36
-rwxr-xr-x[-rw-r--r--]sd/source/ui/dlg/dlgpage.cxx10
-rwxr-xr-xsd/source/ui/dlg/dlgsnap.cxx14
-rwxr-xr-xsd/source/ui/dlg/docprev.cxx16
-rwxr-xr-xsd/source/ui/dlg/filedlg.cxx20
-rwxr-xr-x[-rw-r--r--]sd/source/ui/dlg/gluectrl.cxx14
-rwxr-xr-xsd/source/ui/dlg/headerfooterdlg.cxx34
-rwxr-xr-x[-rw-r--r--]sd/source/ui/dlg/ins_paste.cxx4
-rwxr-xr-xsd/source/ui/dlg/inspagob.cxx8
-rwxr-xr-x[-rw-r--r--]sd/source/ui/dlg/masterlayoutdlg.cxx4
-rwxr-xr-x[-rw-r--r--]sd/source/ui/dlg/morphdlg.cxx8
-rwxr-xr-xsd/source/ui/dlg/navigatr.cxx114
-rwxr-xr-x[-rw-r--r--]sd/source/ui/dlg/paragr.cxx24
-rwxr-xr-x[-rw-r--r--]sd/source/ui/dlg/present.cxx22
-rwxr-xr-x[-rw-r--r--]sd/source/ui/dlg/prltempl.cxx16
-rwxr-xr-xsd/source/ui/dlg/prntopts.cxx14
-rwxr-xr-xsd/source/ui/dlg/sddlgfact.cxx46
-rwxr-xr-xsd/source/ui/dlg/sddlgfact.hxx44
-rwxr-xr-x[-rw-r--r--]sd/source/ui/dlg/sdpreslt.cxx44
-rwxr-xr-xsd/source/ui/dlg/sdtreelb.cxx134
-rwxr-xr-x[-rw-r--r--]sd/source/ui/dlg/tabtempl.cxx4
-rwxr-xr-xsd/source/ui/dlg/tpaction.cxx84
-rwxr-xr-x[-rw-r--r--]sd/source/ui/dlg/tpoption.cxx94
-rwxr-xr-x[-rw-r--r--]sd/source/ui/dlg/unchss.cxx2
-rwxr-xr-x[-rw-r--r--]sd/source/ui/dlg/vectdlg.cxx38
46 files changed, 724 insertions, 724 deletions
diff --git a/sd/source/ui/dlg/AnimationChildWindow.cxx b/sd/source/ui/dlg/AnimationChildWindow.cxx
index fa62b21948a8..a666e298c819 100644..100755
--- a/sd/source/ui/dlg/AnimationChildWindow.cxx
+++ b/sd/source/ui/dlg/AnimationChildWindow.cxx
@@ -49,7 +49,7 @@ SFX_IMPL_DOCKINGWINDOW(AnimationChildWindow, SID_ANIMATION_OBJECTS)
AnimationChildWindow::AnimationChildWindow(
::Window* _pParent,
- USHORT nId,
+ sal_uInt16 nId,
SfxBindings* pBindings,
SfxChildWinInfo* pInfo )
: SfxChildWindow( _pParent, nId )
@@ -75,7 +75,7 @@ AnimationChildWindow::AnimationChildWindow(
pAnimWin->aFltWinSize = pWindow->GetSizePixel();
*/
- SetHideNotDelete( TRUE );
+ SetHideNotDelete( sal_True );
}
} // end of namespace sd
diff --git a/sd/source/ui/dlg/LayerDialogChildWindow.cxx b/sd/source/ui/dlg/LayerDialogChildWindow.cxx
index 8725cfc594fd..ae5ccc8d71c6 100644..100755
--- a/sd/source/ui/dlg/LayerDialogChildWindow.cxx
+++ b/sd/source/ui/dlg/LayerDialogChildWindow.cxx
@@ -53,7 +53,7 @@ namespace sd {
LayerDialogChildWindow::LayerDialogChildWindow (
::Window* _pParent,
- USHORT nId,
+ sal_uInt16 nId,
SfxBindings* pBindings,
SfxChildWinInfo* pInfo)
: SfxChildWindow (_pParent, nId)
diff --git a/sd/source/ui/dlg/LayerDialogContent.cxx b/sd/source/ui/dlg/LayerDialogContent.cxx
index 975d277c7dff..90d53674b905 100755
--- a/sd/source/ui/dlg/LayerDialogContent.cxx
+++ b/sd/source/ui/dlg/LayerDialogContent.cxx
@@ -86,7 +86,7 @@ LayerDialogContent::~LayerDialogContent (void)
-BOOL LayerDialogContent::Close (void)
+sal_Bool LayerDialogContent::Close (void)
{
return SfxDockingWindow::Close();
}
diff --git a/sd/source/ui/dlg/LayerTabBar.cxx b/sd/source/ui/dlg/LayerTabBar.cxx
index cd5977772bfe..c147d1e616b5 100755
--- a/sd/source/ui/dlg/LayerTabBar.cxx
+++ b/sd/source/ui/dlg/LayerTabBar.cxx
@@ -112,26 +112,26 @@ void LayerTabBar::Select()
void LayerTabBar::MouseButtonDown(const MouseEvent& rMEvt)
{
- BOOL bSetPageID=FALSE;
+ sal_Bool bSetPageID=sal_False;
if (rMEvt.IsLeft() && !rMEvt.IsMod1() && !rMEvt.IsMod2())
{
Point aPosPixel = rMEvt.GetPosPixel();
- USHORT aLayerId = GetPageId( PixelToLogic(aPosPixel) );
+ sal_uInt16 aLayerId = GetPageId( PixelToLogic(aPosPixel) );
if (aLayerId == 0)
{
SfxDispatcher* pDispatcher = pDrViewSh->GetViewFrame()->GetDispatcher();
pDispatcher->Execute(SID_INSERTLAYER, SFX_CALLMODE_SYNCHRON);
- bSetPageID=TRUE;
+ bSetPageID=sal_True;
}
else if (rMEvt.IsShift())
{
// Toggle zw. Layer sichtbar / unsichtbar
String aName(GetPageText(aLayerId));
SdrPageView* pPV = pDrViewSh->GetView()->GetSdrPageView();
- BOOL bVisible = pPV->IsLayerVisible(aName);
+ sal_Bool bVisible = pPV->IsLayerVisible(aName);
pPV->SetLayerVisible(aName, !bVisible);
pDrViewSh->ResetActualLayer();
}
@@ -172,9 +172,9 @@ sal_Int8 LayerTabBar::AcceptDrop( const AcceptDropEvent& rEvt )
if( !pDrViewSh->GetDocSh()->IsReadOnly() )
{
- USHORT nPageId = SDRPAGE_NOTFOUND;
+ sal_uInt16 nPageId = SDRPAGE_NOTFOUND;
Point aPos( PixelToLogic( rEvt.maPosPixel ) );
- USHORT nLayerId = pDrViewSh->GetView()->GetDoc()->GetLayerAdmin().GetLayerID( GetPageText( GetPageId( aPos ) ), FALSE );
+ sal_uInt16 nLayerId = pDrViewSh->GetView()->GetDoc()->GetLayerAdmin().GetLayerID( GetPageText( GetPageId( aPos ) ), sal_False );
nRet = pDrViewSh->AcceptDrop( rEvt, *this, NULL, nPageId, nLayerId );
@@ -192,8 +192,8 @@ sal_Int8 LayerTabBar::AcceptDrop( const AcceptDropEvent& rEvt )
sal_Int8 LayerTabBar::ExecuteDrop( const ExecuteDropEvent& rEvt )
{
- USHORT nPageId = SDRPAGE_NOTFOUND;
- USHORT nLayerId = pDrViewSh->GetView()->GetDoc()->GetLayerAdmin().GetLayerID( GetPageText( GetPageId( PixelToLogic( rEvt.maPosPixel ) ) ), FALSE );
+ sal_uInt16 nPageId = SDRPAGE_NOTFOUND;
+ sal_uInt16 nLayerId = pDrViewSh->GetView()->GetDoc()->GetLayerAdmin().GetLayerID( GetPageText( GetPageId( PixelToLogic( rEvt.maPosPixel ) ) ), sal_False );
sal_Int8 nRet = pDrViewSh->ExecuteDrop( rEvt, *this, NULL, nPageId, nLayerId );
EndSwitchPage();
@@ -221,7 +221,7 @@ void LayerTabBar::Command(const CommandEvent& rCEvt)
\************************************************************************/
long LayerTabBar::StartRenaming()
{
- BOOL bOK = TRUE;
+ sal_Bool bOK = sal_True;
String aLayerName = GetPageText( GetEditPageId() );
String aLayoutLayer ( SdResId(STR_LAYER_LAYOUT) );
String aControlsLayer ( SdResId(STR_LAYER_CONTROLS) );
@@ -234,7 +234,7 @@ long LayerTabBar::StartRenaming()
aLayerName == aBackgroundLayer || aLayerName == aBackgroundObjLayer )
{
// Diese Namen duerfen nicht veraendert werden
- bOK = FALSE;
+ bOK = sal_False;
}
else
{
@@ -255,7 +255,7 @@ long LayerTabBar::StartRenaming()
long LayerTabBar::AllowRenaming()
{
- BOOL bOK = TRUE;
+ sal_Bool bOK = sal_True;
// Ueberpruefung auf schon vorhandene Namen
::sd::View* pView = pDrViewSh->GetView();
@@ -265,13 +265,13 @@ long LayerTabBar::AllowRenaming()
String aNewName( GetEditText() );
if ( aNewName.Len() == 0 ||
- (rLayerAdmin.GetLayer( aNewName, FALSE ) && aLayerName != aNewName) )
+ (rLayerAdmin.GetLayer( aNewName, sal_False ) && aLayerName != aNewName) )
{
// Name ist schon vorhanden
WarningBox aWarningBox( &pDrViewSh->GetViewFrame()->GetWindow(), WinBits( WB_OK ),
String(SdResId( STR_WARN_NAME_DUPLICATE ) ) );
aWarningBox.Execute();
- bOK = FALSE;
+ bOK = sal_False;
}
if (bOK)
@@ -287,7 +287,7 @@ long LayerTabBar::AllowRenaming()
aNewName == aBackgroundLayer || aNewName == aBackgroundObjLayer )
{
// Diese Namen duerfen nicht vergeben werden
- bOK = FALSE;
+ bOK = sal_False;
}
}
@@ -308,7 +308,7 @@ void LayerTabBar::EndRenaming()
SdDrawDocument* pDoc = pView->GetDoc();
String aLayerName = pView->GetActiveLayer();
SdrLayerAdmin& rLayerAdmin = pDoc->GetLayerAdmin();
- SdrLayer* pLayer = rLayerAdmin.GetLayer(aLayerName, FALSE);
+ SdrLayer* pLayer = rLayerAdmin.GetLayer(aLayerName, sal_False);
if (pLayer)
{
@@ -342,7 +342,7 @@ void LayerTabBar::EndRenaming()
// schon bekannt sein muss.
pView->SetActiveLayer(aNewName);
pLayer->SetName(aNewName);
- pDoc->SetChanged(TRUE);
+ pDoc->SetChanged(sal_True);
}
}
}
diff --git a/sd/source/ui/dlg/NavigatorChildWindow.cxx b/sd/source/ui/dlg/NavigatorChildWindow.cxx
index a17a4064bf6e..e247847cefad 100644..100755
--- a/sd/source/ui/dlg/NavigatorChildWindow.cxx
+++ b/sd/source/ui/dlg/NavigatorChildWindow.cxx
@@ -40,7 +40,7 @@ SFX_IMPL_CHILDWINDOWCONTEXT(NavigatorChildWindow, SID_NAVIGATOR)
NavigatorChildWindow::NavigatorChildWindow (
::Window* pParent,
- USHORT nId,
+ sal_uInt16 nId,
SfxBindings* pBindings,
SfxChildWinInfo* )
: SfxChildWindowContext( nId )
diff --git a/sd/source/ui/dlg/PaneChildWindows.cxx b/sd/source/ui/dlg/PaneChildWindows.cxx
index f9f181b0e44d..25e4a3e119b1 100755
--- a/sd/source/ui/dlg/PaneChildWindows.cxx
+++ b/sd/source/ui/dlg/PaneChildWindows.cxx
@@ -62,11 +62,11 @@ SFX_IMPL_DOCKINGWINDOW( ToolPanelChildWindow, SID_TASKPANE)
PaneChildWindow::PaneChildWindow (
::Window* pParentWindow,
- USHORT nId,
+ sal_uInt16 nId,
SfxBindings* pBindings,
SfxChildWinInfo* pInfo,
- const USHORT nDockWinTitleResId,
- const USHORT nTitleBarResId,
+ const sal_uInt16 nDockWinTitleResId,
+ const sal_uInt16 nTitleBarResId,
SfxChildAlignment eAlignment)
: SfxChildWindow (pParentWindow, nId)
{
@@ -78,7 +78,7 @@ PaneChildWindow::PaneChildWindow (
String( SdResId( nTitleBarResId ) ) );
eChildAlignment = eAlignment;
static_cast<SfxDockingWindow*>(pWindow)->Initialize(pInfo);
- SetHideNotDelete(TRUE);
+ SetHideNotDelete(sal_True);
ViewShellBase* pBase = ViewShellBase::GetViewShellBase(pBindings->GetDispatcher()->GetFrame());
if (pBase != NULL)
@@ -110,7 +110,7 @@ PaneChildWindow::~PaneChildWindow (void)
LeftPaneImpressChildWindow::LeftPaneImpressChildWindow (
::Window* pParentWindow,
- USHORT nId,
+ sal_uInt16 nId,
SfxBindings* pBindings,
SfxChildWinInfo* pInfo)
: PaneChildWindow(
@@ -131,7 +131,7 @@ LeftPaneImpressChildWindow::LeftPaneImpressChildWindow (
LeftPaneDrawChildWindow::LeftPaneDrawChildWindow (
::Window* pParentWindow,
- USHORT nId,
+ sal_uInt16 nId,
SfxBindings* pBindings,
SfxChildWinInfo* pInfo)
: PaneChildWindow(
@@ -152,7 +152,7 @@ LeftPaneDrawChildWindow::LeftPaneDrawChildWindow (
//= ToolPanelChildWindow
//======================================================================================================================
//----------------------------------------------------------------------------------------------------------------------
-ToolPanelChildWindow::ToolPanelChildWindow( ::Window* i_pParentWindow, USHORT i_nId, SfxBindings* i_pBindings,
+ToolPanelChildWindow::ToolPanelChildWindow( ::Window* i_pParentWindow, sal_uInt16 i_nId, SfxBindings* i_pBindings,
SfxChildWinInfo* i_pChildWindowInfo )
:PaneChildWindow( i_pParentWindow, i_nId, i_pBindings, i_pChildWindowInfo,
FLT_TOOL_PANEL_DOCKING_WINDOW, STR_RIGHT_PANE_TITLE, SFX_ALIGN_RIGHT )
diff --git a/sd/source/ui/dlg/PaneDockingWindow.cxx b/sd/source/ui/dlg/PaneDockingWindow.cxx
index bcf58c38c0b1..77cc8679968f 100644
--- a/sd/source/ui/dlg/PaneDockingWindow.cxx
+++ b/sd/source/ui/dlg/PaneDockingWindow.cxx
@@ -114,8 +114,8 @@ void PaneDockingWindow::SetValidSizeRange (const Range aValidSizeRange)
SplitWindow* pSplitWindow = dynamic_cast<SplitWindow*>(GetParent());
if (pSplitWindow != NULL)
{
- const USHORT nId (pSplitWindow->GetItemId(static_cast< ::Window*>(this)));
- const USHORT nSetId (pSplitWindow->GetSet(nId));
+ const sal_uInt16 nId (pSplitWindow->GetItemId(static_cast< ::Window*>(this)));
+ const sal_uInt16 nSetId (pSplitWindow->GetSet(nId));
// Because the PaneDockingWindow paints its own decoration, we have
// to compensate the valid size range for that.
const SvBorder aBorder (GetDecorationBorder());
diff --git a/sd/source/ui/dlg/SpellDialogChildWindow.cxx b/sd/source/ui/dlg/SpellDialogChildWindow.cxx
index 7aee12f23bbd..aa93635c4032 100755
--- a/sd/source/ui/dlg/SpellDialogChildWindow.cxx
+++ b/sd/source/ui/dlg/SpellDialogChildWindow.cxx
@@ -51,7 +51,7 @@ namespace sd {
SpellDialogChildWindow::SpellDialogChildWindow (
::Window* _pParent,
- USHORT nId,
+ sal_uInt16 nId,
SfxBindings* pBindings,
SfxChildWinInfo* pInfo)
: ::svx::SpellDialogChildWindow (_pParent, nId, pBindings, pInfo),
@@ -110,7 +110,7 @@ void SpellDialogChildWindow::InvalidateSpellDialog (void)
// check.
if (aResult.size() == 0)
{
- SfxBoolItem aItem (SID_SPELL_DIALOG, FALSE);
+ SfxBoolItem aItem (SID_SPELL_DIALOG, sal_False);
GetBindings().GetDispatcher()->Execute(
SID_SPELL_DIALOG,
SFX_CALLMODE_ASYNCHRON,
diff --git a/sd/source/ui/dlg/animobjs.cxx b/sd/source/ui/dlg/animobjs.cxx
index e179a0ba9f86..e5e27928f520 100755
--- a/sd/source/ui/dlg/animobjs.cxx
+++ b/sd/source/ui/dlg/animobjs.cxx
@@ -176,8 +176,8 @@ AnimationWindow::AnimationWindow( SfxBindings* pInBindings,
pWin ( pParent ),
pBitmapEx ( NULL ),
- bMovie ( FALSE ),
- bAllObjects ( FALSE ),
+ bMovie ( sal_False ),
+ bAllObjects ( sal_False ),
pBindings ( pInBindings )
{
@@ -190,7 +190,7 @@ AnimationWindow::AnimationWindow( SfxBindings* pInBindings,
// neues Dokument mit Seite erzeugen
pMyDoc = new SdDrawDocument(DOCUMENT_TYPE_IMPRESS, NULL);
- SdPage* pPage = (SdPage*) pMyDoc->AllocPage(FALSE);
+ SdPage* pPage = (SdPage*) pMyDoc->AllocPage(sal_False);
pMyDoc->InsertPage(pPage);
pControllerItem = new AnimationControllerItem( SID_ANIMATOR_STATE, this, pBindings );
@@ -232,7 +232,7 @@ AnimationWindow::AnimationWindow( SfxBindings* pInBindings,
AnimationWindow::~AnimationWindow()
{
- ULONG i, nCount;
+ sal_uLong i, nCount;
delete pControllerItem;
@@ -265,7 +265,7 @@ IMPL_LINK( AnimationWindow, ClickFirstHdl, void *, EMPTYARG )
IMPL_LINK( AnimationWindow, ClickStopHdl, void *, EMPTYARG )
{
- bMovie = FALSE;
+ bMovie = sal_False;
return( 0L );
}
@@ -275,22 +275,22 @@ IMPL_LINK( AnimationWindow, ClickPlayHdl, void *, p )
{
ScopeLockGuard aGuard( maPlayLock );
- bMovie = TRUE;
- BOOL bDisableCtrls = FALSE;
- ULONG nCount = aBmpExList.Count();
- BOOL bReverse = p == &aBtnReverse;
+ bMovie = sal_True;
+ sal_Bool bDisableCtrls = sal_False;
+ sal_uLong nCount = aBmpExList.Count();
+ sal_Bool bReverse = p == &aBtnReverse;
// Kann spaeter schwer ermittelt werden
- BOOL bRbtGroupEnabled = aRbtGroup.IsEnabled();
- BOOL bBtnGetAllObjectsEnabled = aBtnGetAllObjects.IsEnabled();
- BOOL bBtnGetOneObjectEnabled = aBtnGetOneObject.IsEnabled();
+ sal_Bool bRbtGroupEnabled = aRbtGroup.IsEnabled();
+ sal_Bool bBtnGetAllObjectsEnabled = aBtnGetAllObjects.IsEnabled();
+ sal_Bool bBtnGetOneObjectEnabled = aBtnGetOneObject.IsEnabled();
// Gesamtzeit ermitteln
Time aTime( 0 );
long nFullTime;
if( aRbtBitmap.IsChecked() )
{
- for( ULONG i = 0; i < nCount; i++ )
+ for( sal_uLong i = 0; i < nCount; i++ )
aTime += *static_cast< Time* >( aTimeList.GetObject( i ) );
nFullTime = aTime.GetMSFromTime();
}
@@ -304,16 +304,16 @@ IMPL_LINK( AnimationWindow, ClickPlayHdl, void *, p )
SfxProgress* pProgress = NULL;
if( nFullTime >= 1000 )
{
- bDisableCtrls = TRUE;
+ bDisableCtrls = sal_True;
aBtnStop.Enable();
aBtnStop.Update();
String aStr( RTL_CONSTASCII_USTRINGPARAM( "Animator:" ) ); // Hier sollte man sich noch etwas gescheites ausdenken!
pProgress = new SfxProgress( NULL, aStr, nFullTime );
}
- ULONG nTmpTime = 0;
+ sal_uLong nTmpTime = 0;
long i = 0;
- BOOL bCount = i < (long) nCount;
+ sal_Bool bCount = i < (long) nCount;
if( bReverse )
{
i = nCount - 1;
@@ -333,7 +333,7 @@ IMPL_LINK( AnimationWindow, ClickPlayHdl, void *, p )
DBG_ASSERT( pTime, "Keine Zeit gefunden!" );
aTimeField.SetTime( *pTime );
- ULONG nTime = pTime->GetMSFromTime();
+ sal_uLong nTime = pTime->GetMSFromTime();
WaitInEffect( nTime, nTmpTime, pProgress );
nTmpTime += nTime;
@@ -368,7 +368,7 @@ IMPL_LINK( AnimationWindow, ClickPlayHdl, void *, p )
}
// Um die Controls wieder zu enablen
- bMovie = FALSE;
+ bMovie = sal_False;
if (nCount > 0)
UpdateControl(i);
@@ -403,12 +403,12 @@ IMPL_LINK( AnimationWindow, ClickRbtHdl, void *, p )
if( !pBitmapEx || p == &aRbtGroup || aRbtGroup.IsChecked() )
{
aTimeField.SetText( String() );
- aTimeField.Enable( FALSE );
- aLbLoopCount.Enable( FALSE );
+ aTimeField.Enable( sal_False );
+ aLbLoopCount.Enable( sal_False );
}
else if( p == &aRbtBitmap || aRbtBitmap.IsChecked() )
{
- ULONG n = static_cast<ULONG>(aNumFldBitmap.GetValue());
+ sal_uLong n = static_cast<sal_uLong>(aNumFldBitmap.GetValue());
if( n > 0 )
{
Time* pTime = static_cast< Time* >( aTimeList.GetObject( n - 1 ) );
@@ -429,7 +429,7 @@ IMPL_LINK( AnimationWindow, ClickGetObjectHdl, void *, pBtn )
bAllObjects = pBtn == &aBtnGetAllObjects;
// Code jetzt in AddObj()
- SfxBoolItem aItem( SID_ANIMATOR_ADD, TRUE );
+ SfxBoolItem aItem( SID_ANIMATOR_ADD, sal_True );
GetBindings().GetDispatcher()->Execute(
SID_ANIMATOR_ADD, SFX_CALLMODE_SLOT | SFX_CALLMODE_RECORD, &aItem, 0L );
@@ -445,7 +445,7 @@ IMPL_LINK( AnimationWindow, ClickRemoveBitmapHdl, void *, pBtn )
if( pBtn == &aBtnRemoveBitmap )
{
- ULONG nPos = aBmpExList.GetCurPos();
+ sal_uLong nPos = aBmpExList.GetCurPos();
pBitmapEx = static_cast< BitmapEx* >( aBmpExList.GetCurObject() );
if( pBitmapEx )
{
@@ -533,7 +533,7 @@ IMPL_LINK( AnimationWindow, ClickRemoveBitmapHdl, void *, pBtn )
IMPL_LINK( AnimationWindow, ClickCreateGroupHdl, void *, EMPTYARG )
{
// Code jetzt in CreatePresObj()
- SfxBoolItem aItem( SID_ANIMATOR_CREATE, TRUE );
+ SfxBoolItem aItem( SID_ANIMATOR_CREATE, sal_True );
GetBindings().GetDispatcher()->Execute(
SID_ANIMATOR_CREATE, SFX_CALLMODE_SLOT | SFX_CALLMODE_RECORD, &aItem, 0L );
@@ -544,7 +544,7 @@ IMPL_LINK( AnimationWindow, ClickCreateGroupHdl, void *, EMPTYARG )
IMPL_LINK( AnimationWindow, ModifyBitmapHdl, void *, EMPTYARG )
{
- ULONG nBmp = static_cast<ULONG>(aNumFldBitmap.GetValue());
+ sal_uLong nBmp = static_cast<sal_uLong>(aNumFldBitmap.GetValue());
if( nBmp > aBmpExList.Count() )
nBmp = aBmpExList.Count();
@@ -563,7 +563,7 @@ IMPL_LINK( AnimationWindow, ModifyBitmapHdl, void *, EMPTYARG )
IMPL_LINK( AnimationWindow, ModifyTimeHdl, void *, EMPTYARG )
{
- ULONG nPos = static_cast<ULONG>(aNumFldBitmap.GetValue() - 1);
+ sal_uLong nPos = static_cast<sal_uLong>(aNumFldBitmap.GetValue() - 1);
Time* pTime = static_cast< Time* >( aTimeList.GetObject( nPos ) );
DBG_ASSERT( pTime, "Zeit nicht gefunden!" );
@@ -575,7 +575,7 @@ IMPL_LINK( AnimationWindow, ModifyTimeHdl, void *, EMPTYARG )
// -----------------------------------------------------------------------
-void AnimationWindow::UpdateControl( ULONG nListPos, BOOL bDisableCtrls )
+void AnimationWindow::UpdateControl( sal_uLong nListPos, sal_Bool bDisableCtrls )
{
String aString;
@@ -584,7 +584,7 @@ void AnimationWindow::UpdateControl( ULONG nListPos, BOOL bDisableCtrls )
BitmapEx aBmp( *pBitmapEx );
SdPage* pPage = pMyDoc->GetSdPage(0, PK_STANDARD);
- SdrObject* pObject = (SdrObject*) pPage->GetObj( (ULONG) nListPos );
+ SdrObject* pObject = (SdrObject*) pPage->GetObj( (sal_uLong) nListPos );
if( pObject )
{
VirtualDevice aVD;
@@ -638,15 +638,15 @@ void AnimationWindow::UpdateControl( ULONG nListPos, BOOL bDisableCtrls )
//aFiCount.SetText( String( SdResId( STR_NULL ) ) );
// Wenn kein Objekt in der Liste ist
- aBtnFirst.Enable( FALSE );
- aBtnReverse.Enable( FALSE );
- aBtnPlay.Enable( FALSE );
- aBtnLast.Enable( FALSE );
- aNumFldBitmap.Enable( FALSE );
- aTimeField.Enable( FALSE );
- aLbLoopCount.Enable( FALSE );
- aBtnRemoveBitmap.Enable( FALSE );
- aBtnRemoveAll.Enable( FALSE );
+ aBtnFirst.Enable( sal_False );
+ aBtnReverse.Enable( sal_False );
+ aBtnPlay.Enable( sal_False );
+ aBtnLast.Enable( sal_False );
+ aNumFldBitmap.Enable( sal_False );
+ aTimeField.Enable( sal_False );
+ aLbLoopCount.Enable( sal_False );
+ aBtnRemoveBitmap.Enable( sal_False );
+ aBtnRemoveAll.Enable( sal_False );
//aFtAdjustment.Enable();
//aLbAdjustment.Enable();
@@ -654,13 +654,13 @@ void AnimationWindow::UpdateControl( ULONG nListPos, BOOL bDisableCtrls )
if( bMovie && bDisableCtrls )
{
- aBtnGetOneObject.Enable( FALSE );
- aBtnGetAllObjects.Enable( FALSE );
- aRbtGroup.Enable( FALSE );
- aRbtBitmap.Enable( FALSE );
- aBtnCreateGroup.Enable( FALSE );
- aFtAdjustment.Enable( FALSE );
- aLbAdjustment.Enable( FALSE );
+ aBtnGetOneObject.Enable( sal_False );
+ aBtnGetAllObjects.Enable( sal_False );
+ aRbtGroup.Enable( sal_False );
+ aRbtBitmap.Enable( sal_False );
+ aBtnCreateGroup.Enable( sal_False );
+ aFtAdjustment.Enable( sal_False );
+ aLbAdjustment.Enable( sal_False );
}
else
{
@@ -670,8 +670,8 @@ void AnimationWindow::UpdateControl( ULONG nListPos, BOOL bDisableCtrls )
aRbtBitmap.Enable();
aBtnCreateGroup.Enable(aBmpExList.Count() != 0);
- aFtAdjustment.Enable( TRUE );
- aLbAdjustment.Enable( TRUE );
+ aFtAdjustment.Enable( sal_True );
+ aLbAdjustment.Enable( sal_True );
}
ClickRbtHdl( NULL );
@@ -691,7 +691,7 @@ void AnimationWindow::ResetAttrs()
// -----------------------------------------------------------------------
-void AnimationWindow::WaitInEffect( ULONG nMilliSeconds, ULONG nTime,
+void AnimationWindow::WaitInEffect( sal_uLong nMilliSeconds, sal_uLong nTime,
SfxProgress* pProgress ) const
{
clock_t aEnd = Time::GetSystemTicks() + nMilliSeconds;
@@ -715,13 +715,13 @@ void AnimationWindow::WaitInEffect( ULONG nMilliSeconds, ULONG nTime,
Fraction AnimationWindow::GetScale()
{
Fraction aFrac;
- ULONG nPos = aBmpExList.GetCurPos();
- ULONG nCount = aBmpExList.Count();
+ sal_uLong nPos = aBmpExList.GetCurPos();
+ sal_uLong nCount = aBmpExList.Count();
if( nCount > 0 )
{
aBmpSize.Width() = 0;
aBmpSize.Height() = 0;
- for( ULONG i = 0; i < nCount; i++ )
+ for( sal_uLong i = 0; i < nCount; i++ )
{
pBitmapEx = static_cast< BitmapEx* >( aBmpExList.GetObject( i ) );
Size aTempSize( pBitmapEx->GetBitmap().GetSizePixel() );
@@ -846,22 +846,22 @@ void AnimationWindow::Resize()
// -----------------------------------------------------------------------
-BOOL AnimationWindow::Close()
+sal_Bool AnimationWindow::Close()
{
if( maPlayLock.isLocked() )
{
- return FALSE;
+ return sal_False;
}
else
{
- SfxBoolItem aItem( SID_ANIMATION_OBJECTS, FALSE );
+ SfxBoolItem aItem( SID_ANIMATION_OBJECTS, sal_False );
GetBindings().GetDispatcher()->Execute(
SID_ANIMATION_OBJECTS, SFX_CALLMODE_ASYNCHRON | SFX_CALLMODE_RECORD, &aItem, 0L );
SfxDockingWindow::Close();
- return TRUE;
+ return sal_True;
}
}
@@ -883,30 +883,30 @@ void AnimationWindow::AddObj (::sd::View& rView )
// Objekt(e) clonen und den/die Clone(s) in die Liste stellen
const SdrMarkList& rMarkList = rView.GetMarkedObjectList();
- ULONG nMarkCount = rMarkList.GetMarkCount();
+ sal_uLong nMarkCount = rMarkList.GetMarkCount();
SdPage* pPage = pMyDoc->GetSdPage(0, PK_STANDARD);
- ULONG nCloneCount = pPage->GetObjCount();
+ sal_uLong nCloneCount = pPage->GetObjCount();
if (nMarkCount > 0)
{
// Wenn es sich um EIN Animationsobjekt oder ein Gruppenobjekt
// handelt, das 'einzeln uebernommen' wurde,
// werden die einzelnen Objekte eingefuegt
- BOOL bAnimObj = FALSE;
+ sal_Bool bAnimObj = sal_False;
if( nMarkCount == 1 )
{
SdrMark* pMark = rMarkList.GetMark(0);
SdrObject* pObject = pMark->GetMarkedSdrObj();
SdAnimationInfo* pAnimInfo = rView.GetDoc()->GetAnimationInfo( pObject );
- UINT32 nInv = pObject->GetObjInventor();
- UINT16 nId = pObject->GetObjIdentifier();
+ sal_uInt32 nInv = pObject->GetObjInventor();
+ sal_uInt16 nId = pObject->GetObjIdentifier();
// Animated Bitmap (GIF)
if( nInv == SdrInventor && nId == OBJ_GRAF && ( (SdrGrafObj*) pObject )->IsAnimated() )
{
const SdrGrafObj* pGrafObj = (SdrGrafObj*) pObject;
Graphic aGraphic( pGrafObj->GetTransformedGraphic() );
- USHORT nCount = 0;
+ sal_uInt16 nCount = 0;
if( aGraphic.IsAnimated() )
nCount = aGraphic.GetAnimation().Count();
@@ -915,7 +915,7 @@ void AnimationWindow::AddObj (::sd::View& rView )
{
const Animation aAnimation( aGraphic.GetAnimation() );
- for( USHORT i = 0; i < nCount; i++ )
+ for( sal_uInt16 i = 0; i < nCount; i++ )
{
const AnimationBitmap& rAnimBmp = aAnimation.Get( i );
@@ -943,8 +943,8 @@ void AnimationWindow::AddObj (::sd::View& rView )
}
// Nachdem ein animated GIF uebernommen wurde, kann auch nur ein solches erstellt werden
aRbtBitmap.Check();
- aRbtGroup.Enable( FALSE );
- bAnimObj = TRUE;
+ aRbtGroup.Enable( sal_False );
+ bAnimObj = sal_True;
}
}
else if( bAllObjects || ( pAnimInfo && pAnimInfo->mbIsMovie ) )
@@ -952,9 +952,9 @@ void AnimationWindow::AddObj (::sd::View& rView )
// Mehrere Objekte
SdrObjList* pObjList = ((SdrObjGroup*)pObject)->GetSubList();
- for( USHORT nObject = 0; nObject < pObjList->GetObjCount(); nObject++ )
+ for( sal_uInt16 nObject = 0; nObject < pObjList->GetObjCount(); nObject++ )
{
- SdrObject* pSnapShot = (SdrObject*) pObjList->GetObj( (ULONG) nObject );
+ SdrObject* pSnapShot = (SdrObject*) pObjList->GetObj( (sal_uLong) nObject );
pBitmapEx = new BitmapEx( SdrExchangeView::GetObjGraphic( pSnapShot->GetModel(), pSnapShot ).GetBitmapEx() );
aBmpExList.Insert( pBitmapEx, aBmpExList.GetCurPos() + 1 );
@@ -969,7 +969,7 @@ void AnimationWindow::AddObj (::sd::View& rView )
// Weiterschalten der BitmapListe
aBmpExList.Next();
}
- bAnimObj = TRUE;
+ bAnimObj = sal_True;
}
}
// Auch ein einzelnes animiertes Objekt
@@ -998,7 +998,7 @@ void AnimationWindow::AddObj (::sd::View& rView )
// Objekte einzeln uebernehmen
if( bAllObjects )
{
- for( ULONG nObject= 0; nObject < nMarkCount; nObject++ )
+ for( sal_uLong nObject= 0; nObject < nMarkCount; nObject++ )
{
// Clone
SdrObject* pObject = rMarkList.GetMark( nObject )->GetMarkedSdrObj();
@@ -1014,14 +1014,14 @@ void AnimationWindow::AddObj (::sd::View& rView )
aBmpExList.Next();
}
- bAnimObj = TRUE; // damit nicht nochmal weitergeschaltet wird
+ bAnimObj = sal_True; // damit nicht nochmal weitergeschaltet wird
}
else
{
SdrObjGroup* pCloneGroup = new SdrObjGroup;
SdrObjList* pObjList = pCloneGroup->GetSubList();
- for (ULONG nObject= 0; nObject < nMarkCount; nObject++)
+ for (sal_uLong nObject= 0; nObject < nMarkCount; nObject++)
pObjList->InsertObject(rMarkList.GetMark(nObject)->GetMarkedSdrObj()->Clone(), LIST_APPEND);
pPage->InsertObject(pCloneGroup, aBmpExList.GetCurPos() + 1);
@@ -1058,9 +1058,9 @@ void AnimationWindow::CreateAnimObj (::sd::View& rView )
Size aTemp( pOutWin->GetOutputSizePixel() );
const Point aWindowCenter( pOutWin->PixelToLogic( Point( aTemp.Width() >> 1, aTemp.Height() >> 1 ) ) );
const OutputDevice* pDefDev = Application::GetDefaultDevice();
- const ULONG nCount = aBmpExList.Count();
+ const sal_uLong nCount = aBmpExList.Count();
BitmapAdjustment eBA = (BitmapAdjustment) aLbAdjustment.GetSelectEntryPos();
- ULONG i;
+ sal_uLong i;
// Groesste Bitmap ermitteln
for( i = 0; i < nCount; i++ )
@@ -1147,7 +1147,7 @@ void AnimationWindow::CreateAnimObj (::sd::View& rView )
// LoopCount (Anzahl der Durchlaeufe) ermitteln
AnimationBitmap aAnimBmp;
long nLoopCount = 0L;
- USHORT nPos = aLbLoopCount.GetSelectEntryPos();
+ sal_uInt16 nPos = aLbLoopCount.GetSelectEntryPos();
if( nPos != LISTBOX_ENTRY_NOTFOUND && nPos != aLbLoopCount.GetEntryCount() - 1 ) // unendlich
nLoopCount = (long) aLbLoopCount.GetSelectEntry().ToInt32();
@@ -1157,7 +1157,7 @@ void AnimationWindow::CreateAnimObj (::sd::View& rView )
aAnimBmp.aSizePix = aBitmapSize;
aAnimBmp.nWait = nTime;
aAnimBmp.eDisposal = DISPOSE_BACK;
- aAnimBmp.bUserInput = FALSE;
+ aAnimBmp.bUserInput = sal_False;
aAnimation.Insert( aAnimBmp );
aAnimation.SetDisplaySizePixel( aMaxSizePix );
@@ -1257,8 +1257,8 @@ void AnimationWindow::CreateAnimObj (::sd::View& rView )
SdAnimationInfo* pInfo = SdDrawDocument::GetShapeUserData(*pGroup,true);
pInfo->meEffect = presentation::AnimationEffect_NONE;
pInfo->meSpeed = presentation::AnimationSpeed_MEDIUM;
- pInfo->mbActive = TRUE;
- pInfo->mbIsMovie = TRUE;
+ pInfo->mbActive = sal_True;
+ pInfo->mbIsMovie = sal_True;
pInfo->maBlueScreen = COL_WHITE;
rView.InsertObjectAtView( pGroup, *pPV, SDRINSERT_SETDEFLAYER);
@@ -1284,7 +1284,7 @@ void AnimationWindow::DataChanged( const DataChangedEvent& rDCEvt )
\************************************************************************/
AnimationControllerItem::AnimationControllerItem(
- USHORT _nId,
+ sal_uInt16 _nId,
AnimationWindow* pAnimWin,
SfxBindings* _pBindings)
: SfxControllerItem( _nId, *_pBindings ),
@@ -1294,14 +1294,14 @@ AnimationControllerItem::AnimationControllerItem(
// -----------------------------------------------------------------------
-void AnimationControllerItem::StateChanged( USHORT nSId,
+void AnimationControllerItem::StateChanged( sal_uInt16 nSId,
SfxItemState eState, const SfxPoolItem* pItem )
{
if( eState >= SFX_ITEM_AVAILABLE && nSId == SID_ANIMATOR_STATE )
{
const SfxUInt16Item* pStateItem = PTR_CAST( SfxUInt16Item, pItem );
DBG_ASSERT( pStateItem, "SfxUInt16Item erwartet");
- UINT16 nState = pStateItem->GetValue();
+ sal_uInt16 nState = pStateItem->GetValue();
pAnimationWin->aBtnGetOneObject.Enable( nState & 1 );
pAnimationWin->aBtnGetAllObjects.Enable( nState & 2 );
diff --git a/sd/source/ui/dlg/assclass.cxx b/sd/source/ui/dlg/assclass.cxx
index 1df116f52625..36c30247e6c0 100644..100755
--- a/sd/source/ui/dlg/assclass.cxx
+++ b/sd/source/ui/dlg/assclass.cxx
@@ -46,10 +46,10 @@ Assistent::Assistent(int nNoOfPages)
mpPageStatus = new bool[mnPages];
- for(UINT8 i=0;i<mnPages;i++)
+ for(sal_uInt8 i=0;i<mnPages;i++)
{
mpPages[i]=new List();
- mpPageStatus[i] = TRUE;
+ mpPageStatus[i] = sal_True;
}
mnCurrentPage=1;
}
diff --git a/sd/source/ui/dlg/brkdlg.cxx b/sd/source/ui/dlg/brkdlg.cxx
index f2c69231d79e..fc95bfc2e285 100644..100755
--- a/sd/source/ui/dlg/brkdlg.cxx
+++ b/sd/source/ui/dlg/brkdlg.cxx
@@ -60,8 +60,8 @@ BreakDlg::BreakDlg(
::Window* pWindow,
DrawView* _pDrView,
DrawDocShell* pShell,
- ULONG nSumActionCount,
- ULONG nObjCount )
+ sal_uLong nSumActionCount,
+ sal_uLong nObjCount )
: SfxModalDialog ( pWindow, SdResId( DLG_BREAK ) ),
aFtObjInfo ( this, SdResId( FT_OBJ_INFO ) ),
aFtActInfo ( this, SdResId( FT_ACT_INFO ) ),
@@ -82,7 +82,7 @@ BreakDlg::BreakDlg(
pProgrInfo->Init( nSumActionCount*3, nObjCount );
pDrView = _pDrView;
- bCancel = FALSE;
+ bCancel = sal_False;
FreeResource();
}
@@ -99,7 +99,7 @@ BreakDlg::~BreakDlg()
// Control-Handler fuer den Abbruch Button
IMPL_LINK( BreakDlg, CancelButtonHdl, void *, EMPTYARG )
{
- bCancel = TRUE;
+ bCancel = sal_True;
aBtnCancel.Disable();
return( 0L );
}
@@ -180,7 +180,7 @@ short BreakDlg::Execute()
IMPL_LINK( BreakDlg, InitialUpdate, Timer*, EMPTYARG )
{
pDrView->DoImportMarkedMtf(pProgrInfo);
- EndDialog(TRUE);
+ EndDialog(sal_True);
return 0L;
}
diff --git a/sd/source/ui/dlg/celltempl.cxx b/sd/source/ui/dlg/celltempl.cxx
index 4938263b97d7..bdc280b6a6bc 100644..100755
--- a/sd/source/ui/dlg/celltempl.cxx
+++ b/sd/source/ui/dlg/celltempl.cxx
@@ -56,7 +56,7 @@
\************************************************************************/
SdPresCellTemplateDlg::SdPresCellTemplateDlg( SdrModel* pModel, Window* pParent, SfxStyleSheetBase& rStyleBase )
-: SfxStyleDialog( pParent, SdResId(TAB_CELL_TEMPLATE), rStyleBase, FALSE )
+: SfxStyleDialog( pParent, SdResId(TAB_CELL_TEMPLATE), rStyleBase, sal_False )
, mpColorTab( pModel->GetColorTable() )
, mpGradientList( pModel->GetGradientList() )
, mpHatchingList( pModel->GetHatchList() )
@@ -78,7 +78,7 @@ SdPresCellTemplateDlg::~SdPresCellTemplateDlg()
// -----------------------------------------------------------------------
-void SdPresCellTemplateDlg::PageCreated( USHORT nId, SfxTabPage &rPage )
+void SdPresCellTemplateDlg::PageCreated( sal_uInt16 nId, SfxTabPage &rPage )
{
switch( nId )
{
diff --git a/sd/source/ui/dlg/copydlg.cxx b/sd/source/ui/dlg/copydlg.cxx
index 6b3c04346f31..c32083d71dfe 100644..100755
--- a/sd/source/ui/dlg/copydlg.cxx
+++ b/sd/source/ui/dlg/copydlg.cxx
@@ -116,10 +116,10 @@ CopyDlg::CopyDlg(
FieldUnit eFUnit( SfxModule::GetCurrentFieldUnit() );
- SetFieldUnit( maMtrFldMoveX, eFUnit, TRUE );
- SetFieldUnit( maMtrFldMoveY, eFUnit, TRUE );
- SetFieldUnit( maMtrFldWidth, eFUnit, TRUE );
- SetFieldUnit( maMtrFldHeight, eFUnit, TRUE );
+ SetFieldUnit( maMtrFldMoveX, eFUnit, sal_True );
+ SetFieldUnit( maMtrFldMoveY, eFUnit, sal_True );
+ SetFieldUnit( maMtrFldWidth, eFUnit, sal_True );
+ SetFieldUnit( maMtrFldHeight, eFUnit, sal_True );
Reset(0L);
}
@@ -171,37 +171,37 @@ IMPL_LINK( CopyDlg, Reset, void*, EMPTYARG )
if( aStr.GetTokenCount( TOKEN ) < 8 )
{
- if( SFX_ITEM_SET == mrOutAttrs.GetItemState( ATTR_COPY_NUMBER, TRUE, &pPoolItem ) )
+ if( SFX_ITEM_SET == mrOutAttrs.GetItemState( ATTR_COPY_NUMBER, sal_True, &pPoolItem ) )
maNumFldCopies.SetValue( ( ( const SfxUInt16Item* ) pPoolItem )->GetValue() );
else
maNumFldCopies.SetValue( 1L );
long nMoveX = 500L;
- if( SFX_ITEM_SET == mrOutAttrs.GetItemState( ATTR_COPY_MOVE_X, TRUE, &pPoolItem ) )
+ if( SFX_ITEM_SET == mrOutAttrs.GetItemState( ATTR_COPY_MOVE_X, sal_True, &pPoolItem ) )
nMoveX = ( ( ( const SfxInt32Item* ) pPoolItem )->GetValue() );
SetMetricValue( maMtrFldMoveX, Fraction(nMoveX) / maUIScale, SFX_MAPUNIT_100TH_MM);
long nMoveY = 500L;
- if( SFX_ITEM_SET == mrOutAttrs.GetItemState( ATTR_COPY_MOVE_Y, TRUE, &pPoolItem ) )
+ if( SFX_ITEM_SET == mrOutAttrs.GetItemState( ATTR_COPY_MOVE_Y, sal_True, &pPoolItem ) )
nMoveY = ( ( ( const SfxInt32Item* ) pPoolItem )->GetValue() );
SetMetricValue( maMtrFldMoveY, Fraction(nMoveY) / maUIScale, SFX_MAPUNIT_100TH_MM);
- if( SFX_ITEM_SET == mrOutAttrs.GetItemState( ATTR_COPY_ANGLE, TRUE, &pPoolItem ) )
+ if( SFX_ITEM_SET == mrOutAttrs.GetItemState( ATTR_COPY_ANGLE, sal_True, &pPoolItem ) )
maMtrFldAngle.SetValue( ( ( const SfxInt32Item* ) pPoolItem )->GetValue() );
else
maMtrFldAngle.SetValue( 0L );
long nWidth = 0L;
- if( SFX_ITEM_SET == mrOutAttrs.GetItemState( ATTR_COPY_WIDTH, TRUE, &pPoolItem ) )
+ if( SFX_ITEM_SET == mrOutAttrs.GetItemState( ATTR_COPY_WIDTH, sal_True, &pPoolItem ) )
nWidth = ( ( ( const SfxInt32Item* ) pPoolItem )->GetValue() );
SetMetricValue( maMtrFldWidth, Fraction(nWidth) / maUIScale, SFX_MAPUNIT_100TH_MM);
long nHeight = 0L;
- if( SFX_ITEM_SET == mrOutAttrs.GetItemState( ATTR_COPY_HEIGHT, TRUE, &pPoolItem ) )
+ if( SFX_ITEM_SET == mrOutAttrs.GetItemState( ATTR_COPY_HEIGHT, sal_True, &pPoolItem ) )
nHeight = ( ( ( const SfxInt32Item* ) pPoolItem )->GetValue() );
SetMetricValue( maMtrFldHeight, Fraction(nHeight) / maUIScale, SFX_MAPUNIT_100TH_MM);
- if( SFX_ITEM_SET == mrOutAttrs.GetItemState( ATTR_COPY_START_COLOR, TRUE, &pPoolItem ) )
+ if( SFX_ITEM_SET == mrOutAttrs.GetItemState( ATTR_COPY_START_COLOR, sal_True, &pPoolItem ) )
{
Color aColor = ( ( const XColorItem* ) pPoolItem )->GetColorValue();
maLbStartColor.SelectEntry( aColor );
@@ -259,10 +259,10 @@ void CopyDlg::GetAttr( SfxItemSet& rOutAttrs )
long nHeight = Fraction( GetCoreValue( maMtrFldHeight, SFX_MAPUNIT_100TH_MM) ) * maUIScale;
long nWidth = Fraction( GetCoreValue( maMtrFldWidth, SFX_MAPUNIT_100TH_MM) ) * maUIScale;
- rOutAttrs.Put( SfxUInt16Item( ATTR_COPY_NUMBER, (UINT16) maNumFldCopies.GetValue() ) );
+ rOutAttrs.Put( SfxUInt16Item( ATTR_COPY_NUMBER, (sal_uInt16) maNumFldCopies.GetValue() ) );
rOutAttrs.Put( SfxInt32Item( ATTR_COPY_MOVE_X, nMoveX ) );
rOutAttrs.Put( SfxInt32Item( ATTR_COPY_MOVE_Y, nMoveY ) );
- rOutAttrs.Put( SfxInt32Item( ATTR_COPY_ANGLE, static_cast<INT32>(maMtrFldAngle.GetValue()) ) );
+ rOutAttrs.Put( SfxInt32Item( ATTR_COPY_ANGLE, static_cast<sal_Int32>(maMtrFldAngle.GetValue()) ) );
rOutAttrs.Put( SfxInt32Item( ATTR_COPY_WIDTH, nWidth ) );
rOutAttrs.Put( SfxInt32Item( ATTR_COPY_HEIGHT, nHeight ) );
@@ -288,7 +288,7 @@ void CopyDlg::GetAttr( SfxItemSet& rOutAttrs )
IMPL_LINK( CopyDlg, SelectColorHdl, void *, EMPTYARG )
{
- USHORT nPos = maLbStartColor.GetSelectEntryPos();
+ sal_uInt16 nPos = maLbStartColor.GetSelectEntryPos();
if( nPos != LISTBOX_ENTRY_NOTFOUND &&
!maLbEndColor.IsEnabled() )
@@ -315,7 +315,7 @@ IMPL_LINK( CopyDlg, SetViewData, void*, EMPTYARG )
// Farb-Attribut setzen
const SfxPoolItem* pPoolItem = NULL;
- if( SFX_ITEM_SET == mrOutAttrs.GetItemState( ATTR_COPY_START_COLOR, TRUE, &pPoolItem ) )
+ if( SFX_ITEM_SET == mrOutAttrs.GetItemState( ATTR_COPY_START_COLOR, sal_True, &pPoolItem ) )
{
Color aColor = ( ( const XColorItem* ) pPoolItem )->GetColorValue();
maLbStartColor.SelectEntry( aColor );
@@ -343,7 +343,7 @@ IMPL_LINK( CopyDlg, SetDefault, void*, EMPTYARG )
// Farb-Attribut setzen
const SfxPoolItem* pPoolItem = NULL;
- if( SFX_ITEM_SET == mrOutAttrs.GetItemState( ATTR_COPY_START_COLOR, TRUE, &pPoolItem ) )
+ if( SFX_ITEM_SET == mrOutAttrs.GetItemState( ATTR_COPY_START_COLOR, sal_True, &pPoolItem ) )
{
Color aColor = ( ( const XColorItem* ) pPoolItem )->GetColorValue();
maLbStartColor.SelectEntry( aColor );
diff --git a/sd/source/ui/dlg/custsdlg.cxx b/sd/source/ui/dlg/custsdlg.cxx
index b8c92dee3a6e..3e788303ccea 100755
--- a/sd/source/ui/dlg/custsdlg.cxx
+++ b/sd/source/ui/dlg/custsdlg.cxx
@@ -70,7 +70,7 @@ SdCustomShowDlg::SdCustomShowDlg( Window* pWindow,
rDoc ( rDrawDoc ),
pCustomShowList ( NULL ),
pCustomShow ( NULL ),
- bModified ( FALSE )
+ bModified ( sal_False )
{
FreeResource();
@@ -96,7 +96,7 @@ SdCustomShowDlg::SdCustomShowDlg( Window* pWindow,
{
aLbCustomShows.InsertEntry( pCustomShow->GetName() );
}
- aLbCustomShows.SelectEntryPos( (USHORT)nPosToSelect );
+ aLbCustomShows.SelectEntryPos( (sal_uInt16)nPosToSelect );
pCustomShowList->Seek( nPosToSelect );
}
@@ -117,9 +117,9 @@ SdCustomShowDlg::~SdCustomShowDlg()
\************************************************************************/
void SdCustomShowDlg::CheckState()
{
- USHORT nPos = aLbCustomShows.GetSelectEntryPos();
+ sal_uInt16 nPos = aLbCustomShows.GetSelectEntryPos();
- BOOL bEnable = nPos != LISTBOX_ENTRY_NOTFOUND;
+ sal_Bool bEnable = nPos != LISTBOX_ENTRY_NOTFOUND;
aBtnEdit.Enable( bEnable );
aBtnRemove.Enable( bEnable );
aBtnCopy.Enable( bEnable );
@@ -145,7 +145,7 @@ IMPL_LINK( SdCustomShowDlg, ClickButtonHdl, void *, p )
if( pCustomShow )
{
if( !pCustomShowList )
- pCustomShowList = rDoc.GetCustomShowList( TRUE );
+ pCustomShowList = rDoc.GetCustomShowList( sal_True );
pCustomShowList->Insert( pCustomShow, LIST_APPEND );
pCustomShowList->Last();
@@ -154,7 +154,7 @@ IMPL_LINK( SdCustomShowDlg, ClickButtonHdl, void *, p )
}
if( aDlg.IsModified() )
- bModified = TRUE;
+ bModified = sal_True;
}
else if( pCustomShow )
DELETEZ( pCustomShow );
@@ -162,7 +162,7 @@ IMPL_LINK( SdCustomShowDlg, ClickButtonHdl, void *, p )
// CustomShow bearbeiten
else if( p == &aBtnEdit )
{
- USHORT nPos = aLbCustomShows.GetSelectEntryPos();
+ sal_uInt16 nPos = aLbCustomShows.GetSelectEntryPos();
if( nPos != LISTBOX_ENTRY_NOTFOUND )
{
DBG_ASSERT( pCustomShowList, "pCustomShowList existiert nicht" );
@@ -180,34 +180,34 @@ IMPL_LINK( SdCustomShowDlg, ClickButtonHdl, void *, p )
aLbCustomShows.SelectEntryPos( nPos );
}
if( aDlg.IsModified() )
- bModified = TRUE;
+ bModified = sal_True;
}
}
}
// CustomShow loeschen
else if( p == &aBtnRemove )
{
- USHORT nPos = aLbCustomShows.GetSelectEntryPos();
+ sal_uInt16 nPos = aLbCustomShows.GetSelectEntryPos();
if( nPos != LISTBOX_ENTRY_NOTFOUND )
{
delete (SdCustomShow*) pCustomShowList->Remove( nPos );
aLbCustomShows.RemoveEntry( nPos );
aLbCustomShows.SelectEntryPos( nPos == 0 ? nPos : nPos - 1 );
- bModified = TRUE;
+ bModified = sal_True;
}
}
// CustomShow kopieren
else if( p == &aBtnCopy )
{
- USHORT nPos = aLbCustomShows.GetSelectEntryPos();
+ sal_uInt16 nPos = aLbCustomShows.GetSelectEntryPos();
if( nPos != LISTBOX_ENTRY_NOTFOUND )
{
SdCustomShow* pShow = new SdCustomShow( *(SdCustomShow*) pCustomShowList->GetObject( nPos ) );
String aStr( pShow->GetName() );
String aStrCopy( SdResId( STR_COPY_CUSTOMSHOW ) );
- USHORT nStrPos = aStr.Search( aStrCopy );
- USHORT nNum = 1;
+ sal_uInt16 nStrPos = aStr.Search( aStrCopy );
+ sal_uInt16 nNum = 1;
if( nStrPos == STRING_NOTFOUND )
{
aStr.AppendAscii( RTL_CONSTASCII_STRINGPARAM( " (" ) );
@@ -216,7 +216,7 @@ IMPL_LINK( SdCustomShowDlg, ClickButtonHdl, void *, p )
aStr.Append( sal_Unicode(')') );
nStrPos = aStr.Search( aStrCopy );
}
- nStrPos = nStrPos + (USHORT)aStrCopy.Len();
+ nStrPos = nStrPos + (sal_uInt16)aStrCopy.Len();
// Um nicht ins Nirvana zu greifen (--> Endlosschleife)
if( nStrPos >= aStr.Len() )
{
@@ -225,17 +225,17 @@ IMPL_LINK( SdCustomShowDlg, ClickButtonHdl, void *, p )
}
// Name ueberpruefen...
- BOOL bDifferent = FALSE;
+ sal_Bool bDifferent = sal_False;
//long nPosToSelect = pCustomShowList->GetCurPos();
while( !bDifferent )
{
- bDifferent = TRUE;
+ bDifferent = sal_True;
for( pCustomShow = (SdCustomShow*) pCustomShowList->First();
pCustomShow != NULL && bDifferent;
pCustomShow = (SdCustomShow*) pCustomShowList->Next() )
{
if( aStr == pCustomShow->GetName() )
- bDifferent = FALSE;
+ bDifferent = sal_False;
}
if( !bDifferent )
{
@@ -257,20 +257,20 @@ IMPL_LINK( SdCustomShowDlg, ClickButtonHdl, void *, p )
aLbCustomShows.SelectEntry( pShow->GetName() );
- bModified = TRUE;
+ bModified = sal_True;
}
}
else if( p == &aLbCustomShows )
{
- USHORT nPos = aLbCustomShows.GetSelectEntryPos();
+ sal_uInt16 nPos = aLbCustomShows.GetSelectEntryPos();
if( nPos != LISTBOX_ENTRY_NOTFOUND )
pCustomShowList->Seek( nPos );
- bModified = TRUE;
+ bModified = sal_True;
}
else if( p == &aCbxUseCustomShow )
{
- bModified = TRUE;
+ bModified = sal_True;
}
CheckState();
@@ -291,7 +291,7 @@ IMPL_LINK( SdCustomShowDlg, StartShowHdl, Button *, EMPTYARG )
/*************************************************************************
|* CheckState
\************************************************************************/
-BOOL SdCustomShowDlg::IsCustomShow() const
+sal_Bool SdCustomShowDlg::IsCustomShow() const
{
return( aCbxUseCustomShow.IsEnabled() && aCbxUseCustomShow.IsChecked() );
}
@@ -326,7 +326,7 @@ SdDefineCustomShowDlg::SdDefineCustomShowDlg( Window* pWindow,
rDoc ( rDrawDoc ),
rpCustomShow ( rpCS ),
- bModified ( FALSE )
+ bModified ( sal_False )
{
FreeResource();
@@ -345,7 +345,7 @@ SdDefineCustomShowDlg::SdDefineCustomShowDlg( Window* pWindow,
nPage < rDoc.GetSdPageCount( PK_STANDARD );
nPage++ )
{
- pPage = rDoc.GetSdPage( (USHORT) nPage, PK_STANDARD );
+ pPage = rDoc.GetSdPage( (sal_uInt16) nPage, PK_STANDARD );
String aStr( pPage->GetName() );
aLbPages.InsertEntry( aStr );
}
@@ -376,7 +376,7 @@ SdDefineCustomShowDlg::SdDefineCustomShowDlg( Window* pWindow,
aLbCustomPages.SetDragDropMode( SV_DRAGDROP_CTRL_MOVE );
aLbCustomPages.SetHighlightRange();
- aBtnOK.Enable( FALSE );
+ aBtnOK.Enable( sal_False );
CheckState();
}
@@ -394,10 +394,10 @@ SdDefineCustomShowDlg::~SdDefineCustomShowDlg()
\************************************************************************/
void SdDefineCustomShowDlg::CheckState()
{
- BOOL bPages = aLbPages.GetSelectEntryPos() != LISTBOX_ENTRY_NOTFOUND;
- //BOOL bCSPages = aLbCustomPages.GetSelectEntryPos() != LISTBOX_ENTRY_NOTFOUND;
- BOOL bCSPages = aLbCustomPages.FirstSelected() != NULL;
- BOOL bCount = aLbCustomPages.GetEntryCount() > 0;
+ sal_Bool bPages = aLbPages.GetSelectEntryPos() != LISTBOX_ENTRY_NOTFOUND;
+ //sal_Bool bCSPages = aLbCustomPages.GetSelectEntryPos() != LISTBOX_ENTRY_NOTFOUND;
+ sal_Bool bCSPages = aLbCustomPages.FirstSelected() != NULL;
+ sal_Bool bCount = aLbCustomPages.GetEntryCount() > 0;
aBtnOK.Enable( bCount );
aBtnAdd.Enable( bPages );
@@ -411,50 +411,50 @@ IMPL_LINK( SdDefineCustomShowDlg, ClickButtonHdl, void *, p )
{
if( p == &aBtnAdd )
{
- USHORT nCount = aLbPages.GetSelectEntryCount();
+ sal_uInt16 nCount = aLbPages.GetSelectEntryCount();
if( nCount > 0 )
{
- ULONG nPosCP = LIST_APPEND;
+ sal_uLong nPosCP = LIST_APPEND;
SvLBoxEntry* pEntry = aLbCustomPages.FirstSelected();
if( pEntry )
nPosCP = aLbCustomPages.GetModel()->GetAbsPos( pEntry ) + 1L;
- for( USHORT i = 0; i < nCount; i++ )
+ for( sal_uInt16 i = 0; i < nCount; i++ )
{
String aStr = aLbPages.GetSelectEntry( i );
pEntry = aLbCustomPages.InsertEntry( aStr,
- 0, FALSE, nPosCP );
+ 0, sal_False, nPosCP );
aLbCustomPages.Select( pEntry );
- SdPage* pPage = rDoc.GetSdPage( (USHORT) aLbPages.
+ SdPage* pPage = rDoc.GetSdPage( (sal_uInt16) aLbPages.
GetSelectEntryPos( i ), PK_STANDARD );
pEntry->SetUserData( pPage );
if( nPosCP != LIST_APPEND )
nPosCP++;
}
- bModified = TRUE;
+ bModified = sal_True;
}
}
else if( p == &aBtnRemove )
{
- //USHORT nPos = aLbCustomPages.GetSelectEntryPos();
+ //sal_uInt16 nPos = aLbCustomPages.GetSelectEntryPos();
SvLBoxEntry* pEntry = aLbCustomPages.FirstSelected();
if( pEntry )
{
- ULONG nPos = aLbCustomPages.GetModel()->GetAbsPos( pEntry );
+ sal_uLong nPos = aLbCustomPages.GetModel()->GetAbsPos( pEntry );
//rpCustomShow->Remove( nPos );
//aLbCustomPages.RemoveEntry( nPos );
aLbCustomPages.GetModel()->Remove( aLbCustomPages.GetModel()->GetEntryAtAbsPos( nPos ) );
- bModified = TRUE;
+ bModified = sal_True;
}
}
else if( p == &aEdtName )
{
//rpCustomShow->SetName( aEdtName.GetText() );
- bModified = TRUE;
+ bModified = sal_True;
}
CheckState();
@@ -469,7 +469,7 @@ IMPL_LINK( SdDefineCustomShowDlg, ClickButtonHdl, void *, p )
\************************************************************************/
void SdDefineCustomShowDlg::CheckCustomShow()
{
- BOOL bDifferent = FALSE;
+ sal_Bool bDifferent = sal_False;
SdPage* pPage = NULL;
SvLBoxEntry* pEntry = NULL;
@@ -477,7 +477,7 @@ void SdDefineCustomShowDlg::CheckCustomShow()
if( rpCustomShow->Count() != aLbCustomPages.GetEntryCount() )
{
rpCustomShow->Clear();
- bDifferent = TRUE;
+ bDifferent = sal_True;
}
// Seiten-Pointer vergleichen
@@ -490,7 +490,7 @@ void SdDefineCustomShowDlg::CheckCustomShow()
if( pPage != pEntry->GetUserData() )
{
rpCustomShow->Clear();
- bDifferent = TRUE;
+ bDifferent = sal_True;
}
}
}
@@ -505,7 +505,7 @@ void SdDefineCustomShowDlg::CheckCustomShow()
pPage = (SdPage*) pEntry->GetUserData();
rpCustomShow->Insert( pPage, LIST_APPEND );
}
- bModified = TRUE;
+ bModified = sal_True;
}
// Name vergleichen und ggfs. setzen
@@ -513,7 +513,7 @@ void SdDefineCustomShowDlg::CheckCustomShow()
if( rpCustomShow->GetName() != aStr )
{
rpCustomShow->SetName( aStr );
- bModified = TRUE;
+ bModified = sal_True;
}
}
@@ -523,7 +523,7 @@ void SdDefineCustomShowDlg::CheckCustomShow()
IMPL_LINK( SdDefineCustomShowDlg, OKHdl, Button *, EMPTYARG )
{
// Name ueberpruefen...
- BOOL bDifferent = TRUE;
+ sal_Bool bDifferent = sal_True;
List* pCustomShowList = rDoc.GetCustomShowList();
if( pCustomShowList )
{
@@ -536,7 +536,7 @@ IMPL_LINK( SdDefineCustomShowDlg, OKHdl, Button *, EMPTYARG )
pCustomShow = (SdCustomShow*) pCustomShowList->Next() )
{
if( aName == pCustomShow->GetName() && aName != aOldName )
- bDifferent = FALSE;
+ bDifferent = sal_False;
}
pCustomShowList->Seek( nPosToSelect );
}
diff --git a/sd/source/ui/dlg/diactrl.cxx b/sd/source/ui/dlg/diactrl.cxx
index 7725dc97f1e0..65613b545f52 100644..100755
--- a/sd/source/ui/dlg/diactrl.cxx
+++ b/sd/source/ui/dlg/diactrl.cxx
@@ -107,7 +107,7 @@ void SdPagesField::UpdatePagesField( const SfxUInt16Item* pItem )
void SdPagesField::Modify()
{
- SfxUInt16Item aItem( SID_PAGES_PER_ROW, (UINT16) GetValue() );
+ SfxUInt16Item aItem( SID_PAGES_PER_ROW, (sal_uInt16) GetValue() );
::uno::Any a;
::uno::Sequence< ::beans::PropertyValue > aArgs( 1 );
@@ -129,7 +129,7 @@ void SdPagesField::Modify()
|*
\************************************************************************/
-SdTbxCtlDiaPages::SdTbxCtlDiaPages( USHORT nSlotId, USHORT nId, ToolBox& rTbx ) :
+SdTbxCtlDiaPages::SdTbxCtlDiaPages( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx ) :
SfxToolBoxControl( nSlotId, nId, rTbx )
{
}
@@ -142,7 +142,7 @@ SdTbxCtlDiaPages::~SdTbxCtlDiaPages()
//========================================================================
-void SdTbxCtlDiaPages::StateChanged( USHORT,
+void SdTbxCtlDiaPages::StateChanged( sal_uInt16,
SfxItemState eState, const SfxPoolItem* pState )
{
SdPagesField* pFld = (SdPagesField*) GetToolBox().GetItemWindow( GetId() );
diff --git a/sd/source/ui/dlg/dlgass.cxx b/sd/source/ui/dlg/dlgass.cxx
index 4645b3540f04..074ab49d97bb 100755
--- a/sd/source/ui/dlg/dlgass.cxx
+++ b/sd/source/ui/dlg/dlgass.cxx
@@ -153,7 +153,7 @@ private:
class AssistentDlgImpl : public SfxListener
{
public:
- AssistentDlgImpl( ::Window* pWindow, const Link& rFinishLink, BOOL bAutoPilot );
+ AssistentDlgImpl( ::Window* pWindow, const Link& rFinishLink, sal_Bool bAutoPilot );
~AssistentDlgImpl();
/// Local mutex used to serialize concurrent method calls.
@@ -168,10 +168,10 @@ public:
files and insert them into a listbox.
*/
void ScanDocmenu (void);
- /** Flag that is set to TRUE after the recently used files have been
+ /** Flag that is set to sal_True after the recently used files have been
scanned.
*/
- BOOL mbRecentDocumentsReady;
+ sal_Bool mbRecentDocumentsReady;
/** When the list of templates has not been scanned already this is done
when this method is called. That includes requesting the whole list
@@ -193,16 +193,16 @@ public:
*/
void TemplateScanDone (std::vector<TemplateDir*>& rTemplateFolders);
- /** Flag that is set to TRUE after the impress templates have been
+ /** Flag that is set to sal_True after the impress templates have been
scanned.
*/
- BOOL mbTemplatesReady;
+ sal_Bool mbTemplatesReady;
/** Flag used to prevent nested or concurrent calls to the
<member>UpdatePreview</memember> method. A <TRUE/> value indicates
that a preview update is currently active.
*/
- BOOL mbPreviewUpdating;
+ sal_Bool mbPreviewUpdating;
::Window* mpWindow;
@@ -232,7 +232,7 @@ public:
TemplateDir* mpLayoutRegion;
// preview
- BOOL mbUserDataDirty;
+ sal_Bool mbUserDataDirty;
Timer maPrevTimer;
Timer maEffectPrevTimer;
Timer maUpdatePageListTimer;
@@ -242,19 +242,19 @@ public:
::std::auto_ptr<WindowUpdater> mpWindowUpdater;
- BOOL mbPreview;
- USHORT mnShowPage;
- BOOL mbDocPreview;
+ sal_Bool mbPreview;
+ sal_uInt16 mnShowPage;
+ sal_Bool mbDocPreview;
- ULONG mnTemplate;
+ sal_uLong mnTemplate;
String maPageListFile;
- void UpdatePreview( BOOL bDocPreview );
+ void UpdatePreview( sal_Bool bDocPreview );
void UpdatePageList();
void UpdateUserData();
- BOOL IsOwnFormat( const String& rPath );
+ sal_Bool IsOwnFormat( const String& rPath );
// dlg status
void EndDialog( long nResult = 0 );
@@ -365,15 +365,15 @@ public:
// ====================================================================
-AssistentDlgImpl::AssistentDlgImpl( ::Window* pWindow, const Link& rFinishLink, BOOL bAutoPilot ) :
+AssistentDlgImpl::AssistentDlgImpl( ::Window* pWindow, const Link& rFinishLink, sal_Bool bAutoPilot ) :
mpTemplateRegion(NULL),
mpLayoutRegion(NULL),
- mbUserDataDirty(FALSE),
+ mbUserDataDirty(sal_False),
xDocShell (NULL),
mpWindowUpdater (new WindowUpdater()),
- mbPreview(TRUE),
+ mbPreview(sal_True),
mnShowPage(0),
- mbDocPreview(FALSE),
+ mbDocPreview(sal_False),
maAssistentFunc(5),
maPreviewFlag(pWindow,SdResId(CB_PREVIEW)),
maStartWithFlag(pWindow,SdResId(CB_STARTWITH)),
@@ -387,9 +387,9 @@ AssistentDlgImpl::AssistentDlgImpl( ::Window* pWindow, const Link& rFinishLink,
maOpenStr(SdResId(STR_OPEN))
{
maPageListFile += sal_Unicode('?'),
- mbRecentDocumentsReady = FALSE;
- mbTemplatesReady = FALSE;
- mbPreviewUpdating = FALSE;
+ mbRecentDocumentsReady = sal_False;
+ mbTemplatesReady = sal_False;
+ mbPreviewUpdating = sal_False;
mpWindow = pWindow;
@@ -448,8 +448,8 @@ AssistentDlgImpl::AssistentDlgImpl( ::Window* pWindow, const Link& rFinishLink,
mpPage1OpenPB->SetModeImage(
GetUiIconForCommand(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(".uno:Open"))),
BMP_COLOR_NORMAL);
- mpPage1OpenPB->EnableImageDisplay(TRUE);
- mpPage1OpenPB->EnableTextDisplay(TRUE);
+ mpPage1OpenPB->EnableImageDisplay(sal_True);
+ mpPage1OpenPB->EnableTextDisplay(sal_True);
mpPage1OpenPB->SetImageAlign(IMAGEALIGN_LEFT);
mpPage1OpenPB->SetStyle(mpPage1OpenPB->GetStyle() | WB_CENTER);
}
@@ -630,7 +630,7 @@ AssistentDlgImpl::AssistentDlgImpl( ::Window* pWindow, const Link& rFinishLink,
mpWindowUpdater->RegisterWindow (&maPreview);
- UpdatePreview( TRUE );
+ UpdatePreview( sal_True );
//check wether we should start with a template document initialy and preselect it
const ::rtl::OUString aServiceName( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.presentation.PresentationDocument" ) );
@@ -852,10 +852,10 @@ void AssistentDlgImpl::ScanDocmenu (void)
}
}
}
- mbRecentDocumentsReady = TRUE;
+ mbRecentDocumentsReady = sal_True;
try
{
- UpdatePreview(TRUE);
+ UpdatePreview(sal_True);
}
catch (uno::RuntimeException& )
{
@@ -875,7 +875,7 @@ void AssistentDlgImpl::ProvideTemplates (void)
try
{
- UpdatePreview(TRUE);
+ UpdatePreview(sal_True);
}
catch (uno::RuntimeException& e)
{
@@ -917,7 +917,7 @@ void AssistentDlgImpl::TemplateScanDone (
mpPage1RegionLB->InsertEntry (pDir->msRegion);
}
- mpPage1RegionLB->SelectEntryPos ((USHORT)nFirstEntry);
+ mpPage1RegionLB->SelectEntryPos ((sal_uInt16)nFirstEntry);
mpPage1RegionLB->Update();
SelectTemplateRegion (mpPage1RegionLB->GetSelectEntry());
@@ -942,12 +942,12 @@ void AssistentDlgImpl::TemplateScanDone (
mpPage2RegionLB->InsertEntry (pDir->msRegion);
}
- mpPage2RegionLB->SelectEntryPos ((USHORT)nFirstEntry);
+ mpPage2RegionLB->SelectEntryPos ((sal_uInt16)nFirstEntry);
mpPage2RegionLB->Update();
SelectLayoutRegion (mpPage2RegionLB->GetSelectEntry());
// Make the changes visible.
- mbTemplatesReady = TRUE;
+ mbTemplatesReady = sal_True;
if (mpWindow)
UpdatePage();
}
@@ -993,7 +993,7 @@ String AssistentDlgImpl::GetDocFileName()
if(mpWindow)
{
aTitle = mpWindow->GetText();
- USHORT nPos = aTitle.Search(sal_Unicode('('));
+ sal_uInt16 nPos = aTitle.Search(sal_Unicode('('));
if(nPos != STRING_NOTFOUND)
aTitle.Erase( nPos-1 );
}
@@ -1001,9 +1001,9 @@ String AssistentDlgImpl::GetDocFileName()
String aDocFile;
if( GetStartType() == ST_TEMPLATE )
{
- const USHORT nEntry = mpPage1TemplateLB->GetSelectEntryPos();
+ const sal_uInt16 nEntry = mpPage1TemplateLB->GetSelectEntryPos();
TemplateEntry* pEntry = NULL;
- if(nEntry != (USHORT)-1)
+ if(nEntry != (sal_uInt16)-1)
pEntry = mpTemplateRegion->maEntries[nEntry];
if(pEntry)
@@ -1017,8 +1017,8 @@ String AssistentDlgImpl::GetDocFileName()
}
else if( GetStartType() == ST_OPEN )
{
- const USHORT nEntry = mpPage1OpenLB->GetSelectEntryPos();
- if(nEntry != (USHORT)-1 )
+ const sal_uInt16 nEntry = mpPage1OpenLB->GetSelectEntryPos();
+ if(nEntry != (sal_uInt16)-1 )
aDocFile = *maOpenFilesList[nEntry];
}
@@ -1031,9 +1031,9 @@ String AssistentDlgImpl::GetDocFileName()
String AssistentDlgImpl::GetLayoutFileName()
{
String aFile;
- const USHORT nEntry = mpPage2LayoutLB->GetSelectEntryPos();
+ const sal_uInt16 nEntry = mpPage2LayoutLB->GetSelectEntryPos();
TemplateEntry* pEntry = NULL;
- if(nEntry != (USHORT)-1 && nEntry > 0)
+ if(nEntry != (sal_uInt16)-1 && nEntry > 0)
pEntry = mpLayoutRegion->maEntries[nEntry-1];
if(pEntry)
@@ -1044,8 +1044,8 @@ String AssistentDlgImpl::GetLayoutFileName()
SfxObjectShellLock AssistentDlgImpl::GetDocument()
{
-// mbPreview = FALSE; // Document nicht anzeigen
- UpdatePreview(FALSE); // aber komplett laden
+// mbPreview = sal_False; // Document nicht anzeigen
+ UpdatePreview(sal_False); // aber komplett laden
UpdatePageList();
SfxObjectShell* pShell = xDocShell;
@@ -1054,9 +1054,9 @@ SfxObjectShellLock AssistentDlgImpl::GetDocument()
if(pDoc)
{
- const USHORT nPageCount = pDoc->GetSdPageCount(PK_STANDARD);
- BOOL bKiosk = mpPage3PresTypeKioskRB->IsChecked();
- UINT32 nNewTime = (UINT32)mpPage3PresTimeTMF->GetTime().GetMSFromTime() / 1000;
+ const sal_uInt16 nPageCount = pDoc->GetSdPageCount(PK_STANDARD);
+ sal_Bool bKiosk = mpPage3PresTypeKioskRB->IsChecked();
+ sal_uInt32 nNewTime = (sal_uInt32)mpPage3PresTimeTMF->GetTime().GetMSFromTime() / 1000;
if(bKiosk)
{
PresentationSettings& rSettings = pDoc->getPresentationSettings();
@@ -1065,8 +1065,8 @@ SfxObjectShellLock AssistentDlgImpl::GetDocument()
rSettings.mbShowPauseLogo = mpPage3LogoCB->IsChecked();
}
- USHORT nPgAbsNum = 0;
- USHORT nPgRelNum = 0;
+ sal_uInt16 nPgAbsNum = 0;
+ sal_uInt16 nPgRelNum = 0;
while( nPgAbsNum < nPageCount )
{
SdPage* pPage = pDoc->GetSdPage( nPgRelNum, PK_STANDARD );
@@ -1116,7 +1116,7 @@ void AssistentDlgImpl::ChangePage()
maNextPageButton.Enable(!maAssistentFunc.IsLastPage());
maLastPageButton.Enable(!maAssistentFunc.IsFirstPage());
- USHORT nPage = (USHORT)maAssistentFunc.GetCurrentPage();
+ sal_uInt16 nPage = (sal_uInt16)maAssistentFunc.GetCurrentPage();
if( mpWindow )
{
@@ -1135,7 +1135,7 @@ void AssistentDlgImpl::ChangePage()
void AssistentDlgImpl::UpdatePage()
{
- USHORT nPage = (USHORT)maAssistentFunc.GetCurrentPage();
+ sal_uInt16 nPage = (sal_uInt16)maAssistentFunc.GetCurrentPage();
switch(nPage)
{
@@ -1143,7 +1143,7 @@ void AssistentDlgImpl::UpdatePage()
{
// Elemente auf der ersten Seite abhaengig vom Starttype Zeigen
SetStartType( GetStartType() );
- mpPage1TemplateRB->Enable(TRUE /*mbTemplatesReady*/);
+ mpPage1TemplateRB->Enable(sal_True /*mbTemplatesReady*/);
break;
}
@@ -1154,11 +1154,11 @@ void AssistentDlgImpl::UpdatePage()
if( GetStartType() != ST_EMPTY )
{
- mpPage2Medium5RB->Enable( TRUE );
+ mpPage2Medium5RB->Enable( sal_True );
}
else
{
- mpPage2Medium5RB->Enable( FALSE );
+ mpPage2Medium5RB->Enable( sal_False );
if(mpPage2Medium5RB->IsChecked())
mpPage2Medium1RB->Check();
}
@@ -1179,7 +1179,7 @@ void AssistentDlgImpl::UpdatePage()
if(GetStartType() != ST_TEMPLATE)
maNextPageButton.Enable(false);
- BOOL bKiosk = mpPage3PresTypeKioskRB->IsChecked();
+ sal_Bool bKiosk = mpPage3PresTypeKioskRB->IsChecked();
mpPage3PresTimeFT->Enable(bKiosk);
mpPage3BreakFT->Enable(bKiosk);
mpPage3PresTimeTMF->Enable(bKiosk);
@@ -1250,7 +1250,7 @@ IMPL_LINK( AssistentDlgImpl, PreviewFlagHdl, CheckBox *, EMPTYARG )
if( maPreviewFlag.IsChecked() != mbPreview )
{
mbPreview = maPreviewFlag.IsChecked();
- UpdatePreview(TRUE);
+ UpdatePreview(sal_True);
}
return 0;
}
@@ -1279,11 +1279,11 @@ IMPL_LINK( AssistentDlgImpl, SelectFileHdl, ListBox *, EMPTYARG )
IMPL_LINK( AssistentDlgImpl, PageSelectHdl, Control *, EMPTYARG )
{
- USHORT nPage = mpPage5PageListCT->GetSelectedPage();
+ sal_uInt16 nPage = mpPage5PageListCT->GetSelectedPage();
if( mnShowPage != nPage )
{
mnShowPage = nPage;
- UpdatePreview(FALSE);
+ UpdatePreview(sal_False);
}
return 0;
@@ -1297,7 +1297,7 @@ IMPL_LINK( AssistentDlgImpl, UpdatePageListHdl, void *, EMPTYARG )
IMPL_LINK( AssistentDlgImpl, UpdatePreviewHdl, void *, EMPTYARG )
{
- UpdatePreview( TRUE );
+ UpdatePreview( sal_True );
return 0;
}
@@ -1354,7 +1354,7 @@ IMPL_LINK( AssistentDlgImpl, PresTypeHdl, RadioButton*, EMPTYARG )
maNextPageButton.Enable(false);
}
- BOOL bKiosk = mpPage3PresTypeKioskRB->IsChecked();
+ sal_Bool bKiosk = mpPage3PresTypeKioskRB->IsChecked();
mpPage3PresTimeFT->Enable(bKiosk);
mpPage3BreakFT->Enable(bKiosk);
mpPage3PresTimeTMF->Enable(bKiosk);
@@ -1365,7 +1365,7 @@ IMPL_LINK( AssistentDlgImpl, PresTypeHdl, RadioButton*, EMPTYARG )
IMPL_LINK( AssistentDlgImpl, UpdateUserDataHdl, Edit*, EMPTYARG )
{
- mbUserDataDirty = TRUE;
+ mbUserDataDirty = sal_True;
String aTopic = mpPage4AskTopicEDT->GetText();
String aName = mpPage4AskNameEDT->GetText();
String aInfo = mpPage4AskInfoEDT->GetText();
@@ -1438,7 +1438,7 @@ void AssistentDlgImpl::UpdateUserData()
if(pPage && ( aTopic.Len() != 0 || aName.Len() != 0 || aInfo.Len() != 0 ) )
{
if( pPage->GetAutoLayout() == AUTOLAYOUT_NONE )
- pPage->SetAutoLayout(AUTOLAYOUT_TITLE, TRUE);
+ pPage->SetAutoLayout(AUTOLAYOUT_TITLE, sal_True);
SdrTextObj* pObj;
String aEmptyString;
@@ -1449,8 +1449,8 @@ void AssistentDlgImpl::UpdateUserData()
if( pObj )
{
pPage->SetObjText( pObj, NULL, PRESOBJ_TITLE, aTopic );
- pObj->NbcSetStyleSheet( pPage->GetStyleSheetForPresObj( PRESOBJ_TITLE ), TRUE );
- pObj->SetEmptyPresObj(FALSE);
+ pObj->NbcSetStyleSheet( pPage->GetStyleSheetForPresObj( PRESOBJ_TITLE ), sal_True );
+ pObj->SetEmptyPresObj(sal_False);
}
}
@@ -1466,8 +1466,8 @@ void AssistentDlgImpl::UpdateUserData()
if( pObj )
{
pPage->SetObjText( pObj, NULL, PRESOBJ_OUTLINE, aStrTmp );
- pObj->NbcSetStyleSheet( pPage->GetStyleSheetForPresObj( PRESOBJ_OUTLINE ), TRUE );
- pObj->SetEmptyPresObj(FALSE);
+ pObj->NbcSetStyleSheet( pPage->GetStyleSheetForPresObj( PRESOBJ_OUTLINE ), sal_True );
+ pObj->SetEmptyPresObj(sal_False);
}
else
{
@@ -1475,20 +1475,20 @@ void AssistentDlgImpl::UpdateUserData()
if( pObj )
{
pPage->SetObjText( pObj, NULL, PRESOBJ_TEXT, aStrTmp );
- pObj->NbcSetStyleSheet( pPage->GetStyleSheetForPresObj( PRESOBJ_TEXT ), TRUE );
- pObj->SetEmptyPresObj(FALSE);
+ pObj->NbcSetStyleSheet( pPage->GetStyleSheetForPresObj( PRESOBJ_TEXT ), sal_True );
+ pObj->SetEmptyPresObj(sal_False);
}
}
}
}
- mbUserDataDirty = FALSE;
+ mbUserDataDirty = sal_False;
}
void AssistentDlgImpl::UpdatePageList()
{
if(mbDocPreview || !mbPreview)
- UpdatePreview(FALSE);
+ UpdatePreview(sal_False);
else if(maPageListFile == maDocFile)
return;
@@ -1504,20 +1504,20 @@ void AssistentDlgImpl::UpdatePageList()
mpPage5PageListCT->Fill(pDoc);
}
-void AssistentDlgImpl::UpdatePreview( BOOL bDocPreview )
+void AssistentDlgImpl::UpdatePreview( sal_Bool bDocPreview )
{
// Guard against multiple concurrent execution to this method caused either
// by calls from different threads or recursion.
::osl::MutexGuard aGuard (maMutex);
if (mbPreviewUpdating)
return;
- mbPreviewUpdating = TRUE;
+ mbPreviewUpdating = sal_True;
if(!mbPreview && bDocPreview)
{
maPreview.Invalidate();
maPreview.SetObjectShell(0);
- mbPreviewUpdating = FALSE;
+ mbPreviewUpdating = sal_False;
return;
}
@@ -1526,8 +1526,8 @@ void AssistentDlgImpl::UpdatePreview( BOOL bDocPreview )
String aEmptyStr;
SfxApplication *pSfxApp = SFX_APP();
- ULONG lErr;
- BOOL bChangeMaster = aLayoutFile.Len() != 0;
+ sal_uLong lErr;
+ sal_Bool bChangeMaster = aLayoutFile.Len() != 0;
if( aDocFile.Len() == 0 )
{
@@ -1537,15 +1537,15 @@ void AssistentDlgImpl::UpdatePreview( BOOL bDocPreview )
CloseDocShell();
DrawDocShell* pNewDocSh;
- xDocShell = pNewDocSh = new DrawDocShell(SFX_CREATE_MODE_STANDARD, FALSE);
+ xDocShell = pNewDocSh = new DrawDocShell(SFX_CREATE_MODE_STANDARD, sal_False);
pNewDocSh->DoInitNew(NULL);
SdDrawDocument* pDoc = pNewDocSh->GetDoc();
pDoc->CreateFirstPages();
pDoc->StopWorkStartupDelay();
- mbDocPreview = FALSE;
+ mbDocPreview = sal_False;
maDocFile = aDocFile;
- mbUserDataDirty = TRUE;
+ mbUserDataDirty = sal_True;
}
else
bChangeMaster = (aLayoutFile.Len() != 0) && (maLayoutFile != aLayoutFile);
@@ -1559,10 +1559,10 @@ void AssistentDlgImpl::UpdatePreview( BOOL bDocPreview )
::svl::IUndoManager* pUndoMgr = pDocShell?pDocShell->GetUndoManager():NULL;
if(pUndoMgr)
pUndoMgr->Undo();
- mbUserDataDirty = TRUE;
+ mbUserDataDirty = sal_True;
}
else
- bChangeMaster = FALSE;
+ bChangeMaster = sal_False;
}
else
{
@@ -1576,11 +1576,11 @@ void AssistentDlgImpl::UpdatePreview( BOOL bDocPreview )
SfxItemSet* pSet = new SfxAllItemSet( pSfxApp->GetPool() );
if(IsOwnFormat(aDocFile))
{
- pSet->Put( SfxBoolItem( SID_TEMPLATE, TRUE ) );
+ pSet->Put( SfxBoolItem( SID_TEMPLATE, sal_True ) );
if(bDocPreview)
- pSet->Put( SfxBoolItem( SID_PREVIEW, TRUE ) );
+ pSet->Put( SfxBoolItem( SID_PREVIEW, sal_True ) );
RestorePassword( pSet, aDocFile );
- if( (lErr = pSfxApp->LoadTemplate( xDocShell, aDocFile, TRUE, pSet )) != 0 )
+ if( (lErr = pSfxApp->LoadTemplate( xDocShell, aDocFile, sal_True, pSet )) != 0 )
ErrorHandler::HandleError(lErr);
else
SavePassword( xDocShell, aDocFile );
@@ -1593,7 +1593,7 @@ void AssistentDlgImpl::UpdatePreview( BOOL bDocPreview )
aReq.AppendItem( SfxStringItem( SID_FILE_NAME, aDocFile ));
aReq.AppendItem( SfxStringItem( SID_REFERER, aEmptyStr ) );
aReq.AppendItem( SfxStringItem( SID_TARGETNAME, aTargetStr ) );
- aReq.AppendItem( SfxBoolItem( SID_HIDDEN, TRUE ) );
+ aReq.AppendItem( SfxBoolItem( SID_HIDDEN, sal_True ) );
aReq.AppendItem( SfxBoolItem( SID_PREVIEW, bDocPreview ) );
const SfxViewFrameItem* pRet = PTR_CAST( SfxViewFrameItem, SFX_APP()->ExecuteSlot( aReq ) );
@@ -1608,7 +1608,7 @@ void AssistentDlgImpl::UpdatePreview( BOOL bDocPreview )
mnShowPage = 0;
mbDocPreview = bDocPreview;
maDocFile = aDocFile;
- mbUserDataDirty = TRUE;
+ mbUserDataDirty = sal_True;
}
if(bChangeMaster && (aLayoutFile != maDocFile))
@@ -1623,11 +1623,11 @@ void AssistentDlgImpl::UpdatePreview( BOOL bDocPreview )
if(IsOwnFormat(aLayoutFile))
{
- pSet->Put( SfxBoolItem( SID_TEMPLATE, TRUE ) );
- pSet->Put( SfxBoolItem( SID_PREVIEW, TRUE ) );
+ pSet->Put( SfxBoolItem( SID_TEMPLATE, sal_True ) );
+ pSet->Put( SfxBoolItem( SID_PREVIEW, sal_True ) );
RestorePassword( pSet, aLayoutFile );
- if( (lErr = pSfxApp->LoadTemplate( xLayoutDocShell, aLayoutFile, TRUE, pSet )) != 0 )
+ if( (lErr = pSfxApp->LoadTemplate( xLayoutDocShell, aLayoutFile, sal_True, pSet )) != 0 )
ErrorHandler::HandleError(lErr);
SavePassword( xLayoutDocShell, aLayoutFile );
}
@@ -1645,14 +1645,14 @@ void AssistentDlgImpl::UpdatePreview( BOOL bDocPreview )
if( pDoc && pLayoutDoc )
{
- pDoc->SetMasterPage(0, aEmptyStr, pLayoutDoc, TRUE, FALSE );
+ pDoc->SetMasterPage(0, aEmptyStr, pLayoutDoc, sal_True, sal_False );
}
else
{
DBG_ERROR("sd::AssistentDlgImpl::UpdatePreview(), no document for preview?");
}
- mbUserDataDirty = TRUE;
+ mbUserDataDirty = sal_True;
}
maLayoutFile = aLayoutFile;
@@ -1666,7 +1666,7 @@ void AssistentDlgImpl::UpdatePreview( BOOL bDocPreview )
maPreview.SetObjectShell( xDocShell, mnShowPage );
}
- mbPreviewUpdating = FALSE;
+ mbPreviewUpdating = sal_False;
}
void AssistentDlgImpl::SavePassword( SfxObjectShellLock xDoc, const String& rPath )
@@ -1678,7 +1678,7 @@ void AssistentDlgImpl::SavePassword( SfxObjectShellLock xDoc, const String& rPat
{
SfxItemSet * pSet = pMedium->GetItemSet();
const SfxPoolItem *pItem = 0;
- if( pSet->GetItemState(SID_PASSWORD, TRUE, &pItem) == SFX_ITEM_SET )
+ if( pSet->GetItemState(SID_PASSWORD, sal_True, &pItem) == SFX_ITEM_SET )
{
//TODO/MBA: testing
String aPass( ((const SfxStringItem*)pItem)->GetValue());
@@ -1741,7 +1741,7 @@ void AssistentDlgImpl::DeletePassords()
}
}
-BOOL AssistentDlgImpl::IsOwnFormat( const String& rPath )
+sal_Bool AssistentDlgImpl::IsOwnFormat( const String& rPath )
{
INetURLObject aURL( rPath );
String aExt( aURL.GetFileExtension() );
@@ -1873,7 +1873,7 @@ Image AssistentDlgImpl::GetUiIconForCommand (const ::rtl::OUString& sCommandURL)
//////////////////////////////////////////////
-AssistentDlg::AssistentDlg(Window* pParent, BOOL bAutoPilot) :
+AssistentDlg::AssistentDlg(Window* pParent, sal_Bool bAutoPilot) :
ModalDialog(pParent,SdResId(DLG_ASS))
{
Link aFinishLink = LINK(this,AssistentDlg, FinishHdl);
@@ -1907,7 +1907,7 @@ IMPL_LINK( AssistentDlg, FinishHdl, OKButton *, EMPTYARG )
INetURLObject aURL;
aURL.SetSmartURL(aFileToOpen);
mpImpl->maOpenFilesList.push_back (new String (aURL.GetMainURL( INetURLObject::NO_DECODE )));
- USHORT nNewPos = mpImpl->mpPage1OpenLB->InsertEntry(aURL.getName());
+ sal_uInt16 nNewPos = mpImpl->mpPage1OpenLB->InsertEntry(aURL.getName());
mpImpl->mpPage1OpenLB->SelectEntryPos(nNewPos);
}
}
@@ -1944,7 +1944,7 @@ OutputType AssistentDlg::GetOutputMedium() const
return OUTPUT_ORIGINAL;
}
-BOOL AssistentDlg::IsSummary() const
+sal_Bool AssistentDlg::IsSummary() const
{
return mpImpl->mpPage5SummaryCB->IsChecked();
}
@@ -1959,12 +1959,12 @@ String AssistentDlg::GetDocPath() const
return mpImpl->GetDocFileName();
}
-BOOL AssistentDlg::GetStartWithFlag() const
+sal_Bool AssistentDlg::GetStartWithFlag() const
{
return !mpImpl->maStartWithFlag.IsChecked();
}
-BOOL AssistentDlg::IsDocEmpty() const
+sal_Bool AssistentDlg::IsDocEmpty() const
{
return mpImpl->GetDocFileName().Len() == 0 &&
mpImpl->GetLayoutFileName().Len() == 0;
diff --git a/sd/source/ui/dlg/dlgassim.cxx b/sd/source/ui/dlg/dlgassim.cxx
index aa2e234b0868..6c8d220157ae 100755
--- a/sd/source/ui/dlg/dlgassim.cxx
+++ b/sd/source/ui/dlg/dlgassim.cxx
@@ -116,8 +116,8 @@ void SdPageListControl::Fill( SdDrawDocument* pDoc )
{
Outliner* pOutliner = pDoc->GetInternalOutliner();
- USHORT nPage = 0;
- const USHORT nMaxPages = pDoc->GetPageCount();
+ sal_uInt16 nPage = 0;
+ const sal_uInt16 nMaxPages = pDoc->GetPageCount();
while( nPage < nMaxPages )
{
SdPage* pPage = (SdPage*) pDoc->GetPage( nPage );
@@ -130,8 +130,8 @@ void SdPageListControl::Fill( SdDrawDocument* pDoc )
if(!pTO)
{
// Ermittelt das SdrTextObject mit dem Layout Text dieser Seite
- const ULONG nObjectCount = pPage->GetObjCount();
- for (ULONG nObject = 0; nObject < nObjectCount; nObject++)
+ const sal_uLong nObjectCount = pPage->GetObjCount();
+ for (sal_uLong nObject = 0; nObject < nObjectCount; nObject++)
{
SdrObject* pObject = pPage->GetObj(nObject);
if (pObject->GetObjInventor() == SdrInventor && pObject->GetObjIdentifier() == OBJ_OUTLINETEXT)
@@ -150,14 +150,14 @@ void SdPageListControl::Fill( SdDrawDocument* pDoc )
pOutliner->Clear();
pOutliner->SetText( *pOPO );
- ULONG nCount = pOutliner->GetParagraphCount();
+ sal_uLong nCount = pOutliner->GetParagraphCount();
Paragraph* pPara = NULL;
- for (ULONG nPara = 0; nPara < nCount; nPara++)
+ for (sal_uLong nPara = 0; nPara < nCount; nPara++)
{
pPara = pOutliner->GetParagraph(nPara);
- if(pPara && pOutliner->GetDepth( (USHORT) nPara ) == 0 )
+ if(pPara && pOutliner->GetDepth( (sal_uInt16) nPara ) == 0 )
{
String aParaText = pOutliner->GetText(pPara);
if(aParaText.Len() != 0)
@@ -173,10 +173,10 @@ void SdPageListControl::Fill( SdDrawDocument* pDoc )
pOutliner->Clear();
}
-USHORT SdPageListControl::GetSelectedPage()
+sal_uInt16 SdPageListControl::GetSelectedPage()
{
SvLBoxEntry* pSelEntry = GetCurEntry();
- USHORT nPage = 0;
+ sal_uInt16 nPage = 0;
if ( pSelEntry )
{
@@ -196,10 +196,10 @@ USHORT SdPageListControl::GetSelectedPage()
return nPage;
}
-BOOL SdPageListControl::IsPageChecked( USHORT nPage )
+sal_Bool SdPageListControl::IsPageChecked( sal_uInt16 nPage )
{
SvLBoxEntry* pEntry = GetModel()->GetEntry(nPage);
- return pEntry?(BOOL)(GetCheckButtonState( pEntry ) == SV_BUTTON_CHECKED): FALSE;
+ return pEntry?(sal_Bool)(GetCheckButtonState( pEntry ) == SV_BUTTON_CHECKED): sal_False;
}
void SdPageListControl::DataChanged( const DataChangedEvent& rDCEvt )
diff --git a/sd/source/ui/dlg/dlgassim.hxx b/sd/source/ui/dlg/dlgassim.hxx
index 35bbd41de448..76bdbafac115 100755
--- a/sd/source/ui/dlg/dlgassim.hxx
+++ b/sd/source/ui/dlg/dlgassim.hxx
@@ -47,8 +47,8 @@ public:
void Fill( SdDrawDocument* pDoc );
void Clear();
- USHORT GetSelectedPage();
- BOOL IsPageChecked( USHORT nPage );
+ sal_uInt16 GetSelectedPage();
+ sal_Bool IsPageChecked( sal_uInt16 nPage );
DECL_LINK( CheckButtonClickHdl, SvLBoxButtonData * );
diff --git a/sd/source/ui/dlg/dlgchar.cxx b/sd/source/ui/dlg/dlgchar.cxx
index d0c412ca6f10..a46ac2bd833c 100644..100755
--- a/sd/source/ui/dlg/dlgchar.cxx
+++ b/sd/source/ui/dlg/dlgchar.cxx
@@ -64,7 +64,7 @@ SdCharDlg::SdCharDlg( Window* pParent, const SfxItemSet* pAttr,
// -----------------------------------------------------------------------
-void SdCharDlg::PageCreated( USHORT nId, SfxTabPage &rPage )
+void SdCharDlg::PageCreated( sal_uInt16 nId, SfxTabPage &rPage )
{
SfxAllItemSet aSet(*(GetInputSetImpl()->GetPool()));
switch( nId )
diff --git a/sd/source/ui/dlg/dlgctrls.cxx b/sd/source/ui/dlg/dlgctrls.cxx
index 1a5a612d37ad..8da21b313027 100755
--- a/sd/source/ui/dlg/dlgctrls.cxx
+++ b/sd/source/ui/dlg/dlgctrls.cxx
@@ -84,14 +84,14 @@ void FadeEffectLB::Fill()
/*
void FadeEffectLB::SelectEffect( presentation::FadeEffect eFE )
{
- BOOL bFound = FALSE;
+ sal_Bool bFound = sal_False;
for( long i = 0, nCount = sizeof( aEffects ) / sizeof( FadeEffectPair ); ( i < nCount ) && !bFound; i++ )
{
if( aEffects[ i ].meFE == eFE )
{
- SelectEntryPos( (USHORT) i );
- bFound = TRUE;
+ SelectEntryPos( (sal_uInt16) i );
+ bFound = sal_True;
}
}
}
@@ -101,7 +101,7 @@ void FadeEffectLB::SelectEffect( presentation::FadeEffect eFE )
void FadeEffectLB::applySelected( SdPage* pSlide ) const
{
- const USHORT nPos = GetSelectEntryPos();
+ const sal_uInt16 nPos = GetSelectEntryPos();
if( pSlide && (nPos < mpImpl->maPresets.size() ) )
{
diff --git a/sd/source/ui/dlg/dlgfield.cxx b/sd/source/ui/dlg/dlgfield.cxx
index 6778f073aaa9..5316d5a87ede 100644..100755
--- a/sd/source/ui/dlg/dlgfield.cxx
+++ b/sd/source/ui/dlg/dlgfield.cxx
@@ -219,7 +219,7 @@ void SdModifyFieldDlg::FillFormatList()
aDateField.SetFormat( SVXDATEFORMAT_F ); // Dienstag, 13.Februar 1996
aLbFormat.InsertEntry( aDateField.GetFormatted( *pNumberFormatter, eLangType ) );
- aLbFormat.SelectEntryPos( (USHORT) ( pDateField->GetFormat() - 2 ) );
+ aLbFormat.SelectEntryPos( (sal_uInt16) ( pDateField->GetFormat() - 2 ) );
}
else if( pField->ISA( SvxExtTimeField ) )
{
@@ -247,7 +247,7 @@ void SdModifyFieldDlg::FillFormatList()
//SVXTIMEFORMAT_AM_HMS, // 01:49:38 PM
//SVXTIMEFORMAT_AM_HMSH // 01:49:38.78 PM
- aLbFormat.SelectEntryPos( (USHORT) ( pTimeField->GetFormat() - 2 ) );
+ aLbFormat.SelectEntryPos( (sal_uInt16) ( pTimeField->GetFormat() - 2 ) );
}
else if( pField->ISA( SvxExtFileField ) )
{
@@ -259,20 +259,20 @@ void SdModifyFieldDlg::FillFormatList()
aLbFormat.InsertEntry( String( SdResId( STR_FILEFORMAT_PATH ) ) );
aLbFormat.InsertEntry( String( SdResId( STR_FILEFORMAT_NAME ) ) );
- aLbFormat.SelectEntryPos( (USHORT) ( pFileField->GetFormat() ) );
+ aLbFormat.SelectEntryPos( (sal_uInt16) ( pFileField->GetFormat() ) );
}
else if( pField->ISA( SvxAuthorField ) )
{
const SvxAuthorField* pAuthorField = (const SvxAuthorField*) pField;
SvxAuthorField aAuthorField( *pAuthorField );
- for( USHORT i = 0; i < 4; i++ )
+ for( sal_uInt16 i = 0; i < 4; i++ )
{
aAuthorField.SetFormat( (SvxAuthorFormat) i );
aLbFormat.InsertEntry( aAuthorField.GetFormatted() );
}
- aLbFormat.SelectEntryPos( (USHORT) ( pAuthorField->GetFormat() ) );
+ aLbFormat.SelectEntryPos( (sal_uInt16) ( pAuthorField->GetFormat() ) );
}
@@ -327,7 +327,7 @@ void SdModifyFieldDlg::FillControls()
aRbtVar.SaveValue();
const SfxPoolItem* pItem;
- if( SFX_ITEM_SET == maInputSet.GetItemState(EE_CHAR_LANGUAGE, TRUE, &pItem ) )
+ if( SFX_ITEM_SET == maInputSet.GetItemState(EE_CHAR_LANGUAGE, sal_True, &pItem ) )
maLbLanguage.SelectLanguage( static_cast<const SvxLanguageItem*>(pItem)->GetLanguage() );
maLbLanguage.SaveValue();
diff --git a/sd/source/ui/dlg/dlgolbul.cxx b/sd/source/ui/dlg/dlgolbul.cxx
index bbd32f6bd807..cb5e4a89dffb 100644..100755
--- a/sd/source/ui/dlg/dlgolbul.cxx
+++ b/sd/source/ui/dlg/dlgolbul.cxx
@@ -77,7 +77,7 @@ OutlineBulletDlg::OutlineBulletDlg(
::sd::View* pView )
: SfxTabDialog ( pParent, SdResId(TAB_OUTLINEBULLET) ),
aInputSet ( *pAttr ),
- bTitle ( FALSE ),
+ bTitle ( sal_False ),
pSdView ( pView )
{
FreeResource();
@@ -88,14 +88,14 @@ OutlineBulletDlg::OutlineBulletDlg(
pOutputSet = new SfxItemSet( *pAttr );
pOutputSet->ClearItem();
- BOOL bOutliner = FALSE;
+ sal_Bool bOutliner = sal_False;
// Sonderbehandlung wenn eine Title Objekt selektiert wurde
if( pView )
{
const SdrMarkList& rMarkList = pView->GetMarkedObjectList();
- const ULONG nCount = rMarkList.GetMarkCount();
- for(ULONG nNum = 0; nNum < nCount; nNum++)
+ const sal_uLong nCount = rMarkList.GetMarkCount();
+ for(sal_uLong nNum = 0; nNum < nCount; nNum++)
{
SdrObject* pObj = rMarkList.GetMark(nNum)->GetMarkedSdrObj();
if( pObj->GetObjInventor() == SdrInventor )
@@ -104,10 +104,10 @@ OutlineBulletDlg::OutlineBulletDlg(
switch(pObj->GetObjIdentifier())
{
case OBJ_TITLETEXT:
- bTitle = TRUE;
+ bTitle = sal_True;
break;
case OBJ_OUTLINETEXT:
- bOutliner = TRUE;
+ bOutliner = sal_True;
break;
}
}
@@ -124,7 +124,7 @@ OutlineBulletDlg::OutlineBulletDlg(
aStyleName.AppendAscii( RTL_CONSTASCII_STRINGPARAM( " 1" ) );
SfxStyleSheetBase* pFirstStyleSheet = pSSPool->Find( aStyleName, SD_STYLE_FAMILY_PSEUDO);
if( pFirstStyleSheet )
- pFirstStyleSheet->GetItemSet().GetItemState(EE_PARA_NUMBULLET, FALSE, (const SfxPoolItem**)&pItem);
+ pFirstStyleSheet->GetItemSet().GetItemState(EE_PARA_NUMBULLET, sal_False, (const SfxPoolItem**)&pItem);
}
if( pItem == NULL )
@@ -136,7 +136,7 @@ OutlineBulletDlg::OutlineBulletDlg(
}
/* debug
- if( SFX_ITEM_SET == aInputSet.GetItemState(EE_PARA_NUMBULLET, FALSE, &pItem ))
+ if( SFX_ITEM_SET == aInputSet.GetItemState(EE_PARA_NUMBULLET, sal_False, &pItem ))
{
SvxNumRule& rItem = *((SvxNumBulletItem*)pItem)->GetNumRule();
for( int i = 0; i < 9; i++ )
@@ -146,14 +146,14 @@ OutlineBulletDlg::OutlineBulletDlg(
}
*/
- if(bTitle && aInputSet.GetItemState(EE_PARA_NUMBULLET,TRUE) == SFX_ITEM_ON )
+ if(bTitle && aInputSet.GetItemState(EE_PARA_NUMBULLET,sal_True) == SFX_ITEM_ON )
{
- SvxNumBulletItem* pItem = (SvxNumBulletItem*)aInputSet.GetItem(EE_PARA_NUMBULLET,TRUE);
+ SvxNumBulletItem* pItem = (SvxNumBulletItem*)aInputSet.GetItem(EE_PARA_NUMBULLET,sal_True);
SvxNumRule* pRule = pItem->GetNumRule();
if(pRule)
{
SvxNumRule aNewRule( *pRule );
- aNewRule.SetFeatureFlag( NUM_NO_NUMBERS, TRUE );
+ aNewRule.SetFeatureFlag( NUM_NO_NUMBERS, sal_True );
SvxNumBulletItem aNewItem( aNewRule, EE_PARA_NUMBULLET );
aInputSet.Put(aNewItem);
@@ -179,7 +179,7 @@ OutlineBulletDlg::~OutlineBulletDlg()
delete pOutputSet;
}
-void OutlineBulletDlg::PageCreated( USHORT nId, SfxTabPage &rPage )
+void OutlineBulletDlg::PageCreated( sal_uInt16 nId, SfxTabPage &rPage )
{
switch ( nId )
{
@@ -189,7 +189,7 @@ void OutlineBulletDlg::PageCreated( USHORT nId, SfxTabPage &rPage )
{
FieldUnit eMetric = pSdView->GetDoc()->GetUIUnit();
SfxAllItemSet aSet(*(GetInputSetImpl()->GetPool()));
- aSet.Put ( SfxAllEnumItem(SID_METRIC_ITEM,(USHORT)eMetric));
+ aSet.Put ( SfxAllEnumItem(SID_METRIC_ITEM,(sal_uInt16)eMetric));
rPage.PageCreated(aSet);
}
}
@@ -200,7 +200,7 @@ void OutlineBulletDlg::PageCreated( USHORT nId, SfxTabPage &rPage )
{
FieldUnit eMetric = pSdView->GetDoc()->GetUIUnit();
SfxAllItemSet aSet(*(GetInputSetImpl()->GetPool()));
- aSet.Put ( SfxAllEnumItem(SID_METRIC_ITEM,(USHORT)eMetric));
+ aSet.Put ( SfxAllEnumItem(SID_METRIC_ITEM,(sal_uInt16)eMetric));
rPage.PageCreated(aSet);
}
}
@@ -214,7 +214,7 @@ const SfxItemSet* OutlineBulletDlg::GetOutputItemSet() const
pOutputSet->Put( aSet );
const SfxPoolItem *pItem = NULL;
- if( SFX_ITEM_SET == pOutputSet->GetItemState(pOutputSet->GetPool()->GetWhich(SID_ATTR_NUMBERING_RULE), FALSE, &pItem ))
+ if( SFX_ITEM_SET == pOutputSet->GetItemState(pOutputSet->GetPool()->GetWhich(SID_ATTR_NUMBERING_RULE), sal_False, &pItem ))
{
SdBulletMapper::MapFontsInNumRule( *((SvxNumBulletItem*)pItem)->GetNumRule(), *pOutputSet );
@@ -228,12 +228,12 @@ const SfxItemSet* OutlineBulletDlg::GetOutputItemSet() const
SdBulletMapper::PostMapNumBulletForDialog( *pOutputSet );
*/
- if(bTitle && pOutputSet->GetItemState(EE_PARA_NUMBULLET,TRUE) == SFX_ITEM_ON )
+ if(bTitle && pOutputSet->GetItemState(EE_PARA_NUMBULLET,sal_True) == SFX_ITEM_ON )
{
- SvxNumBulletItem* pBulletItem = (SvxNumBulletItem*)pOutputSet->GetItem(EE_PARA_NUMBULLET,TRUE);
+ SvxNumBulletItem* pBulletItem = (SvxNumBulletItem*)pOutputSet->GetItem(EE_PARA_NUMBULLET,sal_True);
SvxNumRule* pRule = pBulletItem->GetNumRule();
if(pRule)
- pRule->SetFeatureFlag( NUM_NO_NUMBERS, FALSE );
+ pRule->SetFeatureFlag( NUM_NO_NUMBERS, sal_False );
}
return pOutputSet;
diff --git a/sd/source/ui/dlg/dlgpage.cxx b/sd/source/ui/dlg/dlgpage.cxx
index f2dea0f67e2f..aff87536c222 100644..100755
--- a/sd/source/ui/dlg/dlgpage.cxx
+++ b/sd/source/ui/dlg/dlgpage.cxx
@@ -55,7 +55,7 @@
|*
\************************************************************************/
-SdPageDlg::SdPageDlg( SfxObjectShell* pDocSh, Window* pParent, const SfxItemSet* pAttr, BOOL bAreaPage ) :
+SdPageDlg::SdPageDlg( SfxObjectShell* pDocSh, Window* pParent, const SfxItemSet* pAttr, sal_Bool bAreaPage ) :
SfxTabDialog ( pParent, SdResId( TAB_PAGE ), pAttr ),
mrOutAttrs ( *pAttr ),
mpDocShell ( pDocSh )
@@ -90,15 +90,15 @@ SdPageDlg::SdPageDlg( SfxObjectShell* pDocSh, Window* pParent, const SfxItemSet*
|*
\************************************************************************/
-void SdPageDlg::PageCreated(USHORT nId, SfxTabPage& rPage)
+void SdPageDlg::PageCreated(sal_uInt16 nId, SfxTabPage& rPage)
{
SfxAllItemSet aSet(*(GetInputSetImpl()->GetPool()));
switch(nId)
{
case RID_SVXPAGE_PAGE:
- aSet.Put (SfxAllEnumItem((const USHORT)SID_ENUM_PAGE_MODE, SVX_PAGE_MODE_PRESENTATION));
- aSet.Put (SfxAllEnumItem((const USHORT)SID_PAPER_START, PAPER_A0));
- aSet.Put (SfxAllEnumItem((const USHORT)SID_PAPER_END, PAPER_E));
+ aSet.Put (SfxAllEnumItem((const sal_uInt16)SID_ENUM_PAGE_MODE, SVX_PAGE_MODE_PRESENTATION));
+ aSet.Put (SfxAllEnumItem((const sal_uInt16)SID_PAPER_START, PAPER_A0));
+ aSet.Put (SfxAllEnumItem((const sal_uInt16)SID_PAPER_END, PAPER_E));
rPage.PageCreated(aSet);
break;
case RID_SVXPAGE_AREA:
diff --git a/sd/source/ui/dlg/dlgsnap.cxx b/sd/source/ui/dlg/dlgsnap.cxx
index 6cd220d5a5bc..cc8d9dd996b9 100755
--- a/sd/source/ui/dlg/dlgsnap.cxx
+++ b/sd/source/ui/dlg/dlgsnap.cxx
@@ -85,8 +85,8 @@ SdSnapLineDlg::SdSnapLineDlg(
aBtnDelete.SetClickHdl(LINK(this, SdSnapLineDlg, ClickHdl));
- SetFieldUnit( aMtrFldX, eUIUnit, TRUE );
- SetFieldUnit( aMtrFldY, eUIUnit, TRUE );
+ SetFieldUnit( aMtrFldX, eUIUnit, sal_True );
+ SetFieldUnit( aMtrFldY, eUIUnit, sal_True );
// WorkArea holen
Rectangle aWorkArea = pView->GetWorkArea();
@@ -149,9 +149,9 @@ SdSnapLineDlg::SdSnapLineDlg(
IMPL_LINK( SdSnapLineDlg, ClickHdl, Button *, pBtn )
{
- if ( pBtn == &aRbPoint ) SetInputFields(TRUE, TRUE);
- else if ( pBtn == &aRbHorz ) SetInputFields(FALSE, TRUE);
- else if ( pBtn == &aRbVert ) SetInputFields(TRUE, FALSE);
+ if ( pBtn == &aRbPoint ) SetInputFields(sal_True, sal_True);
+ else if ( pBtn == &aRbHorz ) SetInputFields(sal_False, sal_True);
+ else if ( pBtn == &aRbVert ) SetInputFields(sal_True, sal_False);
else if ( pBtn == &aBtnDelete ) EndDialog(RET_SNAP_DELETE);
return 0;
@@ -174,7 +174,7 @@ void SdSnapLineDlg::GetAttr(SfxItemSet& rOutAttrs)
nXValue = Fraction( GetCoreValue( aMtrFldX, SFX_MAPUNIT_100TH_MM) ) * aUIScale;
nYValue = Fraction( GetCoreValue( aMtrFldY, SFX_MAPUNIT_100TH_MM) ) * aUIScale;
- rOutAttrs.Put(SfxAllEnumItem(ATTR_SNAPLINE_KIND, (USHORT)eKind));
+ rOutAttrs.Put(SfxAllEnumItem(ATTR_SNAPLINE_KIND, (sal_uInt16)eKind));
rOutAttrs.Put(SfxUInt32Item(ATTR_SNAPLINE_X, nXValue));
rOutAttrs.Put(SfxUInt32Item(ATTR_SNAPLINE_Y, nYValue));
}
@@ -199,7 +199,7 @@ void SdSnapLineDlg::HideRadioGroup()
|*
\************************************************************************/
-void SdSnapLineDlg::SetInputFields(BOOL bEnableX, BOOL bEnableY)
+void SdSnapLineDlg::SetInputFields(sal_Bool bEnableX, sal_Bool bEnableY)
{
if ( bEnableX )
{
diff --git a/sd/source/ui/dlg/docprev.cxx b/sd/source/ui/dlg/docprev.cxx
index a42ce43a2c6d..ffac8d56d1fd 100755
--- a/sd/source/ui/dlg/docprev.cxx
+++ b/sd/source/ui/dlg/docprev.cxx
@@ -72,7 +72,7 @@ void SdDocPreviewWin::SetObjectShell( SfxObjectShell* pObj, sal_uInt16 nShowPage
}
SdDocPreviewWin::SdDocPreviewWin( Window* pParent, const ResId& rResId )
-: Control(pParent, rResId), pMetaFile( 0 ), bInEffect(FALSE), mpObj(NULL), mnShowPage(0)
+: Control(pParent, rResId), pMetaFile( 0 ), bInEffect(sal_False), mpObj(NULL), mnShowPage(0)
{
SetBorderStyle( WINDOW_BORDER_MONO );
svtools::ColorConfig aColorConfig;
@@ -105,13 +105,13 @@ void SdDocPreviewWin::CalcSizeAndPos( GDIMetaFile* pFile, Size& rSize, Point& rP
if (dRatio>dRatioPreV)
{
- rSize=Size(nWidth, (USHORT)(nWidth/dRatio));
- rPoint=Point( 0, (USHORT)((nHeight-rSize.Height())/2));
+ rSize=Size(nWidth, (sal_uInt16)(nWidth/dRatio));
+ rPoint=Point( 0, (sal_uInt16)((nHeight-rSize.Height())/2));
}
else
{
- rSize=Size((USHORT)(nHeight*dRatio), nHeight);
- rPoint=Point((USHORT)((nWidth-rSize.Width())/2),0);
+ rSize=Size((sal_uInt16)(nHeight*dRatio), nHeight);
+ rPoint=Point((sal_uInt16)((nWidth-rSize.Width())/2),0);
}
}
@@ -238,7 +238,7 @@ void SdDocPreviewWin::updateViewSettings()
aVDev.SetMapMode( aMap );
// #109058# Disable output, as we only want to record a metafile
- aVDev.EnableOutput( FALSE );
+ aVDev.EnableOutput( sal_False );
pMtf->Record( &aVDev );
@@ -247,8 +247,8 @@ void SdDocPreviewWin::updateViewSettings()
const Size aSize( pPage->GetSize() );
- pView->SetBordVisible( FALSE );
- pView->SetPageVisible( FALSE );
+ pView->SetBordVisible( sal_False );
+ pView->SetPageVisible( sal_False );
pView->ShowSdrPage( pPage );
const Point aNewOrg( pPage->GetLftBorder(), pPage->GetUppBorder() );
diff --git a/sd/source/ui/dlg/filedlg.cxx b/sd/source/ui/dlg/filedlg.cxx
index 71fad02f24a7..ac4682e42561 100755
--- a/sd/source/ui/dlg/filedlg.cxx
+++ b/sd/source/ui/dlg/filedlg.cxx
@@ -74,9 +74,9 @@ private:
css::uno::Reference< css::ui::dialogs::XFilePickerControlAccess > mxControlAccess;
css::uno::Reference< css::media::XPlayer > mxPlayer;
- ULONG mnPlaySoundEvent;
- BOOL mbUsableSelection;
- BOOL mbLabelPlaying;
+ sal_uLong mnPlaySoundEvent;
+ sal_Bool mbUsableSelection;
+ sal_Bool mbLabelPlaying;
void CheckSelectionState();
@@ -139,7 +139,7 @@ IMPL_LINK( SdFileDialog_Imp, PlayMusicHdl, void *, EMPTYARG )
mxControlAccess->setLabel( css::ui::dialogs::ExtendedFilePickerElementIds::PUSHBUTTON_PLAY,
String( SdResId( STR_PLAY ) ) );
- mbLabelPlaying = FALSE;
+ mbLabelPlaying = sal_False;
}
catch( css::lang::IllegalArgumentException )
{
@@ -173,7 +173,7 @@ IMPL_LINK( SdFileDialog_Imp, PlayMusicHdl, void *, EMPTYARG )
mxControlAccess->setLabel( css::ui::dialogs::ExtendedFilePickerElementIds::PUSHBUTTON_PLAY,
String( SdResId( STR_STOP ) ) );
- mbLabelPlaying = TRUE;
+ mbLabelPlaying = sal_True;
}
catch( css::lang::IllegalArgumentException )
{
@@ -209,7 +209,7 @@ IMPL_LINK( SdFileDialog_Imp, IsMusicStoppedHdl, void *, EMPTYARG )
{
mxControlAccess->setLabel( css::ui::dialogs::ExtendedFilePickerElementIds::PUSHBUTTON_PLAY,
String( SdResId( STR_PLAY ) ) );
- mbLabelPlaying = FALSE;
+ mbLabelPlaying = sal_False;
}
catch( css::lang::IllegalArgumentException )
{
@@ -232,9 +232,9 @@ void SdFileDialog_Imp::CheckSelectionState()
try
{
if( !aCurrFilter.Len() || ( aCurrFilter == String( SdResId( STR_EXPORT_HTML_NAME ) ) ) )
- mxControlAccess->enableControl( css::ui::dialogs::ExtendedFilePickerElementIds::CHECKBOX_SELECTION, FALSE );
+ mxControlAccess->enableControl( css::ui::dialogs::ExtendedFilePickerElementIds::CHECKBOX_SELECTION, sal_False );
else
- mxControlAccess->enableControl( css::ui::dialogs::ExtendedFilePickerElementIds::CHECKBOX_SELECTION, TRUE );
+ mxControlAccess->enableControl( css::ui::dialogs::ExtendedFilePickerElementIds::CHECKBOX_SELECTION, sal_True );
}
catch( css::lang::IllegalArgumentException )
{
@@ -251,7 +251,7 @@ SdFileDialog_Imp::SdFileDialog_Imp( const short nDialogType,
FileDialogHelper( nDialogType, 0 ),
mnPlaySoundEvent( 0 ),
mbUsableSelection( bUsableSelection ),
- mbLabelPlaying(FALSE)
+ mbLabelPlaying(sal_False)
{
maUpdateTimer.SetTimeoutHdl(LINK(this, SdFileDialog_Imp, IsMusicStoppedHdl));
@@ -281,7 +281,7 @@ SdFileDialog_Imp::SdFileDialog_Imp( const short nDialogType,
{
try
{
- mxControlAccess->enableControl( css::ui::dialogs::ExtendedFilePickerElementIds::CHECKBOX_SELECTION, FALSE );
+ mxControlAccess->enableControl( css::ui::dialogs::ExtendedFilePickerElementIds::CHECKBOX_SELECTION, sal_False );
}
catch( css::lang::IllegalArgumentException )
{
diff --git a/sd/source/ui/dlg/gluectrl.cxx b/sd/source/ui/dlg/gluectrl.cxx
index 5a23262c57c0..0f326975cbf6 100644..100755
--- a/sd/source/ui/dlg/gluectrl.cxx
+++ b/sd/source/ui/dlg/gluectrl.cxx
@@ -50,7 +50,7 @@ using namespace ::com::sun::star::frame;
// z.Z. werden von Joe nur die u.a. Moeglichkeiten unterstuetzt
#define ESCDIR_COUNT 5
-static UINT16 aEscDirArray[] =
+static sal_uInt16 aEscDirArray[] =
{
SDRESC_SMART,
SDRESC_LEFT,
@@ -107,7 +107,7 @@ GlueEscDirLB::~GlueEscDirLB()
void GlueEscDirLB::Select()
{
- UINT16 nPos = GetSelectEntryPos();
+ sal_uInt16 nPos = GetSelectEntryPos();
SfxUInt16Item aItem( SID_GLUE_ESCDIR, aEscDirArray[ nPos ] );
if ( m_xFrame.is() )
@@ -158,7 +158,7 @@ void GlueEscDirLB::Fill()
\************************************************************************/
SdTbxCtlGlueEscDir::SdTbxCtlGlueEscDir(
- USHORT nSlotId, USHORT nId, ToolBox& rTbx ) :
+ sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx ) :
SfxToolBoxControl( nSlotId, nId, rTbx )
{
}
@@ -169,7 +169,7 @@ SdTbxCtlGlueEscDir::SdTbxCtlGlueEscDir(
|*
\************************************************************************/
-void SdTbxCtlGlueEscDir::StateChanged( USHORT nSId,
+void SdTbxCtlGlueEscDir::StateChanged( sal_uInt16 nSId,
SfxItemState eState, const SfxPoolItem* pState )
{
if( eState == SFX_ITEM_AVAILABLE )
@@ -187,7 +187,7 @@ void SdTbxCtlGlueEscDir::StateChanged( USHORT nSId,
}
else
{
- UINT16 nEscDir = ( (const SfxUInt16Item*) pState )->GetValue();
+ sal_uInt16 nEscDir = ( (const SfxUInt16Item*) pState )->GetValue();
pGlueEscDirLB->SelectEntryPos( GetEscDirPos( nEscDir ) );
}
}
@@ -225,9 +225,9 @@ Window* SdTbxCtlGlueEscDir::CreateItemWindow( Window *pParent )
|*
\************************************************************************/
-UINT16 SdTbxCtlGlueEscDir::GetEscDirPos( UINT16 nEscDir )
+sal_uInt16 SdTbxCtlGlueEscDir::GetEscDirPos( sal_uInt16 nEscDir )
{
- for( UINT16 i = 0; i < ESCDIR_COUNT; i++ )
+ for( sal_uInt16 i = 0; i < ESCDIR_COUNT; i++ )
{
if( aEscDirArray[ i ] == nEscDir )
return( i );
diff --git a/sd/source/ui/dlg/headerfooterdlg.cxx b/sd/source/ui/dlg/headerfooterdlg.cxx
index b48a1682bba6..9707ecb2c300 100755
--- a/sd/source/ui/dlg/headerfooterdlg.cxx
+++ b/sd/source/ui/dlg/headerfooterdlg.cxx
@@ -192,7 +192,7 @@ public:
~HeaderFooterTabPage();
static SfxTabPage* Create( ::Window*, const SfxItemSet& );
- static USHORT* GetRanges();
+ static sal_uInt16* GetRanges();
void init( const HeaderFooterSettings& rSettings, bool bNotOnTitle, bool bHasApply );
void getData( HeaderFooterSettings& rSettings, bool& rNotOnTitle );
@@ -293,7 +293,7 @@ HeaderFooterDialog::~HeaderFooterDialog()
IMPL_LINK( HeaderFooterDialog, ActivatePageHdl, TabControl *, pTabCtrl )
{
- const USHORT nId = pTabCtrl->GetCurPageId();
+ const sal_uInt16 nId = pTabCtrl->GetCurPageId();
TabPage* pTabPage = pTabCtrl->GetTabPage( nId );
pTabPage->Show();
@@ -304,14 +304,14 @@ IMPL_LINK( HeaderFooterDialog, ActivatePageHdl, TabControl *, pTabCtrl )
IMPL_LINK( HeaderFooterDialog, DeactivatePageHdl, TabControl *, EMPTYARG )
{
- return TRUE;
+ return sal_True;
}
// -----------------------------------------------------------------------
short HeaderFooterDialog::Execute()
{
- USHORT nRet = TabDialog::Execute();
+ sal_uInt16 nRet = TabDialog::Execute();
if( nRet )
mpViewShell->GetDocSh()->SetModified();
return nRet;
@@ -366,7 +366,7 @@ void HeaderFooterDialog::apply( bool bToAll, bool bForceSlides )
int nPage;
for( nPage = 0; nPage < nPageCount; nPage++ )
{
- SdPage* pPage = mpDoc->GetSdPage( (USHORT)nPage, PK_STANDARD );
+ SdPage* pPage = mpDoc->GetSdPage( (sal_uInt16)nPage, PK_STANDARD );
change( pUndoGroup, pPage, aNewSettings );
}
}
@@ -407,7 +407,7 @@ void HeaderFooterDialog::apply( bool bToAll, bool bForceSlides )
int nPage;
for( nPage = 0; nPage < nPageCount; nPage++ )
{
- SdPage* pPage = mpDoc->GetSdPage( (USHORT)nPage, PK_NOTES );
+ SdPage* pPage = mpDoc->GetSdPage( (sal_uInt16)nPage, PK_NOTES );
change( pUndoGroup, pPage, aNewSettings );
}
@@ -576,7 +576,7 @@ void HeaderFooterTabPage::FillFormatList( int eFormat )
for( nFormat = 0; nFormat < nDateTimeFormatsCount; nFormat++ )
{
String aStr( SvxDateTimeField::GetFormatted( aDate, aTime, nDateTimeFormats[nFormat], *(SD_MOD()->GetNumberFormatter()), eLanguage ) );
- USHORT nEntry = maCBDateTimeFormat.InsertEntry( aStr );
+ sal_uInt16 nEntry = maCBDateTimeFormat.InsertEntry( aStr );
maCBDateTimeFormat.SetEntryData( nEntry, (void*)nDateTimeFormats[nFormat] );
if( nDateTimeFormats[nFormat] == eFormat )
{
@@ -608,7 +608,7 @@ void HeaderFooterTabPage::init( const HeaderFooterSettings& rSettings, bool bNot
maCBDateTimeLanguage.SelectLanguage( meOldLanguage );
- USHORT nPos;
+ sal_uInt16 nPos;
for( nPos = 0; nPos < maCBDateTimeFormat.GetEntryCount(); nPos++ )
{
int nFormat = (int)(sal_IntPtr)maCBDateTimeFormat.GetEntryData( nPos );
@@ -711,8 +711,8 @@ void HeaderFooterTabPage::GetOrSetDateTimeLanguage( LanguageType &rLanguage, boo
// if set, set it on all notes master pages
if( bSet )
{
- USHORT nPageCount = mpDoc->GetMasterSdPageCount( PK_NOTES );
- USHORT nPage;
+ sal_uInt16 nPageCount = mpDoc->GetMasterSdPageCount( PK_NOTES );
+ sal_uInt16 nPage;
for( nPage = 0; nPage < nPageCount; nPage++ )
{
GetOrSetDateTimeLanguage( rLanguage, bSet, mpDoc->GetMasterSdPage( nPage, PK_NOTES ) );
@@ -726,8 +726,8 @@ void HeaderFooterTabPage::GetOrSetDateTimeLanguage( LanguageType &rLanguage, boo
{
// get the language from the first master page
// or set it to all master pages
- USHORT nPageCount = bSet ? mpDoc->GetMasterSdPageCount( PK_NOTES ) : 1;
- USHORT nPage;
+ sal_uInt16 nPageCount = bSet ? mpDoc->GetMasterSdPageCount( PK_NOTES ) : 1;
+ sal_uInt16 nPage;
for( nPage = 0; nPage < nPageCount; nPage++ )
{
GetOrSetDateTimeLanguage( rLanguage, bSet, mpDoc->GetMasterSdPage( nPage, PK_STANDARD ) );
@@ -746,7 +746,7 @@ void HeaderFooterTabPage::GetOrSetDateTimeLanguage( LanguageType &rLanguage, boo
{
Outliner* pOutl = mpDoc->GetInternalOutliner();
pOutl->Init( OUTLINERMODE_TEXTOBJECT );
- USHORT nOutlMode = pOutl->GetMode();
+ sal_uInt16 nOutlMode = pOutl->GetMode();
EditEngine* pEdit = const_cast< EditEngine* >(&pOutl->GetEditEngine());
@@ -757,12 +757,12 @@ void HeaderFooterTabPage::GetOrSetDateTimeLanguage( LanguageType &rLanguage, boo
EFieldInfo aFieldInfo;
aFieldInfo.pFieldItem = NULL;
- USHORT nParaCount = pEdit->GetParagraphCount();
- USHORT nPara;
+ sal_uInt16 nParaCount = pEdit->GetParagraphCount();
+ sal_uInt16 nPara;
for( nPara = 0; (nPara < nParaCount) && (aFieldInfo.pFieldItem == NULL); nPara++ )
{
- USHORT nFieldCount = pEdit->GetFieldCount( nPara );
- USHORT nField;
+ sal_uInt16 nFieldCount = pEdit->GetFieldCount( nPara );
+ sal_uInt16 nField;
for( nField = 0; (nField < nFieldCount) && (aFieldInfo.pFieldItem == NULL); nField++ )
{
aFieldInfo = pEdit->GetFieldInfo( nPara, nField );
diff --git a/sd/source/ui/dlg/ins_paste.cxx b/sd/source/ui/dlg/ins_paste.cxx
index c0079d5eee77..38107bb5639f 100644..100755
--- a/sd/source/ui/dlg/ins_paste.cxx
+++ b/sd/source/ui/dlg/ins_paste.cxx
@@ -49,7 +49,7 @@ SdInsertPasteDlg::SdInsertPasteDlg( Window* pWindow ) :
aBtnHelp( this, SdResId( BTN_HELP ) )
{
FreeResource();
- aRbAfter.Check( TRUE );
+ aRbAfter.Check( sal_True );
}
// -----------------------------------------------------------------------------
@@ -60,7 +60,7 @@ SdInsertPasteDlg::~SdInsertPasteDlg()
// -----------------------------------------------------------------------------
-BOOL SdInsertPasteDlg::IsInsertBefore() const
+sal_Bool SdInsertPasteDlg::IsInsertBefore() const
{
return( aRbBefore.IsChecked() );
}
diff --git a/sd/source/ui/dlg/inspagob.cxx b/sd/source/ui/dlg/inspagob.cxx
index 5d260367f383..94cc2846aa11 100755
--- a/sd/source/ui/dlg/inspagob.cxx
+++ b/sd/source/ui/dlg/inspagob.cxx
@@ -117,7 +117,7 @@ void SdInsertPagesObjsDlg::Reset()
aLbTree.SetCollapsedEntryBmp( pEntry, aImgTextH, BMP_COLOR_HIGHCONTRAST );
}
- aCbxMasters.Check( TRUE );
+ aCbxMasters.Check( sal_True );
}
/*************************************************************************
@@ -128,7 +128,7 @@ void SdInsertPagesObjsDlg::Reset()
|*
\************************************************************************/
-List* SdInsertPagesObjsDlg::GetList( USHORT nType )
+List* SdInsertPagesObjsDlg::GetList( sal_uInt16 nType )
{
// Bei Draw-Dokumenten muss bei der Selektion des Dokumentes NULL
// zurueckgegeben werden
@@ -153,7 +153,7 @@ List* SdInsertPagesObjsDlg::GetList( USHORT nType )
|*
\************************************************************************/
-BOOL SdInsertPagesObjsDlg::IsLink()
+sal_Bool SdInsertPagesObjsDlg::IsLink()
{
return( aCbxLink.IsChecked() );
}
@@ -164,7 +164,7 @@ BOOL SdInsertPagesObjsDlg::IsLink()
|*
\************************************************************************/
-BOOL SdInsertPagesObjsDlg::IsRemoveUnnessesaryMasterPages() const
+sal_Bool SdInsertPagesObjsDlg::IsRemoveUnnessesaryMasterPages() const
{
return( aCbxMasters.IsChecked() );
}
diff --git a/sd/source/ui/dlg/masterlayoutdlg.cxx b/sd/source/ui/dlg/masterlayoutdlg.cxx
index 601b1d1cf72c..8732a1b6ac15 100644..100755
--- a/sd/source/ui/dlg/masterlayoutdlg.cxx
+++ b/sd/source/ui/dlg/masterlayoutdlg.cxx
@@ -76,7 +76,7 @@ MasterLayoutDialog::MasterLayoutDialog( Window* pParent, SdDrawDocument* pDoc, S
case PK_STANDARD:
{
// aTitle = String( SdResId( STR_MASTER_LAYOUT_TITLE ) );
- maCBHeader.Enable( FALSE );
+ maCBHeader.Enable( sal_False );
String aSlideNumberStr( SdResId( STR_SLIDE_NUMBER ) );
maCBPageNumber.SetText( aSlideNumberStr );
break;
@@ -170,7 +170,7 @@ void MasterLayoutDialog::remove( PresObjKind eKind )
if( bUndo )
mpDoc->AddUndo(mpDoc->GetSdrUndoFactory().CreateUndoDeleteObject(*pObject));
SdrObjList* pOL =pObject->GetObjList();
- UINT32 nOrdNum=pObject->GetOrdNumDirect();
+ sal_uInt32 nOrdNum=pObject->GetOrdNumDirect();
pOL->RemoveObject(nOrdNum);
if( !bUndo )
diff --git a/sd/source/ui/dlg/morphdlg.cxx b/sd/source/ui/dlg/morphdlg.cxx
index 47780b0f8233..c6abe9584ed5 100644..100755
--- a/sd/source/ui/dlg/morphdlg.cxx
+++ b/sd/source/ui/dlg/morphdlg.cxx
@@ -125,8 +125,8 @@ void MorphDlg::LoadSettings()
SvStorageStreamRef xIStm( SD_MOD()->GetOptionStream( UniString::CreateFromAscii(
RTL_CONSTASCII_STRINGPARAM( SD_OPTION_MORPHING ) ),
SD_OPTION_LOAD ) );
- UINT16 nSteps;
- BOOL bOrient, bAttrib;
+ sal_uInt16 nSteps;
+ sal_Bool bOrient, bAttrib;
if( xIStm.Is() )
{
@@ -137,7 +137,7 @@ void MorphDlg::LoadSettings()
else
{
nSteps = 16;
- bOrient = bAttrib = TRUE;
+ bOrient = bAttrib = sal_True;
}
aMtfSteps.SetValue( nSteps );
@@ -157,7 +157,7 @@ void MorphDlg::SaveSettings() const
{
SdIOCompat aCompat( *xOStm, STREAM_WRITE, 1 );
- *xOStm << (UINT16) aMtfSteps.GetValue()
+ *xOStm << (sal_uInt16) aMtfSteps.GetValue()
<< aCbxOrientation.IsChecked()
<< aCbxAttributes.IsChecked();
}
diff --git a/sd/source/ui/dlg/navigatr.cxx b/sd/source/ui/dlg/navigatr.cxx
index 488737fa6b56..3248504a61ab 100755
--- a/sd/source/ui/dlg/navigatr.cxx
+++ b/sd/source/ui/dlg/navigatr.cxx
@@ -82,7 +82,7 @@ SdNavigatorWin::SdNavigatorWin(
, maTlbObjects( this, SdResId( TLB_OBJECTS ) )
, maLbDocs ( this, SdResId( LB_DOCS ) )
, mpChildWinContext( pChWinCtxt )
-, mbDocImported ( FALSE )
+, mbDocImported ( sal_False )
// Bei Aenderung des DragTypes: SelectionMode der TLB anpassen!
, meDragType ( NAVIGATOR_DRAGTYPE_EMBEDDED )
, mpBindings ( pInBindings )
@@ -142,7 +142,7 @@ SdNavigatorWin::SdNavigatorWin(
((SfxDockingWindow*)GetParent())->SetMinOutputSizePixel( maMinSize );
// InitTlb; Wird ueber Slot initiiert
- SfxBoolItem aItem( SID_NAVIGATOR_INIT, TRUE );
+ SfxBoolItem aItem( SID_NAVIGATOR_INIT, sal_True );
mpBindings->GetDispatcher()->Execute(
SID_NAVIGATOR_INIT, SFX_CALLMODE_ASYNCHRON | SFX_CALLMODE_RECORD, &aItem, 0L );
@@ -158,7 +158,7 @@ SdNavigatorWin::~SdNavigatorWin()
// Liste der DocInfos loeschen
long nCount = mpDocList->Count();
while( nCount-- )
- delete (NavDocInfo*) mpDocList->Remove( (ULONG)0 );
+ delete (NavDocInfo*) mpDocList->Remove( (sal_uLong)0 );
delete mpDocList;
}
@@ -184,7 +184,7 @@ void SdNavigatorWin::InitTreeLB( const SdDrawDocument* pDoc )
// Disable the shape filter drop down menu when there is a running slide
// show.
if (pViewShell!=NULL && sd::SlideShow::IsRunning( pViewShell->GetViewShellBase() ))
- maToolbox.EnableItem(TBI_SHAPE_FILTER, FALSE);
+ maToolbox.EnableItem(TBI_SHAPE_FILTER, sal_False);
else
maToolbox.EnableItem(TBI_SHAPE_FILTER);
@@ -192,7 +192,7 @@ void SdNavigatorWin::InitTreeLB( const SdDrawDocument* pDoc )
{
String aDocName = pDocShell->GetMedium()->GetName();
maTlbObjects.Clear();
- maTlbObjects.Fill( pDoc, (BOOL) FALSE, aDocName ); // Nur normale Seiten
+ maTlbObjects.Fill( pDoc, (sal_Bool) sal_False, aDocName ); // Nur normale Seiten
RefreshDocumentLB();
maLbDocs.SelectEntry( aDocShName );
@@ -212,7 +212,7 @@ void SdNavigatorWin::InitTreeLB( const SdDrawDocument* pDoc )
SfxViewFrame* pViewFrame = ( ( pViewShell && pViewShell->GetViewFrame() ) ? pViewShell->GetViewFrame() : SfxViewFrame::Current() );
if( pViewFrame )
- pViewFrame->GetBindings().Invalidate(SID_NAVIGATOR_PAGENAME, TRUE, TRUE);
+ pViewFrame->GetBindings().Invalidate(SID_NAVIGATOR_PAGENAME, sal_True, sal_True);
}
/*************************************************************************
@@ -239,8 +239,8 @@ NavigatorDragType SdNavigatorWin::GetNavigatorDragType()
IMPL_LINK( SdNavigatorWin, SelectToolboxHdl, void *, EMPTYARG )
{
- USHORT nId = maToolbox.GetCurItemId();
- USHORT nSId = 0;
+ sal_uInt16 nId = maToolbox.GetCurItemId();
+ sal_uInt16 nSId = 0;
PageJump ePage = PAGE_NONE;
switch( nId )
@@ -254,7 +254,7 @@ IMPL_LINK( SdNavigatorWin, SelectToolboxHdl, void *, EMPTYARG )
if( nSId > 0 )
{
- SfxBoolItem aItem( nSId, TRUE );
+ SfxBoolItem aItem( nSId, sal_True );
mpBindings->GetDispatcher()->Execute(
nSId, SFX_CALLMODE_SLOT |SFX_CALLMODE_RECORD, &aItem, 0L );
}
@@ -277,7 +277,7 @@ IMPL_LINK( SdNavigatorWin, SelectToolboxHdl, void *, EMPTYARG )
if( ePage != PAGE_NONE )
{
- SfxUInt16Item aItem( SID_NAVIGATOR_PAGE, (UINT16)ePage );
+ SfxUInt16Item aItem( SID_NAVIGATOR_PAGE, (sal_uInt16)ePage );
mpBindings->GetDispatcher()->Execute(
SID_NAVIGATOR_PAGE, SFX_CALLMODE_SLOT | SFX_CALLMODE_RECORD, &aItem, 0L );
}
@@ -299,7 +299,7 @@ IMPL_LINK( SdNavigatorWin, ClickToolboxHdl, ToolBox*, EMPTYARG )
IMPL_LINK( SdNavigatorWin, DropdownClickToolBoxHdl, ToolBox*, pBox )
{
- USHORT nId = maToolbox.GetCurItemId();
+ sal_uInt16 nId = maToolbox.GetCurItemId();
switch( nId )
{
@@ -317,11 +317,11 @@ IMPL_LINK( SdNavigatorWin, DropdownClickToolBoxHdl, ToolBox*, pBox )
0
};
- for( USHORT nID = NAVIGATOR_DRAGTYPE_URL;
+ for( sal_uInt16 nID = NAVIGATOR_DRAGTYPE_URL;
nID < NAVIGATOR_DRAGTYPE_COUNT;
nID++ )
{
- USHORT nRId = GetDragTypeSdResId( (NavigatorDragType)nID );
+ sal_uInt16 nRId = GetDragTypeSdResId( (NavigatorDragType)nID );
if( nRId > 0 )
{
DBG_ASSERT(aHIDs[nID-NAVIGATOR_DRAGTYPE_URL],"HelpId not added!");
@@ -334,12 +334,12 @@ IMPL_LINK( SdNavigatorWin, DropdownClickToolBoxHdl, ToolBox*, pBox )
if( ( pInfo && !pInfo->HasName() ) || !maTlbObjects.IsLinkableSelected() )
{
- pMenu->EnableItem( NAVIGATOR_DRAGTYPE_LINK, FALSE );
- pMenu->EnableItem( NAVIGATOR_DRAGTYPE_URL, FALSE );
+ pMenu->EnableItem( NAVIGATOR_DRAGTYPE_LINK, sal_False );
+ pMenu->EnableItem( NAVIGATOR_DRAGTYPE_URL, sal_False );
meDragType = NAVIGATOR_DRAGTYPE_EMBEDDED;
}
- pMenu->CheckItem( (UINT16)meDragType );
+ pMenu->CheckItem( (sal_uInt16)meDragType );
pMenu->SetSelectHdl( LINK( this, SdNavigatorWin, MenuSelectHdl ) );
pMenu->Execute( this, maToolbox.GetItemRect( nId ), POPUPMENU_EXECUTE_DOWN );
@@ -417,7 +417,7 @@ IMPL_LINK( SdNavigatorWin, SelectDocumentHdl, void *, EMPTYARG )
{
String aStrLb = maLbDocs.GetSelectEntry();
long nPos = maLbDocs.GetSelectEntryPos();
- BOOL bFound = FALSE;
+ sal_Bool bFound = sal_False;
::sd::DrawDocShell* pDocShell = NULL;
NavDocInfo* pInfo = GetDocInfo();
@@ -431,7 +431,7 @@ IMPL_LINK( SdNavigatorWin, SelectDocumentHdl, void *, EMPTYARG )
{
pDocShell = pInfo->mpDocShell;
- bFound = TRUE;
+ bFound = sal_True;
}
if( bFound )
@@ -443,7 +443,7 @@ IMPL_LINK( SdNavigatorWin, SelectDocumentHdl, void *, EMPTYARG )
::sd::DrawDocShell* pNCDocShell = pNonConstDoc->GetDocSh();
String aDocName = pNCDocShell->GetMedium()->GetName();
maTlbObjects.Clear();
- maTlbObjects.Fill( pDoc, (BOOL) FALSE, aDocName ); // Nur normale Seiten
+ maTlbObjects.Fill( pDoc, (sal_Bool) sal_False, aDocName ); // Nur normale Seiten
}
}
@@ -466,7 +466,7 @@ IMPL_LINK( SdNavigatorWin, SelectDocumentHdl, void *, EMPTYARG )
IMPL_LINK( SdNavigatorWin, MenuSelectHdl, Menu *, pMenu )
{
- USHORT nMenuId;
+ sal_uInt16 nMenuId;
if( pMenu )
nMenuId = pMenu->GetCurItemId();
else
@@ -484,7 +484,7 @@ IMPL_LINK( SdNavigatorWin, MenuSelectHdl, Menu *, pMenu )
{
// Fix, um Endlosschleife zu unterbinden
if( maTlbObjects.GetSelectionCount() > 1 )
- maTlbObjects.SelectAll( FALSE );
+ maTlbObjects.SelectAll( sal_False );
maTlbObjects.SetSelectionMode( SINGLE_SELECTION );
}
@@ -503,7 +503,7 @@ IMPL_LINK( SdNavigatorWin, ShapeFilterCallback, Menu *, pMenu )
if (pMenu != NULL)
{
bool bShowAllShapes (maTlbObjects.GetShowAllShapes());
- USHORT nMenuId (pMenu->GetCurItemId());
+ sal_uInt16 nMenuId (pMenu->GetCurItemId());
switch (nMenuId)
{
case nShowNamedShapesFilter:
@@ -585,10 +585,10 @@ void SdNavigatorWin::Resize()
// -----------------------------------------------------------------------
-BOOL SdNavigatorWin::InsertFile(const String& rFileName)
+sal_Bool SdNavigatorWin::InsertFile(const String& rFileName)
{
INetURLObject aURL( rFileName );
- BOOL bReturn = TRUE;
+ sal_Bool bReturn = sal_True;
if( aURL.GetProtocol() == INET_PROT_NOT_VALID )
{
@@ -617,9 +617,9 @@ BOOL SdNavigatorWin::InsertFile(const String& rFileName)
if (aFileName != maDropFileName)
{
- SfxMedium aMed(aFileName, (STREAM_READ | STREAM_SHARE_DENYNONE), FALSE);
+ SfxMedium aMed(aFileName, (STREAM_READ | STREAM_SHARE_DENYNONE), sal_False);
SfxFilterMatcher aMatch( String::CreateFromAscii("simpress") );
- aMed.UseInteractionHandler( TRUE );
+ aMed.UseInteractionHandler( sal_True );
nErr = aMatch.GuessFilter(aMed, &pFilter);
}
@@ -629,7 +629,7 @@ BOOL SdNavigatorWin::InsertFile(const String& rFileName)
// ersteinmal nachgeschaut, ob es einen Storage enthaelt
SfxMedium* pMedium = new SfxMedium( aFileName,
STREAM_READ | STREAM_NOCREATE,
- TRUE); // Download
+ sal_True); // Download
if (pMedium->IsStorage())
{
@@ -646,20 +646,20 @@ BOOL SdNavigatorWin::InsertFile(const String& rFileName)
if( !maTlbObjects.IsEqualToDoc( pDropDoc ) )
{
// Nur normale Seiten
- maTlbObjects.Fill(pDropDoc, (BOOL) FALSE, maDropFileName);
+ maTlbObjects.Fill(pDropDoc, (sal_Bool) sal_False, maDropFileName);
RefreshDocumentLB( &maDropFileName );
}
}
}
else
{
- bReturn = FALSE;
+ bReturn = sal_False;
delete pMedium;
}
}
else
{
- bReturn = FALSE;
+ bReturn = sal_False;
}
}
@@ -670,7 +670,7 @@ BOOL SdNavigatorWin::InsertFile(const String& rFileName)
void SdNavigatorWin::RefreshDocumentLB( const String* pDocName )
{
- USHORT nPos = 0;
+ sal_uInt16 nPos = 0;
if( pDocName )
{
@@ -678,7 +678,7 @@ void SdNavigatorWin::RefreshDocumentLB( const String* pDocName )
maLbDocs.RemoveEntry( 0 );
maLbDocs.InsertEntry( *pDocName, 0 );
- mbDocImported = TRUE;
+ mbDocImported = sal_True;
}
else
{
@@ -695,14 +695,14 @@ void SdNavigatorWin::RefreshDocumentLB( const String* pDocName )
// Liste der DocInfos loeschen
long nCount = mpDocList->Count();
while( nCount-- )
- delete (NavDocInfo*) mpDocList->Remove( (ULONG)0 );
+ delete (NavDocInfo*) mpDocList->Remove( (sal_uLong)0 );
if( mbDocImported )
maLbDocs.InsertEntry( aStr, 0 );
::sd::DrawDocShell* pCurrentDocShell =
PTR_CAST(::sd::DrawDocShell, SfxObjectShell::Current() );
- SfxObjectShell* pSfxDocShell = SfxObjectShell::GetFirst(0, FALSE);
+ SfxObjectShell* pSfxDocShell = SfxObjectShell::GetFirst(0, sal_False);
while( pSfxDocShell )
{
::sd::DrawDocShell* pDocShell = PTR_CAST(::sd::DrawDocShell, pSfxDocShell );
@@ -715,7 +715,7 @@ void SdNavigatorWin::RefreshDocumentLB( const String* pDocName )
if( aStr.Len() )
pInfo->SetName();
else
- pInfo->SetName( FALSE );
+ pInfo->SetName( sal_False );
// z.Z. wird wieder der Name der Shell genommen (also ohne Pfad)
// da Koose es als Fehler ansieht, wenn er Pfad in URL-Notation
// angezeigt wird!
@@ -727,11 +727,11 @@ void SdNavigatorWin::RefreshDocumentLB( const String* pDocName )
if( pDocShell == pCurrentDocShell )
pInfo->SetActive();
else
- pInfo->SetActive( FALSE );
+ pInfo->SetActive( sal_False );
mpDocList->Insert( pInfo, LIST_APPEND );
}
- pSfxDocShell = SfxObjectShell::GetNext( *pSfxDocShell, 0 , FALSE );
+ pSfxDocShell = SfxObjectShell::GetNext( *pSfxDocShell, 0 , sal_False );
}
}
maLbDocs.SelectEntryPos( nPos );
@@ -739,7 +739,7 @@ void SdNavigatorWin::RefreshDocumentLB( const String* pDocName )
//------------------------------------------------------------------------
-USHORT SdNavigatorWin::GetDragTypeSdResId( NavigatorDragType eDT, BOOL bImage )
+sal_uInt16 SdNavigatorWin::GetDragTypeSdResId( NavigatorDragType eDT, sal_Bool bImage )
{
switch( eDT )
{
@@ -785,7 +785,7 @@ NavDocInfo* SdNavigatorWin::GetDocInfo()
long SdNavigatorWin::Notify(NotifyEvent& rNEvt)
{
const KeyEvent* pKEvt = rNEvt.GetKeyEvent();
- long nOK = FALSE;
+ long nOK = sal_False;
if( pKEvt )
{
@@ -794,7 +794,7 @@ long SdNavigatorWin::Notify(NotifyEvent& rNEvt)
if( SdPageObjsTLB::IsInDrag() )
{
// during drag'n'drop we just stop the drag but do not close the navigator
- nOK = TRUE;
+ nOK = sal_True;
}
else
{
@@ -806,7 +806,7 @@ long SdNavigatorWin::Notify(NotifyEvent& rNEvt)
// deletion of the navigator window. Calling the
// parents Notify after this is unsafe. Therefore we
// return now.
- return TRUE;
+ return sal_True;
}
}
}
@@ -827,14 +827,14 @@ long SdNavigatorWin::Notify(NotifyEvent& rNEvt)
void SdNavigatorWin::KeyInput( const KeyEvent& rKEvt )
{
- long nOK = FALSE;
+ long nOK = sal_False;
if (rKEvt.GetKeyCode().GetCode() == KEY_ESCAPE)
{
if( SdPageObjsTLB::IsInDrag() )
{
// during drag'n'drop we just stop the drag but do not close the navigator
- nOK = TRUE;
+ nOK = sal_True;
}
else
{
@@ -862,7 +862,7 @@ void SdNavigatorWin::DataChanged( const DataChangedEvent& rDCEvt )
void SdNavigatorWin::SetDragImage()
{
- maToolbox.SetItemImage( TBI_DRAGTYPE, maToolbox.GetImageList().GetImage( GetDragTypeSdResId( meDragType, TRUE ) ) );
+ maToolbox.SetItemImage( TBI_DRAGTYPE, maToolbox.GetImageList().GetImage( GetDragTypeSdResId( meDragType, sal_True ) ) );
}
void SdNavigatorWin::ApplyImageList()
@@ -884,7 +884,7 @@ void SdNavigatorWin::ApplyImageList()
|*
\************************************************************************/
-SdNavigatorControllerItem::SdNavigatorControllerItem( USHORT _nId,
+SdNavigatorControllerItem::SdNavigatorControllerItem( sal_uInt16 _nId,
SdNavigatorWin* pNavWin,
SfxBindings* _pBindings) :
SfxControllerItem( _nId, *_pBindings ),
@@ -894,14 +894,14 @@ SdNavigatorControllerItem::SdNavigatorControllerItem( USHORT _nId,
// -----------------------------------------------------------------------
-void SdNavigatorControllerItem::StateChanged( USHORT nSId,
+void SdNavigatorControllerItem::StateChanged( sal_uInt16 nSId,
SfxItemState eState, const SfxPoolItem* pItem )
{
if( eState >= SFX_ITEM_AVAILABLE && nSId == SID_NAVIGATOR_STATE )
{
const SfxUInt32Item* pStateItem = PTR_CAST( SfxUInt32Item, pItem );
DBG_ASSERT( pStateItem, "SfxUInt16Item erwartet");
- UINT32 nState = pStateItem->GetValue();
+ sal_uInt32 nState = pStateItem->GetValue();
// Stift
if( nState & NAVBTN_PEN_ENABLED &&
@@ -909,13 +909,13 @@ void SdNavigatorControllerItem::StateChanged( USHORT nSId,
pNavigatorWin->maToolbox.EnableItem( TBI_PEN );
if( nState & NAVBTN_PEN_DISABLED &&
pNavigatorWin->maToolbox.IsItemEnabled( TBI_PEN ) )
- pNavigatorWin->maToolbox.EnableItem( TBI_PEN, FALSE );
+ pNavigatorWin->maToolbox.EnableItem( TBI_PEN, sal_False );
if( nState & NAVBTN_PEN_CHECKED &&
!pNavigatorWin->maToolbox.IsItemChecked( TBI_PEN ) )
pNavigatorWin->maToolbox.CheckItem( TBI_PEN );
if( nState & NAVBTN_PEN_UNCHECKED &&
pNavigatorWin->maToolbox.IsItemChecked( TBI_PEN ) )
- pNavigatorWin->maToolbox.CheckItem( TBI_PEN, FALSE );
+ pNavigatorWin->maToolbox.CheckItem( TBI_PEN, sal_False );
// Nur wenn Doc in LB das Aktive ist
NavDocInfo* pInfo = pNavigatorWin->GetDocInfo();
@@ -927,7 +927,7 @@ void SdNavigatorControllerItem::StateChanged( USHORT nSId,
pNavigatorWin->maToolbox.EnableItem( TBI_FIRST );
if( nState & NAVBTN_FIRST_DISABLED &&
pNavigatorWin->maToolbox.IsItemEnabled( TBI_FIRST ) )
- pNavigatorWin->maToolbox.EnableItem( TBI_FIRST, FALSE );
+ pNavigatorWin->maToolbox.EnableItem( TBI_FIRST, sal_False );
// Prev
if( nState & NAVBTN_PREV_ENABLED &&
@@ -935,7 +935,7 @@ void SdNavigatorControllerItem::StateChanged( USHORT nSId,
pNavigatorWin->maToolbox.EnableItem( TBI_PREVIOUS );
if( nState & NAVBTN_PREV_DISABLED &&
pNavigatorWin->maToolbox.IsItemEnabled( TBI_PREVIOUS ) )
- pNavigatorWin->maToolbox.EnableItem( TBI_PREVIOUS, FALSE );
+ pNavigatorWin->maToolbox.EnableItem( TBI_PREVIOUS, sal_False );
// Last
if( nState & NAVBTN_LAST_ENABLED &&
@@ -943,7 +943,7 @@ void SdNavigatorControllerItem::StateChanged( USHORT nSId,
pNavigatorWin->maToolbox.EnableItem( TBI_LAST );
if( nState & NAVBTN_LAST_DISABLED &&
pNavigatorWin->maToolbox.IsItemEnabled( TBI_LAST ) )
- pNavigatorWin->maToolbox.EnableItem( TBI_LAST, FALSE );
+ pNavigatorWin->maToolbox.EnableItem( TBI_LAST, sal_False );
// Next
if( nState & NAVBTN_NEXT_ENABLED &&
@@ -951,12 +951,12 @@ void SdNavigatorControllerItem::StateChanged( USHORT nSId,
pNavigatorWin->maToolbox.EnableItem( TBI_NEXT );
if( nState & NAVBTN_NEXT_DISABLED &&
pNavigatorWin->maToolbox.IsItemEnabled( TBI_NEXT ) )
- pNavigatorWin->maToolbox.EnableItem( TBI_NEXT, FALSE );
+ pNavigatorWin->maToolbox.EnableItem( TBI_NEXT, sal_False );
if( nState & NAVTLB_UPDATE )
{
// InitTlb; Wird ueber Slot initiiert
- SfxBoolItem aItem( SID_NAVIGATOR_INIT, TRUE );
+ SfxBoolItem aItem( SID_NAVIGATOR_INIT, sal_True );
GetBindings().GetDispatcher()->Execute(
SID_NAVIGATOR_INIT, SFX_CALLMODE_ASYNCHRON | SFX_CALLMODE_RECORD, &aItem, 0L );
}
@@ -970,7 +970,7 @@ void SdNavigatorControllerItem::StateChanged( USHORT nSId,
|*
\************************************************************************/
-SdPageNameControllerItem::SdPageNameControllerItem( USHORT _nId,
+SdPageNameControllerItem::SdPageNameControllerItem( sal_uInt16 _nId,
SdNavigatorWin* pNavWin,
SfxBindings* _pBindings) :
SfxControllerItem( _nId, *_pBindings ),
@@ -980,7 +980,7 @@ SdPageNameControllerItem::SdPageNameControllerItem( USHORT _nId,
// -----------------------------------------------------------------------
-void SdPageNameControllerItem::StateChanged( USHORT nSId,
+void SdPageNameControllerItem::StateChanged( sal_uInt16 nSId,
SfxItemState eState, const SfxPoolItem* pItem )
{
if( eState >= SFX_ITEM_AVAILABLE && nSId == SID_NAVIGATOR_PAGENAME )
@@ -998,7 +998,7 @@ void SdPageNameControllerItem::StateChanged( USHORT nSId,
if( pNavigatorWin->maTlbObjects.GetSelectionMode() == MULTIPLE_SELECTION )
{
// Weil sonst immer dazuselektiert wird
- pNavigatorWin->maTlbObjects.SelectAll( FALSE );
+ pNavigatorWin->maTlbObjects.SelectAll( sal_False );
}
pNavigatorWin->maTlbObjects.SelectEntry( aPageName );
}
diff --git a/sd/source/ui/dlg/paragr.cxx b/sd/source/ui/dlg/paragr.cxx
index e407efc5d443..c868e874a57b 100644..100755
--- a/sd/source/ui/dlg/paragr.cxx
+++ b/sd/source/ui/dlg/paragr.cxx
@@ -56,9 +56,9 @@ public:
~SdParagraphNumTabPage();
static SfxTabPage* Create( Window* pParent, const SfxItemSet& rSet );
- static USHORT* GetRanges();
+ static sal_uInt16* GetRanges();
- virtual BOOL FillItemSet( SfxItemSet& rSet );
+ virtual sal_Bool FillItemSet( SfxItemSet& rSet );
virtual void Reset( const SfxItemSet& rSet );
private:
@@ -92,9 +92,9 @@ SfxTabPage* SdParagraphNumTabPage::Create(Window *pParent, const SfxItemSet & rA
return new SdParagraphNumTabPage( pParent, rAttrSet );
}
-USHORT* SdParagraphNumTabPage::GetRanges()
+sal_uInt16* SdParagraphNumTabPage::GetRanges()
{
- static USHORT __FAR_DATA aRange[] =
+ static sal_uInt16 __FAR_DATA aRange[] =
{
ATTR_PARANUMBERING_START, ATTR_PARANUMBERING_END,
0
@@ -103,15 +103,15 @@ USHORT* SdParagraphNumTabPage::GetRanges()
return aRange;
}
-BOOL SdParagraphNumTabPage::FillItemSet( SfxItemSet& rSet )
+sal_Bool SdParagraphNumTabPage::FillItemSet( SfxItemSet& rSet )
{
if(maNewStartCB.GetState() != maNewStartCB.GetSavedValue() ||
maNewStartNumberCB.GetState() != maNewStartNumberCB.GetSavedValue()||
maNewStartNF.GetText() != maNewStartNF.GetSavedValue())
{
mbModified = true;
- BOOL bNewStartChecked = STATE_CHECK == maNewStartCB.GetState();
- BOOL bNumberNewStartChecked = STATE_CHECK == maNewStartNumberCB.GetState();
+ sal_Bool bNewStartChecked = STATE_CHECK == maNewStartCB.GetState();
+ sal_Bool bNumberNewStartChecked = STATE_CHECK == maNewStartNumberCB.GetState();
rSet.Put(SfxBoolItem(ATTR_NUMBER_NEWSTART, bNewStartChecked));
const sal_Int16 nStartAt = (sal_Int16)maNewStartNF.GetValue();
@@ -128,7 +128,7 @@ void SdParagraphNumTabPage::Reset( const SfxItemSet& rSet )
{
const SfxBoolItem& rStart = (const SfxBoolItem&)rSet.Get(ATTR_NUMBER_NEWSTART);
maNewStartCB.SetState( rStart.GetValue() ? STATE_CHECK : STATE_NOCHECK );
- maNewStartCB.EnableTriState(FALSE);
+ maNewStartCB.EnableTriState(sal_False);
}
else
{
@@ -146,7 +146,7 @@ void SdParagraphNumTabPage::Reset( const SfxItemSet& rSet )
nNewStart = 1;
maNewStartNF.SetValue(nNewStart);
- maNewStartNumberCB.EnableTriState(FALSE);
+ maNewStartNumberCB.EnableTriState(sal_False);
}
else
{
@@ -155,12 +155,12 @@ void SdParagraphNumTabPage::Reset( const SfxItemSet& rSet )
ImplNewStartHdl(&maNewStartCB);
maNewStartNF.SaveValue();
maNewStartNumberCB.SaveValue();
- mbModified = FALSE;
+ mbModified = sal_False;
}
IMPL_LINK( SdParagraphNumTabPage, ImplNewStartHdl, CheckBox*, EMPTYARG )
{
- BOOL bEnable = maNewStartCB.IsChecked();
+ sal_Bool bEnable = maNewStartCB.IsChecked();
maNewStartNumberCB.Enable(bEnable);
maNewStartNF.Enable(bEnable && maNewStartNumberCB.IsChecked());
return 0;
@@ -182,7 +182,7 @@ SdParagraphDlg::SdParagraphDlg( Window* pParent, const SfxItemSet* pAttr )
AddTabPage( RID_SVXPAGE_ALIGN_PARAGRAPH );
- static const BOOL bShowParaNumbering = ( getenv( "SD_SHOW_NUMBERING_PAGE" ) != NULL );
+ static const sal_Bool bShowParaNumbering = ( getenv( "SD_SHOW_NUMBERING_PAGE" ) != NULL );
if( bShowParaNumbering )
AddTabPage( RID_TABPAGE_PARA_NUMBERING, SdParagraphNumTabPage::Create, SdParagraphNumTabPage::GetRanges );
else
diff --git a/sd/source/ui/dlg/present.cxx b/sd/source/ui/dlg/present.cxx
index 473d2f4b452b..1ad9e29d4662 100644..100755
--- a/sd/source/ui/dlg/present.cxx
+++ b/sd/source/ui/dlg/present.cxx
@@ -113,7 +113,7 @@ SdStartPresentationDlg::SdStartPresentationDlg( Window* pWindow,
// Listbox mit Seitennamen fuellen
rPageNames.First();
- for( UINT16 i = 0;
+ for( sal_uInt16 i = 0;
i < rPageNames.Count();
i++ )
{
@@ -123,7 +123,7 @@ SdStartPresentationDlg::SdStartPresentationDlg( Window* pWindow,
if( pCustomShowList )
{
- USHORT nPosToSelect = (USHORT) pCustomShowList->GetCurPos();
+ sal_uInt16 nPosToSelect = (sal_uInt16) pCustomShowList->GetCurPos();
SdCustomShow* pCustomShow;
// Listbox mit CustomShows fuellen
for( pCustomShow = (SdCustomShow*) pCustomShowList->First();
@@ -154,8 +154,8 @@ SdStartPresentationDlg::SdStartPresentationDlg( Window* pWindow,
aCbxChangePage.Check( ( ( const SfxBoolItem& ) rOutAttrs.Get( ATTR_PRESENT_CHANGE_PAGE ) ).GetValue() );
aCbxAlwaysOnTop.Check( ( ( const SfxBoolItem& ) rOutAttrs.Get( ATTR_PRESENT_ALWAYS_ON_TOP ) ).GetValue() );
- const BOOL bEndless = ( ( const SfxBoolItem& ) rOutAttrs.Get( ATTR_PRESENT_ENDLESS ) ).GetValue();
- const BOOL bWindow = !( ( const SfxBoolItem& ) rOutAttrs.Get( ATTR_PRESENT_FULLSCREEN ) ).GetValue();
+ const sal_Bool bEndless = ( ( const SfxBoolItem& ) rOutAttrs.Get( ATTR_PRESENT_ENDLESS ) ).GetValue();
+ const sal_Bool bWindow = !( ( const SfxBoolItem& ) rOutAttrs.Get( ATTR_PRESENT_FULLSCREEN ) ).GetValue();
const long nPause = ( ( const SfxUInt32Item& ) rOutAttrs.Get( ATTR_PRESENT_PAUSE_TIMEOUT ) ).GetValue();
aTmfPause.SetTime( Time( 0, 0, nPause ) );
@@ -167,11 +167,11 @@ SdStartPresentationDlg::SdStartPresentationDlg( Window* pWindow,
aCbxAutoLogo.Check( ( ( const SfxBoolItem& ) rOutAttrs.Get( ATTR_PRESENT_SHOW_PAUSELOGO ) ).GetValue() );
if( bWindow )
- aRbtWindow.Check( TRUE );
+ aRbtWindow.Check( sal_True );
else if( bEndless )
- aRbtAuto.Check( TRUE );
+ aRbtAuto.Check( sal_True );
else
- aRbtStandard.Check( TRUE );
+ aRbtStandard.Check( sal_True );
InitMonitorSettings();
@@ -232,7 +232,7 @@ void SdStartPresentationDlg::InitMonitorSettings()
else
nSelected--;
- maLBMonitor.SelectEntryPos( (USHORT)nSelected );
+ maLBMonitor.SelectEntryPos( (sal_uInt16)nSelected );
}
}
catch( Exception& )
@@ -260,7 +260,7 @@ void SdStartPresentationDlg::GetAttr( SfxItemSet& rAttr )
rAttr.Put( SfxUInt32Item ( ATTR_PRESENT_PAUSE_TIMEOUT, aTmfPause.GetTime().GetMSFromTime() / 1000 ) );
rAttr.Put( SfxBoolItem ( ATTR_PRESENT_SHOW_PAUSELOGO, aCbxAutoLogo.IsChecked() ) );
- USHORT nPos = maLBMonitor.GetSelectEntryPos();
+ sal_uInt16 nPos = maLBMonitor.GetSelectEntryPos();
if( nPos != LISTBOX_ENTRY_NOTFOUND )
rAttr.Put( SfxInt32Item ( ATTR_PRESENT_DISPLAY, nPos + 1 ) );
@@ -298,8 +298,8 @@ IMPL_LINK( SdStartPresentationDlg, ClickWindowPresentationHdl, void *, EMPTYARG
if( bWindow )
{
- aCbxAlwaysOnTop.Enable( FALSE );
- aCbxAlwaysOnTop.Check( FALSE );
+ aCbxAlwaysOnTop.Enable( sal_False );
+ aCbxAlwaysOnTop.Check( sal_False );
}
else
aCbxAlwaysOnTop.Enable();
diff --git a/sd/source/ui/dlg/prltempl.cxx b/sd/source/ui/dlg/prltempl.cxx
index 98667c3362cf..b9e48dab4a6f 100644..100755
--- a/sd/source/ui/dlg/prltempl.cxx
+++ b/sd/source/ui/dlg/prltempl.cxx
@@ -84,8 +84,8 @@ SdPresLayoutTemplateDlg::SdPresLayoutTemplateDlg( SfxObjectShell* pDocSh,
if( IS_OUTLINE(ePO))
{
// Leider sind die Itemsets unserer Stylesheets nicht discret..
- const USHORT* pPtr = pOrgSet->GetRanges();
- USHORT p1, p2;
+ const sal_uInt16* pPtr = pOrgSet->GetRanges();
+ sal_uInt16 p1, p2;
while( *pPtr )
{
p1 = pPtr[0];
@@ -115,14 +115,14 @@ SdPresLayoutTemplateDlg::SdPresLayoutTemplateDlg( SfxObjectShell* pDocSh,
// Fals in diesem Stylesheet kein Bullet Item ist, holen wir uns
// das aus dem 'Outline 1' Stylesheet.
- if( SFX_ITEM_SET != aInputSet.GetItemState(EE_PARA_NUMBULLET, FALSE, &pItem ))
+ if( SFX_ITEM_SET != aInputSet.GetItemState(EE_PARA_NUMBULLET, sal_False, &pItem ))
{
String aStyleName((SdResId(STR_PSEUDOSHEET_OUTLINE)));
aStyleName.AppendAscii( RTL_CONSTASCII_STRINGPARAM( " 1" ) );
SfxStyleSheetBase* pFirstStyleSheet = pSSPool->Find( aStyleName, SD_STYLE_FAMILY_PSEUDO);
if(pFirstStyleSheet)
- if( SFX_ITEM_SET == pFirstStyleSheet->GetItemSet().GetItemState(EE_PARA_NUMBULLET, FALSE, &pItem) )
+ if( SFX_ITEM_SET == pFirstStyleSheet->GetItemSet().GetItemState(EE_PARA_NUMBULLET, sal_False, &pItem) )
aInputSet.Put( *pItem );
}
@@ -255,7 +255,7 @@ SdPresLayoutTemplateDlg::~SdPresLayoutTemplateDlg()
// -----------------------------------------------------------------------
-void SdPresLayoutTemplateDlg::PageCreated( USHORT nId, SfxTabPage &rPage )
+void SdPresLayoutTemplateDlg::PageCreated( sal_uInt16 nId, SfxTabPage &rPage )
{ SfxAllItemSet aSet(*(aInputSet.GetPool()));
switch( nId )
{
@@ -324,7 +324,7 @@ const SfxItemSet* SdPresLayoutTemplateDlg::GetOutputItemSet() const
pOutSet->Put( *SfxTabDialog::GetOutputItemSet() );
const SvxNumBulletItem *pSvxNumBulletItem = NULL;
- if( SFX_ITEM_SET == pOutSet->GetItemState(EE_PARA_NUMBULLET, FALSE, (const SfxPoolItem**)&pSvxNumBulletItem ))
+ if( SFX_ITEM_SET == pOutSet->GetItemState(EE_PARA_NUMBULLET, sal_False, (const SfxPoolItem**)&pSvxNumBulletItem ))
SdBulletMapper::MapFontsInNumRule( *pSvxNumBulletItem->GetNumRule(), *pOutSet );
return pOutSet;
}
@@ -334,7 +334,7 @@ const SfxItemSet* SdPresLayoutTemplateDlg::GetOutputItemSet() const
// ---------------------------------------------------------------------
// ---------------------------------------------------------------------
-USHORT SdPresLayoutTemplateDlg::GetOutlineLevel() const
+sal_uInt16 SdPresLayoutTemplateDlg::GetOutlineLevel() const
{
switch( ePO )
{
@@ -348,7 +348,7 @@ USHORT SdPresLayoutTemplateDlg::GetOutlineLevel() const
case PO_OUTLINE_8: return 7;
case PO_OUTLINE_9: return 8;
default:
- DBG_ASSERT( FALSE, "Falscher Po! [CL]");
+ DBG_ASSERT( sal_False, "Falscher Po! [CL]");
}
return 0;
}
diff --git a/sd/source/ui/dlg/prntopts.cxx b/sd/source/ui/dlg/prntopts.cxx
index 3c9aad38c332..c792b1554e5b 100755
--- a/sd/source/ui/dlg/prntopts.cxx
+++ b/sd/source/ui/dlg/prntopts.cxx
@@ -109,7 +109,7 @@ SdPrintOptions::~SdPrintOptions()
// -----------------------------------------------------------------------
-BOOL SdPrintOptions::FillItemSet( SfxItemSet& rAttrs )
+sal_Bool SdPrintOptions::FillItemSet( SfxItemSet& rAttrs )
{
if( aCbxDraw.GetSavedValue() != aCbxDraw.IsChecked() ||
aCbxNotes.GetSavedValue() != aCbxNotes.IsChecked() ||
@@ -146,7 +146,7 @@ BOOL SdPrintOptions::FillItemSet( SfxItemSet& rAttrs )
aOptions.GetOptionsPrint().SetBackPage( aCbxBack.IsChecked() );
aOptions.GetOptionsPrint().SetPaperbin( aCbxPaperbin.IsChecked() );
- UINT16 nQuality = 0; // Standard, also Color
+ sal_uInt16 nQuality = 0; // Standard, also Color
if( aRbtGrayscale.IsChecked() )
nQuality = 1;
if( aRbtBlackWhite.IsChecked() )
@@ -155,9 +155,9 @@ BOOL SdPrintOptions::FillItemSet( SfxItemSet& rAttrs )
rAttrs.Put( aOptions );
- return( TRUE );
+ return( sal_True );
}
- return( FALSE );
+ return( sal_False );
}
// -----------------------------------------------------------------------
@@ -165,7 +165,7 @@ BOOL SdPrintOptions::FillItemSet( SfxItemSet& rAttrs )
void SdPrintOptions::Reset( const SfxItemSet& rAttrs )
{
const SdOptionsPrintItem* pPrintOpts = NULL;
- if( SFX_ITEM_SET == rAttrs.GetItemState( ATTR_OPTIONS_PRINT, FALSE,
+ if( SFX_ITEM_SET == rAttrs.GetItemState( ATTR_OPTIONS_PRINT, sal_False,
(const SfxPoolItem**) &pPrintOpts ) )
{
aCbxDraw.Check( pPrintOpts->GetOptionsPrint().IsDraw() );
@@ -190,7 +190,7 @@ void SdPrintOptions::Reset( const SfxItemSet& rAttrs )
aRbtDefault.Check();
}
- UINT16 nQuality = pPrintOpts->GetOptionsPrint().GetOutputQuality();
+ sal_uInt16 nQuality = pPrintOpts->GetOptionsPrint().GetOutputQuality();
if( nQuality == 0 )
aRbtColor.Check();
else if( nQuality == 1 )
@@ -300,7 +300,7 @@ void SdPrintOptions::PageCreated (SfxAllItemSet
SFX_ITEMSET_ARG (&aSet,pFlagItem,SfxUInt32Item,SID_SDMODE_FLAG,sal_False);
if (pFlagItem)
{
- UINT32 nFlags=pFlagItem->GetValue();
+ sal_uInt32 nFlags=pFlagItem->GetValue();
if ( ( nFlags & SD_DRAW_MODE ) == SD_DRAW_MODE )
SetDrawMode();
}
diff --git a/sd/source/ui/dlg/sddlgfact.cxx b/sd/source/ui/dlg/sddlgfact.cxx
index 9feb7507bd3f..0314697a3778 100755
--- a/sd/source/ui/dlg/sddlgfact.cxx
+++ b/sd/source/ui/dlg/sddlgfact.cxx
@@ -90,18 +90,18 @@ void AbstractCopyDlg_Impl::GetAttr( SfxItemSet& rOutAttrs )
// AbstractCopyDlg_Impl end
//AbstractSdCustomShowDlg_Impl begin
-BOOL AbstractSdCustomShowDlg_Impl::IsModified() const
+sal_Bool AbstractSdCustomShowDlg_Impl::IsModified() const
{
return pDlg->IsModified();
}
-BOOL AbstractSdCustomShowDlg_Impl::IsCustomShow() const
+sal_Bool AbstractSdCustomShowDlg_Impl::IsCustomShow() const
{
return pDlg->IsCustomShow();
}
// AbstractSdCustomShowDlg_Impl end
// AbstractTabDialog_Impl begin
-void AbstractTabDialog_Impl::SetCurPageId( USHORT nId )
+void AbstractTabDialog_Impl::SetCurPageId( sal_uInt16 nId )
{
pDlg->SetCurPageId( nId );
}
@@ -109,7 +109,7 @@ const SfxItemSet* AbstractTabDialog_Impl::GetOutputItemSet() const
{
return pDlg->GetOutputItemSet();
}
-const USHORT* AbstractTabDialog_Impl::GetInputRanges(const SfxItemPool& pItem )
+const sal_uInt16* AbstractTabDialog_Impl::GetInputRanges(const SfxItemPool& pItem )
{
return pDlg->GetInputRanges( pItem );
}
@@ -131,7 +131,7 @@ String AbstractTabDialog_Impl::GetText() const
// --------------------------------------------------------------------
// AbstractBulletDialog_Impl begin
-void AbstractBulletDialog_Impl::SetCurPageId( USHORT nId )
+void AbstractBulletDialog_Impl::SetCurPageId( sal_uInt16 nId )
{
static_cast< ::sd::OutlineBulletDlg*>(pDlg)->SetCurPageId( nId );
}
@@ -139,7 +139,7 @@ const SfxItemSet* AbstractBulletDialog_Impl::GetOutputItemSet() const
{
return static_cast< ::sd::OutlineBulletDlg*>(pDlg)->GetOutputItemSet();
}
-const USHORT* AbstractBulletDialog_Impl::GetInputRanges(const SfxItemPool& pItem )
+const sal_uInt16* AbstractBulletDialog_Impl::GetInputRanges(const SfxItemPool& pItem )
{
return static_cast< ::sd::OutlineBulletDlg*>(pDlg)->GetInputRanges( pItem );
}
@@ -160,7 +160,7 @@ String AbstractBulletDialog_Impl::GetText() const
// --------------------------------------------------------------------
-void SdPresLayoutTemplateDlg_Impl::SetCurPageId( USHORT nId )
+void SdPresLayoutTemplateDlg_Impl::SetCurPageId( sal_uInt16 nId )
{
pDlg->SetCurPageId( nId );
}
@@ -170,7 +170,7 @@ const SfxItemSet* SdPresLayoutTemplateDlg_Impl::GetOutputItemSet() const
return pDlg->GetOutputItemSet();
}
-const USHORT* SdPresLayoutTemplateDlg_Impl::GetInputRanges(const SfxItemPool& pItem )
+const sal_uInt16* SdPresLayoutTemplateDlg_Impl::GetInputRanges(const SfxItemPool& pItem )
{
return pDlg->GetInputRanges( pItem );
}
@@ -201,7 +201,7 @@ OutputType AbstractAssistentDlg_Impl::GetOutputMedium() const
{
return pDlg->GetOutputMedium();
}
-BOOL AbstractAssistentDlg_Impl::IsSummary() const
+sal_Bool AbstractAssistentDlg_Impl::IsSummary() const
{
return pDlg->IsSummary();
}
@@ -213,11 +213,11 @@ String AbstractAssistentDlg_Impl::GetDocPath() const
{
return pDlg->GetDocPath();
}
-BOOL AbstractAssistentDlg_Impl::GetStartWithFlag() const
+sal_Bool AbstractAssistentDlg_Impl::GetStartWithFlag() const
{
return pDlg->GetStartWithFlag();
}
-BOOL AbstractAssistentDlg_Impl::IsDocEmpty() const
+sal_Bool AbstractAssistentDlg_Impl::IsDocEmpty() const
{
return pDlg->IsDocEmpty();
}
@@ -251,7 +251,7 @@ void AbstractSdSnapLineDlg_Impl::HideDeleteBtn()
{
pDlg->HideDeleteBtn();
}
-void AbstractSdSnapLineDlg_Impl::SetInputFields(BOOL bEnableX, BOOL bEnableY)
+void AbstractSdSnapLineDlg_Impl::SetInputFields(sal_Bool bEnableX, sal_Bool bEnableY)
{
pDlg->SetInputFields(bEnableX, bEnableY);
}
@@ -273,7 +273,7 @@ void AbstractSdInsertLayerDlg_Impl::SetHelpId( const rtl::OString& rHelpId )
// AbstractSdInsertLayerDlg_Impl end
//AbstractSdInsertPasteDlg_Impl begin
-BOOL AbstractSdInsertPasteDlg_Impl::IsInsertBefore() const
+sal_Bool AbstractSdInsertPasteDlg_Impl::IsInsertBefore() const
{
return pDlg->IsInsertBefore();
}
@@ -284,15 +284,15 @@ BOOL AbstractSdInsertPasteDlg_Impl::IsInsertBefore() const
{
return (::Window*)pDlg;
}
-List* AbstractSdInsertPagesObjsDlg_Impl::GetList( USHORT nType )
+List* AbstractSdInsertPagesObjsDlg_Impl::GetList( sal_uInt16 nType )
{
return pDlg->GetList( nType );
}
-BOOL AbstractSdInsertPagesObjsDlg_Impl::IsLink()
+sal_Bool AbstractSdInsertPagesObjsDlg_Impl::IsLink()
{
return pDlg->IsLink();
}
-BOOL AbstractSdInsertPagesObjsDlg_Impl::IsRemoveUnnessesaryMasterPages() const
+sal_Bool AbstractSdInsertPagesObjsDlg_Impl::IsRemoveUnnessesaryMasterPages() const
{
return pDlg->IsRemoveUnnessesaryMasterPages();
}
@@ -303,15 +303,15 @@ void AbstractMorphDlg_Impl::SaveSettings() const
{
pDlg->SaveSettings();
}
-USHORT AbstractMorphDlg_Impl::GetFadeSteps() const
+sal_uInt16 AbstractMorphDlg_Impl::GetFadeSteps() const
{
return pDlg->GetFadeSteps();
}
-BOOL AbstractMorphDlg_Impl::IsAttributeFade() const
+sal_Bool AbstractMorphDlg_Impl::IsAttributeFade() const
{
return pDlg->IsAttributeFade();
}
-BOOL AbstractMorphDlg_Impl::IsOrientationFade() const
+sal_Bool AbstractMorphDlg_Impl::IsOrientationFade() const
{
return pDlg->IsOrientationFade();
}
@@ -385,8 +385,8 @@ VclAbstractDialog * SdAbstractDialogFactory_Impl::CreateBreakDlg(
::Window* pWindow,
::sd::DrawView* pDrView,
::sd::DrawDocShell* pShell,
- ULONG nSumActionCount,
- ULONG nObjCount ) //add for BreakDlg
+ sal_uLong nSumActionCount,
+ sal_uLong nObjCount ) //add for BreakDlg
{
return new VclAbstractDialog_Impl( new ::sd::BreakDlg( pWindow, pDrView, pShell, nSumActionCount, nObjCount ) );
}
@@ -415,14 +415,14 @@ SfxAbstractTabDialog * SdAbstractDialogFactory_Impl::CreateSdTabCharDialog( ::W
}
-SfxAbstractTabDialog * SdAbstractDialogFactory_Impl::CreateSdTabPageDialog( ::Window* pParent, const SfxItemSet* pAttr, SfxObjectShell* pDocShell, BOOL bAreaPage )
+SfxAbstractTabDialog * SdAbstractDialogFactory_Impl::CreateSdTabPageDialog( ::Window* pParent, const SfxItemSet* pAttr, SfxObjectShell* pDocShell, sal_Bool bAreaPage )
{
return new AbstractTabDialog_Impl( new SdPageDlg( pDocShell, pParent, pAttr, bAreaPage ) );
}
// add for SdCharDlg end
//add for AssistentDlg begin
-AbstractAssistentDlg * SdAbstractDialogFactory_Impl::CreateAssistentDlg( ::Window* pParent, BOOL bAutoPilot)
+AbstractAssistentDlg * SdAbstractDialogFactory_Impl::CreateAssistentDlg( ::Window* pParent, sal_Bool bAutoPilot)
{
return new AbstractAssistentDlg_Impl( new AssistentDlg( pParent, bAutoPilot ) );
}
diff --git a/sd/source/ui/dlg/sddlgfact.hxx b/sd/source/ui/dlg/sddlgfact.hxx
index a8c1de96de62..71ddee16d759 100755
--- a/sd/source/ui/dlg/sddlgfact.hxx
+++ b/sd/source/ui/dlg/sddlgfact.hxx
@@ -77,8 +77,8 @@ class SdCustomShowDlg;
class AbstractSdCustomShowDlg_Impl : public AbstractSdCustomShowDlg
{
DECL_ABSTDLG_BASE(AbstractSdCustomShowDlg_Impl,SdCustomShowDlg)
- virtual BOOL IsModified() const ;
- virtual BOOL IsCustomShow() const ;
+ virtual sal_Bool IsModified() const ;
+ virtual sal_Bool IsCustomShow() const ;
};
//add for SdCharDlg begin
@@ -86,9 +86,9 @@ class SfxTabDialog;
class AbstractTabDialog_Impl : public SfxAbstractTabDialog
{
DECL_ABSTDLG_BASE( AbstractTabDialog_Impl,SfxTabDialog )
- virtual void SetCurPageId( USHORT nId );
+ virtual void SetCurPageId( sal_uInt16 nId );
virtual const SfxItemSet* GetOutputItemSet() const;
- virtual const USHORT* GetInputRanges( const SfxItemPool& pItem );
+ virtual const sal_uInt16* GetInputRanges( const SfxItemPool& pItem );
virtual void SetInputSet( const SfxItemSet* pInSet );
//From class Window.
virtual void SetText( const XubString& rStr );
@@ -102,9 +102,9 @@ class SfxTabDialog;
class AbstractBulletDialog_Impl : public SfxAbstractTabDialog
{
DECL_ABSTDLG_BASE( AbstractBulletDialog_Impl,SfxTabDialog )
- virtual void SetCurPageId( USHORT nId );
+ virtual void SetCurPageId( sal_uInt16 nId );
virtual const SfxItemSet* GetOutputItemSet() const;
- virtual const USHORT* GetInputRanges( const SfxItemPool& pItem );
+ virtual const sal_uInt16* GetInputRanges( const SfxItemPool& pItem );
virtual void SetInputSet( const SfxItemSet* pInSet );
//From class Window.
virtual void SetText( const XubString& rStr );
@@ -116,9 +116,9 @@ class SdPresLayoutTemplateDlg;
class SdPresLayoutTemplateDlg_Impl : public SfxAbstractTabDialog
{
DECL_ABSTDLG_BASE( SdPresLayoutTemplateDlg_Impl,SdPresLayoutTemplateDlg )
- virtual void SetCurPageId( USHORT nId );
+ virtual void SetCurPageId( sal_uInt16 nId );
virtual const SfxItemSet* GetOutputItemSet() const;
- virtual const USHORT* GetInputRanges( const SfxItemPool& pItem );
+ virtual const sal_uInt16* GetInputRanges( const SfxItemPool& pItem );
virtual void SetInputSet( const SfxItemSet* pInSet );
//From class Window.
virtual void SetText( const XubString& rStr );
@@ -132,11 +132,11 @@ class AbstractAssistentDlg_Impl : public AbstractAssistentDlg
DECL_ABSTDLG_BASE(AbstractAssistentDlg_Impl,AssistentDlg)
virtual SfxObjectShellLock GetDocument();
virtual OutputType GetOutputMedium() const;
- virtual BOOL IsSummary() const;
+ virtual sal_Bool IsSummary() const;
virtual StartType GetStartType() const;
virtual String GetDocPath() const;
- virtual BOOL GetStartWithFlag() const;
- virtual BOOL IsDocEmpty() const;
+ virtual sal_Bool GetStartWithFlag() const;
+ virtual sal_Bool IsDocEmpty() const;
virtual String GetPassword();
};
@@ -157,7 +157,7 @@ class AbstractSdSnapLineDlg_Impl : public AbstractSdSnapLineDlg
virtual void GetAttr(SfxItemSet& rOutAttrs);
virtual void HideRadioGroup();
virtual void HideDeleteBtn();
- virtual void SetInputFields(BOOL bEnableX, BOOL bEnableY);
+ virtual void SetInputFields(sal_Bool bEnableX, sal_Bool bEnableY);
//from class Window
virtual void SetText( const XubString& rStr );
};
@@ -177,7 +177,7 @@ class SdInsertPasteDlg;
class AbstractSdInsertPasteDlg_Impl : public AbstractSdInsertPasteDlg
{
DECL_ABSTDLG_BASE(AbstractSdInsertPasteDlg_Impl,SdInsertPasteDlg)
- virtual BOOL IsInsertBefore() const;
+ virtual sal_Bool IsInsertBefore() const;
};
// add for SdInsertPagesObjsDlg
@@ -186,9 +186,9 @@ class AbstractSdInsertPagesObjsDlg_Impl : public AbstractSdInsertPagesObjsDlg
{
DECL_ABSTDLG_BASE(AbstractSdInsertPagesObjsDlg_Impl,SdInsertPagesObjsDlg)
virtual ::Window * GetWindow(); //this method is added for return a Window type pointer
- virtual List* GetList( USHORT nType );
- virtual BOOL IsLink();
- virtual BOOL IsRemoveUnnessesaryMasterPages() const;
+ virtual List* GetList( sal_uInt16 nType );
+ virtual sal_Bool IsLink();
+ virtual sal_Bool IsRemoveUnnessesaryMasterPages() const;
};
// add for MorphDlg
@@ -196,9 +196,9 @@ class AbstractMorphDlg_Impl : public AbstractMorphDlg
{
DECL_ABSTDLG_BASE(AbstractMorphDlg_Impl,::sd::MorphDlg)
virtual void SaveSettings() const;
- virtual USHORT GetFadeSteps() const;
- virtual BOOL IsAttributeFade() const ;
- virtual BOOL IsOrientationFade() const ;
+ virtual sal_uInt16 GetFadeSteps() const;
+ virtual sal_Bool IsAttributeFade() const ;
+ virtual sal_Bool IsOrientationFade() const ;
};
// add for SdStartPresentationDlg
@@ -258,12 +258,12 @@ class SdAbstractDialogFactory_Impl : public SdAbstractDialogFactory
{
public:
- virtual VclAbstractDialog* CreateBreakDlg(::Window* pWindow, ::sd::DrawView* pDrView, ::sd::DrawDocShell* pShell, ULONG nSumActionCount, ULONG nObjCount );
+ virtual VclAbstractDialog* CreateBreakDlg(::Window* pWindow, ::sd::DrawView* pDrView, ::sd::DrawDocShell* pShell, sal_uLong nSumActionCount, sal_uLong nObjCount );
virtual AbstractCopyDlg* CreateCopyDlg( ::Window* pWindow, const SfxItemSet& rInAttrs, XColorTable* pColTab, ::sd::View* pView );
virtual AbstractSdCustomShowDlg* CreateSdCustomShowDlg( ::Window* pWindow, SdDrawDocument& rDrawDoc );
virtual SfxAbstractTabDialog* CreateSdTabCharDialog( ::Window* pParent, const SfxItemSet* pAttr, SfxObjectShell* pDocShell );
- virtual SfxAbstractTabDialog* CreateSdTabPageDialog( ::Window* pParent, const SfxItemSet* pAttr, SfxObjectShell* pDocShell, BOOL bAreaPage = TRUE );
- virtual AbstractAssistentDlg* CreateAssistentDlg( ::Window* pParent, BOOL bAutoPilot);
+ virtual SfxAbstractTabDialog* CreateSdTabPageDialog( ::Window* pParent, const SfxItemSet* pAttr, SfxObjectShell* pDocShell, sal_Bool bAreaPage = sal_True );
+ virtual AbstractAssistentDlg* CreateAssistentDlg( ::Window* pParent, sal_Bool bAutoPilot);
virtual AbstractSdModifyFieldDlg* CreateSdModifyFieldDlg( ::Window* pWindow, const SvxFieldData* pInField, const SfxItemSet& rSet );
virtual AbstractSdSnapLineDlg* CreateSdSnapLineDlg( ::Window* pWindow, const SfxItemSet& rInAttrs, ::sd::View* pView);
virtual AbstractSdInsertLayerDlg* CreateSdInsertLayerDlg( ::Window* pWindow, const SfxItemSet& rInAttrs, bool bDeletable, String aStr );
diff --git a/sd/source/ui/dlg/sdpreslt.cxx b/sd/source/ui/dlg/sdpreslt.cxx
index c1d81bc073b9..2a4f05c72848 100644..100755
--- a/sd/source/ui/dlg/sdpreslt.cxx
+++ b/sd/source/ui/dlg/sdpreslt.cxx
@@ -115,17 +115,17 @@ void SdPresLayoutDlg::Reset()
long nName;
// MasterPage austauschen
- if( mrOutAttrs.GetItemState( ATTR_PRESLAYOUT_MASTER_PAGE, FALSE, &pPoolItem ) == SFX_ITEM_SET )
+ if( mrOutAttrs.GetItemState( ATTR_PRESLAYOUT_MASTER_PAGE, sal_False, &pPoolItem ) == SFX_ITEM_SET )
{
- BOOL bMasterPage = ( (const SfxBoolItem*) pPoolItem)->GetValue();
+ sal_Bool bMasterPage = ( (const SfxBoolItem*) pPoolItem)->GetValue();
maCbxMasterPage.Enable( !bMasterPage );
maCbxMasterPage.Check( bMasterPage );
}
// Nicht verwendete MasterPages entfernen
- maCbxCheckMasters.Check(FALSE);
+ maCbxCheckMasters.Check(sal_False);
- if(mrOutAttrs.GetItemState(ATTR_PRESLAYOUT_NAME, TRUE, &pPoolItem) == SFX_ITEM_SET)
+ if(mrOutAttrs.GetItemState(ATTR_PRESLAYOUT_NAME, sal_True, &pPoolItem) == SFX_ITEM_SET)
maName = ((const SfxStringItem*)pPoolItem)->GetValue();
else
maName.Erase();
@@ -140,7 +140,7 @@ void SdPresLayoutDlg::Reset()
}
DBG_ASSERT(nName < mnLayoutCount, "Layout nicht gefunden");
- maVS.SelectItem((USHORT)nName + 1); // Inizes des ValueSets beginnen bei 1
+ maVS.SelectItem((sal_uInt16)nName + 1); // Inizes des ValueSets beginnen bei 1
}
@@ -153,7 +153,7 @@ void SdPresLayoutDlg::Reset()
void SdPresLayoutDlg::GetAttr(SfxItemSet& rOutAttrs)
{
short nId = maVS.GetSelectItemId();
- BOOL bLoad = nId > mnLayoutCount;
+ sal_Bool bLoad = nId > mnLayoutCount;
rOutAttrs.Put( SfxBoolItem( ATTR_PRESLAYOUT_LOAD, bLoad ) );
String aLayoutName;
@@ -194,9 +194,9 @@ void SdPresLayoutDlg::FillValueSet()
SdDrawDocument* pDoc = mpDocSh->GetDoc();
- USHORT nCount = pDoc->GetMasterPageCount();
+ sal_uInt16 nCount = pDoc->GetMasterPageCount();
- for (USHORT nLayout = 0; nLayout < nCount; nLayout++)
+ for (sal_uInt16 nLayout = 0; nLayout < nCount; nLayout++)
{
SdPage* pMaster = (SdPage*)pDoc->GetMasterPage(nLayout);
if (pMaster->GetPageKind() == PK_STANDARD)
@@ -206,7 +206,7 @@ void SdPresLayoutDlg::FillValueSet()
mpLayoutNames->Insert(new String(aLayoutName), LIST_APPEND);
Bitmap aBitmap(mpDocSh->GetPagePreviewBitmap(pMaster, 90));
- maVS.InsertItem((USHORT)mpLayoutNames->Count(), aBitmap, aLayoutName);
+ maVS.InsertItem((sal_uInt16)mpLayoutNames->Count(), aBitmap, aLayoutName);
}
}
@@ -243,12 +243,12 @@ IMPL_LINK(SdPresLayoutDlg, ClickLoadHdl, void *, EMPTYARG)
return 0;
}
- USHORT nResult = pDlg->Execute();
+ sal_uInt16 nResult = pDlg->Execute();
// #96072# OJ: Inserted update to force repaint
Update();
String aFile;
- BOOL bCancel = FALSE;
+ sal_Bool bCancel = sal_False;
switch (nResult)
{
@@ -267,7 +267,7 @@ IMPL_LINK(SdPresLayoutDlg, ClickLoadHdl, void *, EMPTYARG)
break;
default:
- bCancel = TRUE;
+ bCancel = sal_True;
}
delete pDlg;
@@ -277,7 +277,7 @@ IMPL_LINK(SdPresLayoutDlg, ClickLoadHdl, void *, EMPTYARG)
if( !bCancel )
{
// Pruefen, ob Vorlage schon vorhanden
- BOOL bExists = FALSE;
+ sal_Bool bExists = sal_False;
String* pName = (String*)mpLayoutNames->First();
String aCompareStr( maName );
if( maName.Len() == 0 )
@@ -287,9 +287,9 @@ IMPL_LINK(SdPresLayoutDlg, ClickLoadHdl, void *, EMPTYARG)
{
if( aCompareStr == *pName )
{
- bExists = TRUE;
+ bExists = sal_True;
// Vorlage selektieren
- USHORT nId = (USHORT) mpLayoutNames->GetCurPos() + 1;
+ sal_uInt16 nId = (sal_uInt16) mpLayoutNames->GetCurPos() + 1;
maVS.SelectItem( nId );
}
pName = (String*)mpLayoutNames->Next();
@@ -312,11 +312,11 @@ IMPL_LINK(SdPresLayoutDlg, ClickLoadHdl, void *, EMPTYARG)
mpLayoutNames->Insert( new String( maName ), LIST_APPEND );
Bitmap aBitmap( pTemplDocSh->GetPagePreviewBitmap( pMaster, 90 ) );
- maVS.InsertItem( (USHORT) mpLayoutNames->Count(), aBitmap, maName);
+ maVS.InsertItem( (sal_uInt16) mpLayoutNames->Count(), aBitmap, maName);
*/
- USHORT nCount = pTemplDoc->GetMasterPageCount();
+ sal_uInt16 nCount = pTemplDoc->GetMasterPageCount();
- for (USHORT nLayout = 0; nLayout < nCount; nLayout++)
+ for (sal_uInt16 nLayout = 0; nLayout < nCount; nLayout++)
{
SdPage* pMaster = (SdPage*) pTemplDoc->GetMasterPage(nLayout);
if (pMaster->GetPageKind() == PK_STANDARD)
@@ -326,13 +326,13 @@ IMPL_LINK(SdPresLayoutDlg, ClickLoadHdl, void *, EMPTYARG)
mpLayoutNames->Insert(new String(aLayoutName), LIST_APPEND);
Bitmap aBitmap(pTemplDocSh->GetPagePreviewBitmap(pMaster, 90));
- maVS.InsertItem((USHORT)mpLayoutNames->Count(), aBitmap, aLayoutName);
+ maVS.InsertItem((sal_uInt16)mpLayoutNames->Count(), aBitmap, aLayoutName);
}
}
}
else
{
- bCancel = TRUE;
+ bCancel = sal_True;
}
pDoc->CloseBookmarkDoc();
@@ -341,14 +341,14 @@ IMPL_LINK(SdPresLayoutDlg, ClickLoadHdl, void *, EMPTYARG)
{
// leeres Layout
mpLayoutNames->Insert( new String( maStrNone ), LIST_APPEND );
- maVS.InsertItem( (USHORT) mpLayoutNames->Count(),
+ maVS.InsertItem( (sal_uInt16) mpLayoutNames->Count(),
Bitmap( SdResId( BMP_FOIL_NONE ) ), maStrNone );
}
if (!bCancel)
{
// Vorlage selektieren
- maVS.SelectItem( (USHORT) mpLayoutNames->Count() );
+ maVS.SelectItem( (sal_uInt16) mpLayoutNames->Count() );
}
}
}
diff --git a/sd/source/ui/dlg/sdtreelb.cxx b/sd/source/ui/dlg/sdtreelb.cxx
index c0a72d539add..263f221332d6 100755
--- a/sd/source/ui/dlg/sdtreelb.cxx
+++ b/sd/source/ui/dlg/sdtreelb.cxx
@@ -84,9 +84,9 @@ public:
};
-BOOL SD_DLLPRIVATE SdPageObjsTLB::bIsInDrag = FALSE;
+sal_Bool SD_DLLPRIVATE SdPageObjsTLB::bIsInDrag = sal_False;
-BOOL SdPageObjsTLB::IsInDrag()
+sal_Bool SdPageObjsTLB::IsInDrag()
{
return bIsInDrag;
}
@@ -103,7 +103,7 @@ SdPageObjsTLB::SdPageObjsTransferable::SdPageObjsTransferable(
::sd::DrawDocShell& rDocShell,
NavigatorDragType eDragType,
const ::com::sun::star::uno::Any& rTreeListBoxData )
- : SdTransferable(rDocShell.GetDoc(), NULL, TRUE),
+ : SdTransferable(rDocShell.GetDoc(), NULL, sal_True),
mrParent( rParent ),
maBookmark( rBookmark ),
mrDocShell( rDocShell ),
@@ -132,7 +132,7 @@ void SdPageObjsTLB::SdPageObjsTransferable::AddSupportedFormats()
sal_Bool SdPageObjsTLB::SdPageObjsTransferable::GetData( const ::com::sun::star::datatransfer::DataFlavor& rFlavor )
{
- ULONG nFormatId = SotExchange::GetFormat( rFlavor );
+ sal_uLong nFormatId = SotExchange::GetFormat( rFlavor );
switch (nFormatId)
{
case SOT_FORMATSTR_ID_NETSCAPE_BOOKMARK:
@@ -251,7 +251,7 @@ SdPageObjsTLB::SdPageObjsTLB( Window* pParentWin, const SdResId& rSdResId )
, maImgGraphic ( BitmapEx( SdResId( BMP_GRAPHIC ) ) )
, maImgOleH ( BitmapEx( SdResId( BMP_OLE_H ) ) )
, maImgGraphicH ( BitmapEx( SdResId( BMP_GRAPHIC_H ) ) )
-, mbLinkableSelected ( FALSE )
+, mbLinkableSelected ( sal_False )
, mpDropNavWin ( NULL )
, mbShowAllShapes ( false )
, mbShowAllPages ( false )
@@ -328,9 +328,9 @@ String SdPageObjsTLB::GetObjectName(
|*
\************************************************************************/
-BOOL SdPageObjsTLB::SelectEntry( const String& rName )
+sal_Bool SdPageObjsTLB::SelectEntry( const String& rName )
{
- BOOL bFound = FALSE;
+ sal_Bool bFound = sal_False;
if( rName.Len() )
{
@@ -342,7 +342,7 @@ BOOL SdPageObjsTLB::SelectEntry( const String& rName )
aTmp = GetEntryText( pEntry );
if( aTmp == rName )
{
- bFound = TRUE;
+ bFound = sal_True;
SetCurEntry( pEntry );
}
}
@@ -356,10 +356,10 @@ BOOL SdPageObjsTLB::SelectEntry( const String& rName )
|*
\************************************************************************/
-BOOL SdPageObjsTLB::HasSelectedChilds( const String& rName )
+sal_Bool SdPageObjsTLB::HasSelectedChilds( const String& rName )
{
- BOOL bFound = FALSE;
- BOOL bChilds = FALSE;
+ sal_Bool bFound = sal_False;
+ sal_Bool bChilds = sal_False;
if( rName.Len() )
{
@@ -371,11 +371,11 @@ BOOL SdPageObjsTLB::HasSelectedChilds( const String& rName )
aTmp = GetEntryText( pEntry );
if( aTmp == rName )
{
- bFound = TRUE;
- BOOL bExpanded = IsExpanded( pEntry );
+ bFound = sal_True;
+ sal_Bool bExpanded = IsExpanded( pEntry );
long nCount = GetChildSelectionCount( pEntry );
if( bExpanded && nCount > 0 )
- bChilds = TRUE;
+ bChilds = sal_True;
}
}
}
@@ -389,7 +389,7 @@ BOOL SdPageObjsTLB::HasSelectedChilds( const String& rName )
|*
\************************************************************************/
-void SdPageObjsTLB::Fill( const SdDrawDocument* pInDoc, BOOL bAllPages,
+void SdPageObjsTLB::Fill( const SdDrawDocument* pInDoc, sal_Bool bAllPages,
const String& rDocName)
{
String aSelection;
@@ -401,7 +401,7 @@ void SdPageObjsTLB::Fill( const SdDrawDocument* pInDoc, BOOL bAllPages,
mpDoc = pInDoc;
maDocName = rDocName;
- mbShowAllPages = (bAllPages == TRUE);
+ mbShowAllPages = (bAllPages == sal_True);
mpMedium = NULL;
SdPage* pPage = NULL;
@@ -409,8 +409,8 @@ void SdPageObjsTLB::Fill( const SdDrawDocument* pInDoc, BOOL bAllPages,
IconProvider aIconProvider;
// first insert all pages including objects
- USHORT nPage = 0;
- const USHORT nMaxPages = mpDoc->GetPageCount();
+ sal_uInt16 nPage = 0;
+ const sal_uInt16 nMaxPages = mpDoc->GetPageCount();
while( nPage < nMaxPages )
{
@@ -418,7 +418,7 @@ void SdPageObjsTLB::Fill( const SdDrawDocument* pInDoc, BOOL bAllPages,
if( (mbShowAllPages || pPage->GetPageKind() == PK_STANDARD)
&& !(pPage->GetPageKind()==PK_HANDOUT) ) //#94954# never list the normal handout page ( handout-masterpage is used instead )
{
- BOOL bPageExluded = pPage->IsExcluded();
+ sal_Bool bPageExluded = pPage->IsExcluded();
bool bPageBelongsToShow = PageBelongsToCurrentShow (pPage);
bPageExluded |= !bPageBelongsToShow;
@@ -432,7 +432,7 @@ void SdPageObjsTLB::Fill( const SdDrawDocument* pInDoc, BOOL bAllPages,
if( mbShowAllPages )
{
nPage = 0;
- const USHORT nMaxMasterPages = mpDoc->GetMasterPageCount();
+ const sal_uInt16 nMaxMasterPages = mpDoc->GetMasterPageCount();
while( nPage < nMaxMasterPages )
{
@@ -470,7 +470,7 @@ void SdPageObjsTLB::Fill( const SdDrawDocument* pInDoc, SfxMedium* pInMedium,
aImgDocOpen,
aImgDocClosed,
NULL,
- TRUE,
+ sal_True,
LIST_APPEND,
reinterpret_cast< void* >( 1 ) );
@@ -504,7 +504,7 @@ void SdPageObjsTLB::AddShapeList (
aIcon,
aIcon,
pParentEntry,
- FALSE,
+ sal_False,
LIST_APPEND,
pUserData);
@@ -521,7 +521,7 @@ void SdPageObjsTLB::AddShapeList (
rList,
!rList.HasObjectNavigationOrder() /* use navigation order, if available */,
IM_FLAT,
- FALSE /*not reverse*/);
+ sal_False /*not reverse*/);
while( aIter.IsMore() )
{
@@ -536,7 +536,7 @@ void SdPageObjsTLB::AddShapeList (
if( pObj->GetObjInventor() == SdrInventor && pObj->GetObjIdentifier() == OBJ_OLE2 )
{
SvLBoxEntry* pNewEntry = InsertEntry( aStr, maImgOle, maImgOle, pEntry,
- FALSE, LIST_APPEND, pObj);
+ sal_False, LIST_APPEND, pObj);
SetExpandedEntryBmp( pNewEntry, maImgOleH, BMP_COLOR_HIGHCONTRAST );
SetCollapsedEntryBmp( pNewEntry, maImgOleH, BMP_COLOR_HIGHCONTRAST );
@@ -544,7 +544,7 @@ void SdPageObjsTLB::AddShapeList (
else if( pObj->GetObjInventor() == SdrInventor && pObj->GetObjIdentifier() == OBJ_GRAF )
{
SvLBoxEntry* pNewEntry = InsertEntry( aStr, maImgGraphic, maImgGraphic, pEntry,
- FALSE, LIST_APPEND, pObj );
+ sal_False, LIST_APPEND, pObj );
SetExpandedEntryBmp( pNewEntry, maImgGraphicH, BMP_COLOR_HIGHCONTRAST );
SetCollapsedEntryBmp( pNewEntry, maImgGraphicH, BMP_COLOR_HIGHCONTRAST );
@@ -562,7 +562,7 @@ void SdPageObjsTLB::AddShapeList (
else
{
SvLBoxEntry* pNewEntry = InsertEntry( aStr, rIconProvider.maImgObjects, rIconProvider.maImgObjects, pEntry,
- FALSE, LIST_APPEND, pObj );
+ sal_False, LIST_APPEND, pObj );
SetExpandedEntryBmp( pNewEntry, rIconProvider.maImgObjectsH, BMP_COLOR_HIGHCONTRAST );
SetCollapsedEntryBmp( pNewEntry, rIconProvider.maImgObjectsH, BMP_COLOR_HIGHCONTRAST );
@@ -626,13 +626,13 @@ bool SdPageObjsTLB::GetShowAllShapes (void) const
|*
\************************************************************************/
-BOOL SdPageObjsTLB::IsEqualToDoc( const SdDrawDocument* pInDoc )
+sal_Bool SdPageObjsTLB::IsEqualToDoc( const SdDrawDocument* pInDoc )
{
if( pInDoc )
mpDoc = pInDoc;
if( !mpDoc )
- return( FALSE );
+ return( sal_False );
SdrObject* pObj = NULL;
SdPage* pPage = NULL;
@@ -640,8 +640,8 @@ BOOL SdPageObjsTLB::IsEqualToDoc( const SdDrawDocument* pInDoc )
String aName;
// Alle Pages incl. Objekte vergleichen
- USHORT nPage = 0;
- const USHORT nMaxPages = mpDoc->GetPageCount();
+ sal_uInt16 nPage = 0;
+ const sal_uInt16 nMaxPages = mpDoc->GetPageCount();
while( nPage < nMaxPages )
{
@@ -649,11 +649,11 @@ BOOL SdPageObjsTLB::IsEqualToDoc( const SdDrawDocument* pInDoc )
if( pPage->GetPageKind() == PK_STANDARD )
{
if( !pEntry )
- return( FALSE );
+ return( sal_False );
aName = GetEntryText( pEntry );
if( pPage->GetName() != aName )
- return( FALSE );
+ return( sal_False );
pEntry = Next( pEntry );
@@ -671,12 +671,12 @@ BOOL SdPageObjsTLB::IsEqualToDoc( const SdDrawDocument* pInDoc )
if( aObjectName.Len() )
{
if( !pEntry )
- return( FALSE );
+ return( sal_False );
aName = GetEntryText( pEntry );
if( aObjectName != aName )
- return( FALSE );
+ return( sal_False );
pEntry = Next( pEntry );
}
@@ -708,14 +708,14 @@ String SdPageObjsTLB::GetSelectEntry()
|*
\************************************************************************/
-List* SdPageObjsTLB::GetSelectEntryList( USHORT nDepth )
+List* SdPageObjsTLB::GetSelectEntryList( sal_uInt16 nDepth )
{
List* pList = NULL;
SvLBoxEntry* pEntry = FirstSelected();
while( pEntry )
{
- USHORT nListDepth = GetModel()->GetDepth( pEntry );
+ sal_uInt16 nListDepth = GetModel()->GetDepth( pEntry );
if( nListDepth == nDepth )
{
if( !pList )
@@ -756,8 +756,8 @@ void SdPageObjsTLB::RequestingChilds( SvLBoxEntry* pFileEntry )
// document name already inserted
// only insert all "normal" ? slides with objects
- USHORT nPage = 0;
- const USHORT nMaxPages = mpBookmarkDoc->GetPageCount();
+ sal_uInt16 nPage = 0;
+ const sal_uInt16 nMaxPages = mpBookmarkDoc->GetPageCount();
while( nPage < nMaxPages )
{
@@ -768,7 +768,7 @@ void SdPageObjsTLB::RequestingChilds( SvLBoxEntry* pFileEntry )
aImgPage,
aImgPage,
pFileEntry,
- FALSE,
+ sal_False,
LIST_APPEND,
reinterpret_cast< void* >( 1 ) );
@@ -859,7 +859,7 @@ SdDrawDocument* SdPageObjsTLB::GetBookmarkDoc(SfxMedium* pMed)
if( pMed )
{
// in this mode the document is also owned and controlled by this instance
- mxBookmarkDocShRef = new ::sd::DrawDocShell(SFX_CREATE_MODE_STANDARD, TRUE);
+ mxBookmarkDocShRef = new ::sd::DrawDocShell(SFX_CREATE_MODE_STANDARD, sal_True);
if (mxBookmarkDocShRef->DoLoad(pMed))
mpBookmarkDoc = mxBookmarkDocShRef->GetDoc();
else
@@ -928,12 +928,12 @@ void SdPageObjsTLB::SelectHdl()
{
SvLBoxEntry* pEntry = FirstSelected();
- mbLinkableSelected = TRUE;
+ mbLinkableSelected = sal_True;
while( pEntry && mbLinkableSelected )
{
if( NULL == pEntry->GetUserData() )
- mbLinkableSelected = FALSE;
+ mbLinkableSelected = sal_False;
pEntry = NextSelected( pEntry );
}
@@ -994,26 +994,26 @@ void SdPageObjsTLB::StartDrag( sal_Int8 nAction, const Point& rPosPixel)
// Select all entries and disable them as drop targets.
SetSelectionMode(MULTIPLE_SELECTION);
- SetCursor(NULL, FALSE);
- SelectAll(TRUE, FALSE);
- EnableSelectionAsDropTarget(FALSE, TRUE);
+ SetCursor(NULL, sal_False);
+ SelectAll(sal_True, sal_False);
+ EnableSelectionAsDropTarget(sal_False, sal_True);
// Enable only the entries as drop targets that are children of the
// page under the mouse.
SvLBoxEntry* pParent = GetRootLevelParent(pEntry);
if (pParent != NULL)
{
- SelectAll(FALSE, FALSE);
- Select(pParent, TRUE);
+ SelectAll(sal_False, sal_False);
+ Select(pParent, sal_True);
// for (SvLBoxEntry*pChild=FirstChild(pParent); pChild!=NULL; pChild=NextSibling(pChild))
- // Select(pChild, TRUE);
- EnableSelectionAsDropTarget(TRUE, TRUE);//FALSE);
+ // Select(pChild, sal_True);
+ EnableSelectionAsDropTarget(sal_True, sal_True);//sal_False);
}
// Set selection back to the entry under the mouse.
- SelectAll(FALSE,FALSE);
+ SelectAll(sal_False,sal_False);
SetSelectionMode(SINGLE_SELECTION);
- Select(pEntry, TRUE);
+ Select(pEntry, sal_True);
// Aus dem ExecuteDrag heraus kann der Navigator geloescht werden
// (beim Umschalten auf einen anderen Dokument-Typ), das wuerde aber
@@ -1052,7 +1052,7 @@ void SdPageObjsTLB::DoDrag()
SvTreeListBox::ReleaseMouse();
- bIsInDrag = TRUE;
+ bIsInDrag = sal_True;
SvLBoxDDInfo aDDInfo;
memset(&aDDInfo,0,sizeof(SvLBoxDDInfo));
@@ -1131,7 +1131,7 @@ void SdPageObjsTLB::OnDragFinished( sal_uInt8 )
}
mpDropNavWin = NULL;
- bIsInDrag = FALSE;
+ bIsInDrag = sal_False;
}
/*************************************************************************
@@ -1153,7 +1153,7 @@ sal_Int8 SdPageObjsTLB::AcceptDrop (const AcceptDropEvent& rEvent)
SvLBoxEntry* pEntry = GetDropTarget(rEvent.maPosPixel);
if (rEvent.mbLeaving || !CheckDragAndDropMode( this, rEvent.mnAction ))
{
- ImplShowTargetEmphasis( pTargetEntry, FALSE );
+ ImplShowTargetEmphasis( pTargetEntry, sal_False );
}
else if( !nDragDropMode )
{
@@ -1166,16 +1166,16 @@ sal_Int8 SdPageObjsTLB::AcceptDrop (const AcceptDropEvent& rEvent)
// Draw emphasis.
if (pEntry != pTargetEntry || !(nImpFlags & SVLBOX_TARGEMPH_VIS))
{
- ImplShowTargetEmphasis( pTargetEntry, FALSE );
+ ImplShowTargetEmphasis( pTargetEntry, sal_False );
pTargetEntry = pEntry;
- ImplShowTargetEmphasis( pTargetEntry, TRUE );
+ ImplShowTargetEmphasis( pTargetEntry, sal_True );
}
}
}
// Hide emphasis when there is no valid drop action.
if (nResult == DND_ACTION_NONE)
- ImplShowTargetEmphasis(pTargetEntry, FALSE);
+ ImplShowTargetEmphasis(pTargetEntry, sal_False);
return nResult;
}
@@ -1195,7 +1195,7 @@ sal_Int8 SdPageObjsTLB::ExecuteDrop( const ExecuteDropEvent& rEvt )
if( !bIsInDrag )
{
SdNavigatorWin* pNavWin = NULL;
- USHORT nId = SID_NAVIGATOR;
+ sal_uInt16 nId = SID_NAVIGATOR;
if( mpFrame->HasChildWindow( nId ) )
pNavWin = (SdNavigatorWin*)( mpFrame->GetChildWindow( nId )->GetContextWindow( SD_MOD() ) );
@@ -1253,7 +1253,7 @@ bool SdPageObjsTLB::PageBelongsToCurrentShow (const SdPage* pPage) const
List* pShowList = const_cast<SdDrawDocument*>(mpDoc)->GetCustomShowList();
if (pShowList != NULL)
{
- ULONG nCurrentShowIndex = pShowList->GetCurPos();
+ sal_uLong nCurrentShowIndex = pShowList->GetCurPos();
void* pObject = pShowList->GetObject(nCurrentShowIndex);
pCustomShow = static_cast<SdCustomShow*>(pObject);
}
@@ -1262,8 +1262,8 @@ bool SdPageObjsTLB::PageBelongsToCurrentShow (const SdPage* pPage) const
if (pCustomShow != NULL)
{
bBelongsToShow = false;
- ULONG nPageCount = pCustomShow->Count();
- for (USHORT i=0; i<nPageCount && !bBelongsToShow; i++)
+ sal_uLong nPageCount = pCustomShow->Count();
+ for (sal_uInt16 i=0; i<nPageCount && !bBelongsToShow; i++)
if (pPage == static_cast<SdPage*>(pCustomShow->GetObject (i)))
bBelongsToShow = true;
}
@@ -1275,11 +1275,11 @@ bool SdPageObjsTLB::PageBelongsToCurrentShow (const SdPage* pPage) const
-BOOL SdPageObjsTLB::NotifyMoving(
+sal_Bool SdPageObjsTLB::NotifyMoving(
SvLBoxEntry* pTarget,
SvLBoxEntry* pEntry,
SvLBoxEntry*& rpNewParent,
- ULONG& rNewChildPos)
+ sal_uLong& rNewChildPos)
{
SvLBoxEntry* pDestination = pTarget;
while (GetParent(pDestination) != NULL && GetParent(GetParent(pDestination)) != NULL)
@@ -1308,7 +1308,7 @@ BOOL SdPageObjsTLB::NotifyMoving(
{
rpNewParent = 0;
rNewChildPos = 0;
- return TRUE;
+ return sal_True;
}
else if (GetParent(pDestination) == NULL)
{
@@ -1322,10 +1322,10 @@ BOOL SdPageObjsTLB::NotifyMoving(
rNewChildPos += nCurEntrySelPos;
nCurEntrySelPos++;
}
- return TRUE;
+ return sal_True;
}
else
- return FALSE;
+ return sal_False;
}
@@ -1432,7 +1432,7 @@ void SdPageObjsTLB::AddShapeToTransferable (
aObjectDescriptor.maDisplayName = pDocShell->GetMedium()->GetURLObject().GetURLNoPass();
else
aObjectDescriptor.maDisplayName = String();
- aObjectDescriptor.mbCanLink = FALSE;
+ aObjectDescriptor.mbCanLink = sal_False;
rTransferable.SetStartPos(aDragPos);
rTransferable.SetObjectDescriptor( aObjectDescriptor );
diff --git a/sd/source/ui/dlg/tabtempl.cxx b/sd/source/ui/dlg/tabtempl.cxx
index 5fd9af68eee0..5d8dda204abd 100644..100755
--- a/sd/source/ui/dlg/tabtempl.cxx
+++ b/sd/source/ui/dlg/tabtempl.cxx
@@ -70,7 +70,7 @@ SdTabTemplateDlg::SdTabTemplateDlg( Window* pParent,
SfxStyleSheetBase& rStyleBase,
SdrModel* pModel,
SdrView* pView ) :
- SfxStyleDialog ( pParent, SdResId( TAB_TEMPLATE ), rStyleBase, FALSE ),
+ SfxStyleDialog ( pParent, SdResId( TAB_TEMPLATE ), rStyleBase, sal_False ),
rDocShell ( *pDocShell ),
pSdrView ( pView ),
pColorTab ( pModel->GetColorTable() ),
@@ -121,7 +121,7 @@ SdTabTemplateDlg::~SdTabTemplateDlg()
// -----------------------------------------------------------------------
-void SdTabTemplateDlg::PageCreated( USHORT nId, SfxTabPage &rPage )
+void SdTabTemplateDlg::PageCreated( sal_uInt16 nId, SfxTabPage &rPage )
{
SfxAllItemSet aSet(*(GetInputSetImpl()->GetPool()));
switch( nId )
diff --git a/sd/source/ui/dlg/tpaction.cxx b/sd/source/ui/dlg/tpaction.cxx
index c7404b820ed7..6ed87ba105ea 100755
--- a/sd/source/ui/dlg/tpaction.cxx
+++ b/sd/source/ui/dlg/tpaction.cxx
@@ -142,7 +142,7 @@ SdTPAction::SdTPAction( Window* pWindow, const SfxItemSet& rInAttrs ) :
rOutAttrs ( rInAttrs ),
mpView ( NULL ),
mpDoc ( NULL ),
- bTreeUpdated ( FALSE )
+ bTreeUpdated ( sal_False )
{
FreeResource();
@@ -203,7 +203,7 @@ void SdTPAction::Construct()
// OLE-Actionlistbox auffuellen
SdrOle2Obj* pOleObj = NULL;
SdrGrafObj* pGrafObj = NULL;
- BOOL bOLEAction = FALSE;
+ sal_Bool bOLEAction = sal_False;
if ( mpView->AreObjectsMarked() )
{
@@ -215,8 +215,8 @@ void SdTPAction::Construct()
SdrMark* pMark = rMarkList.GetMark(0);
pObj = pMark->GetMarkedSdrObj();
- UINT32 nInv = pObj->GetObjInventor();
- UINT16 nSdrObjKind = pObj->GetObjIdentifier();
+ sal_uInt32 nInv = pObj->GetObjInventor();
+ sal_uInt16 nSdrObjKind = pObj->GetObjIdentifier();
if (nInv == SdrInventor && nSdrObjKind == OBJ_OLE2)
{
@@ -229,13 +229,13 @@ void SdTPAction::Construct()
// // VCXControl ?
// else if( pObj->IsA( TYPE( VCSbxDrawObject ) ) )
// {
-// bDisableAll = TRUE;
+// bDisableAll = sal_True;
// }
}
}
if( pGrafObj )
{
- bOLEAction = TRUE;
+ bOLEAction = sal_True;
aVerbVector.push_back( 0 );
aLbOLEAction.InsertEntry( MnemonicGenerator::EraseAllMnemonicChars( String( SdResId( STR_EDIT_OBJ ) ) ) );
@@ -245,7 +245,7 @@ void SdTPAction::Construct()
uno::Reference < embed::XEmbeddedObject > xObj = pOleObj->GetObjRef();
if ( xObj.is() )
{
- bOLEAction = TRUE;
+ bOLEAction = sal_True;
uno::Sequence < embed::VerbDescriptor > aVerbs;
try
{
@@ -271,24 +271,24 @@ void SdTPAction::Construct()
}
pCurrentActions = new List;
- pCurrentActions->Insert((void*)(ULONG)presentation::ClickAction_NONE, LIST_APPEND);
- pCurrentActions->Insert((void*)(ULONG)presentation::ClickAction_PREVPAGE, LIST_APPEND);
- pCurrentActions->Insert((void*)(ULONG)presentation::ClickAction_NEXTPAGE, LIST_APPEND);
- pCurrentActions->Insert((void*)(ULONG)presentation::ClickAction_FIRSTPAGE, LIST_APPEND);
- pCurrentActions->Insert((void*)(ULONG)presentation::ClickAction_LASTPAGE, LIST_APPEND);
- pCurrentActions->Insert((void*)(ULONG)presentation::ClickAction_BOOKMARK, LIST_APPEND);
- pCurrentActions->Insert((void*)(ULONG)presentation::ClickAction_DOCUMENT, LIST_APPEND);
- pCurrentActions->Insert((void*)(ULONG)presentation::ClickAction_SOUND, LIST_APPEND);
+ pCurrentActions->Insert((void*)(sal_uIntPtr)presentation::ClickAction_NONE, LIST_APPEND);
+ pCurrentActions->Insert((void*)(sal_uIntPtr)presentation::ClickAction_PREVPAGE, LIST_APPEND);
+ pCurrentActions->Insert((void*)(sal_uIntPtr)presentation::ClickAction_NEXTPAGE, LIST_APPEND);
+ pCurrentActions->Insert((void*)(sal_uIntPtr)presentation::ClickAction_FIRSTPAGE, LIST_APPEND);
+ pCurrentActions->Insert((void*)(sal_uIntPtr)presentation::ClickAction_LASTPAGE, LIST_APPEND);
+ pCurrentActions->Insert((void*)(sal_uIntPtr)presentation::ClickAction_BOOKMARK, LIST_APPEND);
+ pCurrentActions->Insert((void*)(sal_uIntPtr)presentation::ClickAction_DOCUMENT, LIST_APPEND);
+ pCurrentActions->Insert((void*)(sal_uIntPtr)presentation::ClickAction_SOUND, LIST_APPEND);
if( bOLEAction && aLbOLEAction.GetEntryCount() )
- pCurrentActions->Insert((void*)(ULONG)presentation::ClickAction_VERB, LIST_APPEND );
- pCurrentActions->Insert((void*)(ULONG)presentation::ClickAction_PROGRAM, LIST_APPEND);
- pCurrentActions->Insert((void*)(ULONG)presentation::ClickAction_MACRO, LIST_APPEND);
- pCurrentActions->Insert((void*)(ULONG)presentation::ClickAction_STOPPRESENTATION, LIST_APPEND);
+ pCurrentActions->Insert((void*)(sal_uIntPtr)presentation::ClickAction_VERB, LIST_APPEND );
+ pCurrentActions->Insert((void*)(sal_uIntPtr)presentation::ClickAction_PROGRAM, LIST_APPEND);
+ pCurrentActions->Insert((void*)(sal_uIntPtr)presentation::ClickAction_MACRO, LIST_APPEND);
+ pCurrentActions->Insert((void*)(sal_uIntPtr)presentation::ClickAction_STOPPRESENTATION, LIST_APPEND);
// Action-Listbox fuellen
- for (ULONG nAction = 0; nAction < pCurrentActions->Count(); nAction++)
+ for (sal_uLong nAction = 0; nAction < pCurrentActions->Count(); nAction++)
{
- USHORT nRId = GetClickActionSdResId((presentation::ClickAction)(ULONG)pCurrentActions->GetObject(nAction));
+ sal_uInt16 nRId = GetClickActionSdResId((presentation::ClickAction)(sal_uLong)pCurrentActions->GetObject(nAction));
aLbAction.InsertEntry( String( SdResId( nRId ) ) );
}
@@ -296,9 +296,9 @@ void SdTPAction::Construct()
// -----------------------------------------------------------------------
-BOOL SdTPAction::FillItemSet( SfxItemSet& rAttrs )
+sal_Bool SdTPAction::FillItemSet( SfxItemSet& rAttrs )
{
- BOOL bModified = FALSE;
+ sal_Bool bModified = sal_False;
presentation::ClickAction eCA = presentation::ClickAction_NONE;
if( aLbAction.GetSelectEntryCount() )
@@ -306,13 +306,13 @@ BOOL SdTPAction::FillItemSet( SfxItemSet& rAttrs )
if( aLbAction.GetSavedValue() != aLbAction.GetSelectEntryPos() )
{
- rAttrs.Put( SfxAllEnumItem( ATTR_ACTION, (USHORT)eCA ) );
- bModified = TRUE;
+ rAttrs.Put( SfxAllEnumItem( ATTR_ACTION, (sal_uInt16)eCA ) );
+ bModified = sal_True;
}
else
rAttrs.InvalidateItem( ATTR_ACTION );
- String aFileName = GetEditText( TRUE );
+ String aFileName = GetEditText( sal_True );
if( aFileName.Len() == 0 )
rAttrs.InvalidateItem( ATTR_ACTION_FILENAME );
else
@@ -328,7 +328,7 @@ BOOL SdTPAction::FillItemSet( SfxItemSet& rAttrs )
INetURLObject::DECODE_UNAMBIGUOUS );
rAttrs.Put( SfxStringItem( ATTR_ACTION_FILENAME, aFileName ) );
- bModified = TRUE;
+ bModified = sal_True;
}
else
{
@@ -368,7 +368,7 @@ void SdTPAction::Reset( const SfxItemSet& rAttrs )
case presentation::ClickAction_BOOKMARK:
{
if( !aLbTree.SelectEntry( aFileName ) )
- aLbTree.SelectAll( FALSE );
+ aLbTree.SelectAll( sal_False );
}
break;
@@ -419,8 +419,8 @@ void SdTPAction::UpdateTree()
if( !bTreeUpdated && mpDoc && mpDoc->GetDocSh() && mpDoc->GetDocSh()->GetMedium() )
{
//aLbTree.Clear();
- aLbTree.Fill( mpDoc, TRUE, mpDoc->GetDocSh()->GetMedium()->GetName() );
- bTreeUpdated = TRUE;
+ aLbTree.Fill( mpDoc, sal_True, mpDoc->GetDocSh()->GetMedium()->GetName() );
+ bTreeUpdated = sal_True;
}
}
@@ -430,11 +430,11 @@ void SdTPAction::OpenFileDialog()
{
// Soundpreview nur fuer Interaktionen mit Sound
presentation::ClickAction eCA = GetActualClickAction();
- BOOL bSound = ( eCA == presentation::ClickAction_SOUND );
- BOOL bPage = ( eCA == presentation::ClickAction_BOOKMARK );
- BOOL bDocument = ( eCA == presentation::ClickAction_DOCUMENT ||
+ sal_Bool bSound = ( eCA == presentation::ClickAction_SOUND );
+ sal_Bool bPage = ( eCA == presentation::ClickAction_BOOKMARK );
+ sal_Bool bDocument = ( eCA == presentation::ClickAction_DOCUMENT ||
eCA == presentation::ClickAction_PROGRAM );
- BOOL bMacro = ( eCA == presentation::ClickAction_MACRO );
+ sal_Bool bMacro = ( eCA == presentation::ClickAction_MACRO );
if( bPage )
{
@@ -709,7 +709,7 @@ IMPL_LINK( SdTPAction, CheckFileHdl, void *, EMPTYARG )
// Ueberpruefen, ob es eine gueltige Draw-Datei ist
SfxMedium aMedium( aFile,
STREAM_READ | STREAM_NOCREATE,
- TRUE ); // Download
+ sal_True ); // Download
if( aMedium.IsStorage() )
{
@@ -731,7 +731,7 @@ IMPL_LINK( SdTPAction, CheckFileHdl, void *, EMPTYARG )
aLastFile = aFile;
aLbTreeDocument.Clear();
- aLbTreeDocument.Fill( pBookmarkDoc, TRUE, aFile );
+ aLbTreeDocument.Fill( pBookmarkDoc, sal_True, aFile );
mpDoc->CloseBookmarkDoc();
aLbTreeDocument.Show();
}
@@ -754,10 +754,10 @@ IMPL_LINK( SdTPAction, CheckFileHdl, void *, EMPTYARG )
presentation::ClickAction SdTPAction::GetActualClickAction()
{
presentation::ClickAction eCA = presentation::ClickAction_NONE;
- USHORT nPos = aLbAction.GetSelectEntryPos();
+ sal_uInt16 nPos = aLbAction.GetSelectEntryPos();
if (nPos != LISTBOX_ENTRY_NOTFOUND)
- eCA = (presentation::ClickAction)(ULONG)pCurrentActions->GetObject((ULONG)nPos);
+ eCA = (presentation::ClickAction)(sal_uLong)pCurrentActions->GetObject((sal_uLong)nPos);
return( eCA );
}
@@ -765,7 +765,7 @@ presentation::ClickAction SdTPAction::GetActualClickAction()
void SdTPAction::SetActualClickAction( presentation::ClickAction eCA )
{
- USHORT nPos = (USHORT)pCurrentActions->GetPos((void*)(ULONG)eCA);
+ sal_uInt16 nPos = (sal_uInt16)pCurrentActions->GetPos((void*)(sal_uLong)eCA);
DBG_ASSERT(nPos != 0xffff, "unbekannte Interaktion");
aLbAction.SelectEntryPos(nPos);
}
@@ -835,7 +835,7 @@ void SdTPAction::SetEditText( String const & rStr )
//------------------------------------------------------------------------
-String SdTPAction::GetEditText( BOOL bFullDocDestination )
+String SdTPAction::GetEditText( sal_Bool bFullDocDestination )
{
String aStr;
presentation::ClickAction eCA = GetActualClickAction();
@@ -847,7 +847,7 @@ String SdTPAction::GetEditText( BOOL bFullDocDestination )
break;
case presentation::ClickAction_VERB:
{
- const USHORT nPos = aLbOLEAction.GetSelectEntryPos();
+ const sal_uInt16 nPos = aLbOLEAction.GetSelectEntryPos();
if( nPos < aVerbVector.size() )
aStr = UniString::CreateFromInt32( aVerbVector[ nPos ] );
return aStr;
@@ -902,7 +902,7 @@ String SdTPAction::GetEditText( BOOL bFullDocDestination )
//------------------------------------------------------------------------
-USHORT SdTPAction::GetClickActionSdResId( presentation::ClickAction eCA )
+sal_uInt16 SdTPAction::GetClickActionSdResId( presentation::ClickAction eCA )
{
switch( eCA )
{
diff --git a/sd/source/ui/dlg/tpoption.cxx b/sd/source/ui/dlg/tpoption.cxx
index bdb4cc230537..b78978aed227 100644..100755
--- a/sd/source/ui/dlg/tpoption.cxx
+++ b/sd/source/ui/dlg/tpoption.cxx
@@ -96,12 +96,12 @@ SdTpOptionsSnap::~SdTpOptionsSnap()
// -----------------------------------------------------------------------
-BOOL SdTpOptionsSnap::FillItemSet( SfxItemSet& rAttrs )
+sal_Bool SdTpOptionsSnap::FillItemSet( SfxItemSet& rAttrs )
{
SvxGridTabPage::FillItemSet(rAttrs);
SdOptionsSnapItem* pOptsItem = NULL;
-// if(SFX_ITEM_SET != rAttrs.GetItemState( ATTR_OPTIONS_SNAP, FALSE, (const SfxPoolItem**)&pOptsItem ))
-// pExampleSet->GetItemState( ATTR_OPTIONS_SNAP, FALSE, (const SfxPoolItem**)&pOptsItem );
+// if(SFX_ITEM_SET != rAttrs.GetItemState( ATTR_OPTIONS_SNAP, sal_False, (const SfxPoolItem**)&pOptsItem ))
+// pExampleSet->GetItemState( ATTR_OPTIONS_SNAP, sal_False, (const SfxPoolItem**)&pOptsItem );
SdOptionsSnapItem aOptsItem( ATTR_OPTIONS_SNAP );
@@ -112,16 +112,16 @@ BOOL SdTpOptionsSnap::FillItemSet( SfxItemSet& rAttrs )
aOptsItem.GetOptionsSnap().SetOrtho( aCbxOrtho.IsChecked() );
aOptsItem.GetOptionsSnap().SetBigOrtho( aCbxBigOrtho.IsChecked() );
aOptsItem.GetOptionsSnap().SetRotate( aCbxRotate.IsChecked() );
- aOptsItem.GetOptionsSnap().SetSnapArea( (INT16) aMtrFldSnapArea.GetValue() );
- aOptsItem.GetOptionsSnap().SetAngle( (INT16) aMtrFldAngle.GetValue() );
- aOptsItem.GetOptionsSnap().SetEliminatePolyPointLimitAngle( (INT16) aMtrFldBezAngle.GetValue() );
+ aOptsItem.GetOptionsSnap().SetSnapArea( (sal_Int16) aMtrFldSnapArea.GetValue() );
+ aOptsItem.GetOptionsSnap().SetAngle( (sal_Int16) aMtrFldAngle.GetValue() );
+ aOptsItem.GetOptionsSnap().SetEliminatePolyPointLimitAngle( (sal_Int16) aMtrFldBezAngle.GetValue() );
if( pOptsItem == NULL || !(aOptsItem == *pOptsItem) )
rAttrs.Put( aOptsItem );
// Evtl. vorhandenes GridItem wird geholt, um nicht versehentlich
// irgendwelche Standardwerte einzustellen
- return( TRUE );
+ return( sal_True );
}
// -----------------------------------------------------------------------
@@ -180,9 +180,9 @@ SdTpOptionsContents::~SdTpOptionsContents()
// -----------------------------------------------------------------------
-BOOL SdTpOptionsContents::FillItemSet( SfxItemSet& rAttrs )
+sal_Bool SdTpOptionsContents::FillItemSet( SfxItemSet& rAttrs )
{
- BOOL bModified = FALSE;
+ sal_Bool bModified = sal_False;
if( aCbxRuler.GetSavedValue() != aCbxRuler.IsChecked() ||
aCbxMoveOutline.GetSavedValue() != aCbxMoveOutline.IsChecked() ||
@@ -199,7 +199,7 @@ BOOL SdTpOptionsContents::FillItemSet( SfxItemSet& rAttrs )
//aOptsItem.GetOptionsLayout().SetHelplines( aCbxHelplines.IsChecked() );
rAttrs.Put( aOptsItem );
- bModified = TRUE;
+ bModified = sal_True;
}
return( bModified );
}
@@ -289,7 +289,7 @@ SdTpOptionsMisc::SdTpOptionsMisc( Window* pParent, const SfxItemSet& rInAttrs )
// Metrik einstellen
FieldUnit eFUnit;
- USHORT nWhich = GetWhich( SID_ATTR_METRIC );
+ sal_uInt16 nWhich = GetWhich( SID_ATTR_METRIC );
if ( rInAttrs.GetItemState( nWhich ) >= SFX_ITEM_AVAILABLE )
{
const SfxUInt16Item& rItem = (SfxUInt16Item&)rInAttrs.Get( nWhich );
@@ -302,13 +302,13 @@ SdTpOptionsMisc::SdTpOptionsMisc( Window* pParent, const SfxItemSet& rInAttrs )
// ListBox mit Metriken f"ullen
SvxStringArray aMetricArr( RID_SVXSTR_FIELDUNIT_TABLE );
- USHORT i;
+ sal_uInt16 i;
for ( i = 0; i < aMetricArr.Count(); ++i )
{
String sMetric = aMetricArr.GetStringByPos( i );
long nFieldUnit = aMetricArr.GetValue( i );
- USHORT nPos = aLbMetric.InsertEntry( sMetric );
+ sal_uInt16 nPos = aLbMetric.InsertEntry( sMetric );
aLbMetric.SetEntryData( nPos, (void*)nFieldUnit );
}
aLbMetric.SetSelectHdl( LINK( this, SdTpOptionsMisc, SelectMetricHdl_Impl ) );
@@ -334,7 +334,7 @@ SdTpOptionsMisc::SdTpOptionsMisc( Window* pParent, const SfxItemSet& rInAttrs )
ePoolUnit = pPool->GetMetric( SID_ATTR_FILL_HATCH );
// Fuellen der CB
- USHORT aTable[ TABLE_COUNT ] =
+ sal_uInt16 aTable[ TABLE_COUNT ] =
{ 1, 2, 4, 5, 8, 10, 16, 20, 30, 40, 50, 100 };
for( i = 0; i < TABLE_COUNT; i++ )
@@ -357,7 +357,7 @@ void SdTpOptionsMisc::ActivatePage( const SfxItemSet& rSet )
// Metrik ggfs. aendern (da TabPage im Dialog liegt,
// wo die Metrik eingestellt werden kann
const SfxPoolItem* pAttr = NULL;
- if( SFX_ITEM_SET == rSet.GetItemState( SID_ATTR_METRIC , FALSE,
+ if( SFX_ITEM_SET == rSet.GetItemState( SID_ATTR_METRIC , sal_False,
(const SfxPoolItem**)&pAttr ))
{
const SfxUInt16Item* pItem = (SfxUInt16Item*) pAttr;
@@ -368,11 +368,11 @@ void SdTpOptionsMisc::ActivatePage( const SfxItemSet& rSet )
{
// Metriken einstellen
sal_Int64 nVal = aMtrFldOriginalWidth.Denormalize( aMtrFldOriginalWidth.GetValue( FUNIT_TWIP ) );
- SetFieldUnit( aMtrFldOriginalWidth, eFUnit, TRUE );
+ SetFieldUnit( aMtrFldOriginalWidth, eFUnit, sal_True );
aMtrFldOriginalWidth.SetValue( aMtrFldOriginalWidth.Normalize( nVal ), FUNIT_TWIP );
nVal = aMtrFldOriginalHeight.Denormalize( aMtrFldOriginalHeight.GetValue( FUNIT_TWIP ) );
- SetFieldUnit( aMtrFldOriginalHeight, eFUnit, TRUE );
+ SetFieldUnit( aMtrFldOriginalHeight, eFUnit, sal_True );
aMtrFldOriginalHeight.SetValue( aMtrFldOriginalHeight.Normalize( nVal ), FUNIT_TWIP );
@@ -398,7 +398,7 @@ void SdTpOptionsMisc::ActivatePage( const SfxItemSet& rSet )
int SdTpOptionsMisc::DeactivatePage( SfxItemSet* pActiveSet )
{
// Parsercheck
- INT32 nX, nY;
+ sal_Int32 nX, nY;
if( SetScale( aCbScale.GetText(), nX, nY ) )
{
if( pActiveSet )
@@ -419,9 +419,9 @@ int SdTpOptionsMisc::DeactivatePage( SfxItemSet* pActiveSet )
// -----------------------------------------------------------------------
-BOOL SdTpOptionsMisc::FillItemSet( SfxItemSet& rAttrs )
+sal_Bool SdTpOptionsMisc::FillItemSet( SfxItemSet& rAttrs )
{
- BOOL bModified = FALSE;
+ sal_Bool bModified = sal_False;
if( aCbxStartWithTemplate.GetSavedValue() != aCbxStartWithTemplate.IsChecked() ||
aCbxMarkedHitMovesAlways.GetSavedValue()!= aCbxMarkedHitMovesAlways.IsChecked() ||
@@ -451,36 +451,36 @@ BOOL SdTpOptionsMisc::FillItemSet( SfxItemSet& rAttrs )
: ::com::sun::star::document::PrinterIndependentLayout::ENABLED);
rAttrs.Put( aOptsItem );
- bModified = TRUE;
+ bModified = sal_True;
}
// Metrik
- const USHORT nMPos = aLbMetric.GetSelectEntryPos();
+ const sal_uInt16 nMPos = aLbMetric.GetSelectEntryPos();
if ( nMPos != aLbMetric.GetSavedValue() )
{
- USHORT nFieldUnit = (USHORT)(long)aLbMetric.GetEntryData( nMPos );
+ sal_uInt16 nFieldUnit = (sal_uInt16)(long)aLbMetric.GetEntryData( nMPos );
rAttrs.Put( SfxUInt16Item( GetWhich( SID_ATTR_METRIC ),
- (UINT16)nFieldUnit ) );
- bModified |= TRUE;
+ (sal_uInt16)nFieldUnit ) );
+ bModified |= sal_True;
}
// Tabulatorabstand
if( aMtrFldTabstop.GetText() != aMtrFldTabstop.GetSavedValue() )
{
- USHORT nWh = GetWhich( SID_ATTR_DEFTABSTOP );
+ sal_uInt16 nWh = GetWhich( SID_ATTR_DEFTABSTOP );
SfxMapUnit eUnit = rAttrs.GetPool()->GetMetric( nWh );
- SfxUInt16Item aDef( nWh,(USHORT)GetCoreValue( aMtrFldTabstop, eUnit ) );
+ SfxUInt16Item aDef( nWh,(sal_uInt16)GetCoreValue( aMtrFldTabstop, eUnit ) );
rAttrs.Put( aDef );
- bModified |= TRUE;
+ bModified |= sal_True;
}
- INT32 nX, nY;
+ sal_Int32 nX, nY;
if( SetScale( aCbScale.GetText(), nX, nY ) )
{
rAttrs.Put( SfxInt32Item( ATTR_OPTIONS_SCALE_X, nX ) );
rAttrs.Put( SfxInt32Item( ATTR_OPTIONS_SCALE_Y, nY ) );
- bModified = TRUE;
+ bModified = sal_True;
}
return( bModified );
@@ -516,7 +516,7 @@ void SdTpOptionsMisc::Reset( const SfxItemSet& rAttrs )
aCbxUsePrinterMetrics.SaveValue();
// Metrik
- USHORT nWhich = GetWhich( SID_ATTR_METRIC );
+ sal_uInt16 nWhich = GetWhich( SID_ATTR_METRIC );
aLbMetric.SetNoSelection();
if ( rAttrs.GetItemState( nWhich ) >= SFX_ITEM_AVAILABLE )
@@ -524,7 +524,7 @@ void SdTpOptionsMisc::Reset( const SfxItemSet& rAttrs )
const SfxUInt16Item& rItem = (SfxUInt16Item&)rAttrs.Get( nWhich );
long nFieldUnit = (long)rItem.GetValue();
- for ( USHORT i = 0; i < aLbMetric.GetEntryCount(); ++i )
+ for ( sal_uInt16 i = 0; i < aLbMetric.GetEntryCount(); ++i )
{
if ( (long)aLbMetric.GetEntryData( i ) == nFieldUnit )
{
@@ -545,9 +545,9 @@ void SdTpOptionsMisc::Reset( const SfxItemSet& rAttrs )
aLbMetric.SaveValue();
aMtrFldTabstop.SaveValue();
//Scale
- INT32 nX = ( (const SfxInt32Item&) rAttrs.
+ sal_Int32 nX = ( (const SfxInt32Item&) rAttrs.
Get( ATTR_OPTIONS_SCALE_X ) ).GetValue();
- INT32 nY = ( (const SfxInt32Item&) rAttrs.
+ sal_Int32 nY = ( (const SfxInt32Item&) rAttrs.
Get( ATTR_OPTIONS_SCALE_Y ) ).GetValue();
nWidth = ( (const SfxUInt32Item&) rAttrs.
Get( ATTR_OPTIONS_SCALE_WIDTH ) ).GetValue();
@@ -582,7 +582,7 @@ SfxTabPage* SdTpOptionsMisc::Create( Window* pWindow,
IMPL_LINK( SdTpOptionsMisc, SelectMetricHdl_Impl, ListBox *, EMPTYARG )
{
- USHORT nPos = aLbMetric.GetSelectEntryPos();
+ sal_uInt16 nPos = aLbMetric.GetSelectEntryPos();
if( nPos != LISTBOX_ENTRY_NOTFOUND )
{
@@ -695,11 +695,11 @@ void SdTpOptionsMisc::SetDrawMode()
IMPL_LINK( SdTpOptionsMisc, ModifyScaleHdl, void *, EMPTYARG )
{
// Originalgroesse berechnen
- INT32 nX, nY;
+ sal_Int32 nX, nY;
if( SetScale( aCbScale.GetText(), nX, nY ) )
{
- INT32 nW = nWidth * nY / nX;
- INT32 nH = nHeight * nY / nX;
+ sal_Int32 nW = nWidth * nY / nX;
+ sal_Int32 nH = nHeight * nY / nX;
SetMetricValue( aMtrFldOriginalWidth, nW, ePoolUnit );
SetMetricValue( aMtrFldOriginalHeight, nH, ePoolUnit );
@@ -749,7 +749,7 @@ IMPL_LINK( SdTpOptionsMisc, ModifyOriginalScaleHdl, void *, EMPTYARG )
// -----------------------------------------------------------------------
-String SdTpOptionsMisc::GetScale( INT32 nX, INT32 nY )
+String SdTpOptionsMisc::GetScale( sal_Int32 nX, sal_Int32 nY )
{
String aScale( UniString::CreateFromInt32( nX ) );
aScale.Append( TOKEN );
@@ -760,28 +760,28 @@ String SdTpOptionsMisc::GetScale( INT32 nX, INT32 nY )
// -----------------------------------------------------------------------
-BOOL SdTpOptionsMisc::SetScale( const String& aScale, INT32& rX, INT32& rY )
+sal_Bool SdTpOptionsMisc::SetScale( const String& aScale, sal_Int32& rX, sal_Int32& rY )
{
if( aScale.GetTokenCount( TOKEN ) != 2 )
- return( FALSE );
+ return( sal_False );
ByteString aTmp( aScale.GetToken( 0, TOKEN ), RTL_TEXTENCODING_ASCII_US );
if( !aTmp.IsNumericAscii() )
- return( FALSE );
+ return( sal_False );
rX = (long) aTmp.ToInt32();
if( rX == 0 )
- return( FALSE );
+ return( sal_False );
aTmp = ByteString( aScale.GetToken( 1, TOKEN ), RTL_TEXTENCODING_ASCII_US );
if( !aTmp.IsNumericAscii() )
- return( FALSE );
+ return( sal_False );
rY = (long) aTmp.ToInt32();
if( rY == 0 )
- return( FALSE );
+ return( sal_False );
- return( TRUE );
+ return( sal_True );
}
@@ -848,7 +848,7 @@ void SdTpOptionsMisc::PageCreated (SfxAllItemSet aSet)
SFX_ITEMSET_ARG (&aSet,pFlagItem,SfxUInt32Item,SID_SDMODE_FLAG,sal_False);
if (pFlagItem)
{
- UINT32 nFlags=pFlagItem->GetValue();
+ sal_uInt32 nFlags=pFlagItem->GetValue();
if ( ( nFlags & SD_DRAW_MODE ) == SD_DRAW_MODE )
SetDrawMode();
if ( ( nFlags & SD_IMPRESS_MODE ) == SD_IMPRESS_MODE )
diff --git a/sd/source/ui/dlg/unchss.cxx b/sd/source/ui/dlg/unchss.cxx
index e04b4547fc66..82593e31c851 100644..100755
--- a/sd/source/ui/dlg/unchss.cxx
+++ b/sd/source/ui/dlg/unchss.cxx
@@ -75,7 +75,7 @@ StyleSheetUndoAction::StyleSheetUndoAction(SdDrawDocument* pTheDoc,
// Layoutnamen und Separator loeschen
String aSep( RTL_CONSTASCII_USTRINGPARAM( SD_LT_SEPARATOR ) );
- USHORT nPos = aName.Search(aSep);
+ sal_uInt16 nPos = aName.Search(aSep);
if( nPos != STRING_NOTFOUND )
aName.Erase(0, nPos + aSep.Len());
diff --git a/sd/source/ui/dlg/vectdlg.cxx b/sd/source/ui/dlg/vectdlg.cxx
index 7cd0be451c4b..0eb30d78e45f 100644..100755
--- a/sd/source/ui/dlg/vectdlg.cxx
+++ b/sd/source/ui/dlg/vectdlg.cxx
@@ -166,7 +166,7 @@ Bitmap SdVectorizeDlg::GetPreparedBitmap( Bitmap& rBmp, Fraction& rScale )
else
rScale = Fraction( 1, 1 );
- aNew.ReduceColors( (USHORT) aNmLayers.GetValue(), BMP_REDUCE_SIMPLE );
+ aNew.ReduceColors( (sal_uInt16) aNmLayers.GetValue(), BMP_REDUCE_SIMPLE );
return aNew;
}
@@ -175,7 +175,7 @@ Bitmap SdVectorizeDlg::GetPreparedBitmap( Bitmap& rBmp, Fraction& rScale )
void SdVectorizeDlg::Calculate( Bitmap& rBmp, GDIMetaFile& rMtf )
{
- mpDocSh->SetWaitCursor( TRUE );
+ mpDocSh->SetWaitCursor( sal_True );
aPrgs.SetValue( 0 );
Fraction aScale;
@@ -184,7 +184,7 @@ void SdVectorizeDlg::Calculate( Bitmap& rBmp, GDIMetaFile& rMtf )
if( !!aTmp )
{
const Link aPrgsHdl( LINK( this, SdVectorizeDlg, ProgressHdl ) );
- aTmp.Vectorize( rMtf, (BYTE) aMtReduce.GetValue(), BMP_VECTORIZE_OUTER | BMP_VECTORIZE_REDUCE_EDGES, &aPrgsHdl );
+ aTmp.Vectorize( rMtf, (sal_uInt8) aMtReduce.GetValue(), BMP_VECTORIZE_OUTER | BMP_VECTORIZE_REDUCE_EDGES, &aPrgsHdl );
if( aCbFillHoles.IsChecked() )
{
@@ -231,7 +231,7 @@ void SdVectorizeDlg::Calculate( Bitmap& rBmp, GDIMetaFile& rMtf )
aTmp.ReleaseAccess( pRAcc );
- for( ULONG n = 0UL, nCount = rMtf.GetActionCount(); n < nCount; n++ )
+ for( sal_uLong n = 0UL, nCount = rMtf.GetActionCount(); n < nCount; n++ )
aNewMtf.AddAction( rMtf.GetAction( n )->Clone() );
aMap.SetScaleX( aMap.GetScaleX() * aScale );
@@ -243,7 +243,7 @@ void SdVectorizeDlg::Calculate( Bitmap& rBmp, GDIMetaFile& rMtf )
}
aPrgs.SetValue( 0 );
- mpDocSh->SetWaitCursor( FALSE );
+ mpDocSh->SetWaitCursor( sal_False );
}
// -----------------------------------------------------------------------------
@@ -251,7 +251,7 @@ void SdVectorizeDlg::Calculate( Bitmap& rBmp, GDIMetaFile& rMtf )
void SdVectorizeDlg::AddTile( BitmapReadAccess* pRAcc, GDIMetaFile& rMtf,
long nPosX, long nPosY, long nWidth, long nHeight )
{
- ULONG nSumR = 0UL, nSumG = 0UL, nSumB = 0UL;
+ sal_uLong nSumR = 0UL, nSumG = 0UL, nSumB = 0UL;
const long nRight = nPosX + nWidth - 1L;
const long nBottom = nPosY + nHeight - 1L;
const double fMult = 1.0 / ( nWidth * nHeight );
@@ -268,9 +268,9 @@ void SdVectorizeDlg::AddTile( BitmapReadAccess* pRAcc, GDIMetaFile& rMtf,
}
}
- const Color aColor( (BYTE) FRound( nSumR * fMult ),
- (BYTE) FRound( nSumG * fMult ),
- (BYTE) FRound( nSumB * fMult ) );
+ const Color aColor( (sal_uInt8) FRound( nSumR * fMult ),
+ (sal_uInt8) FRound( nSumG * fMult ),
+ (sal_uInt8) FRound( nSumB * fMult ) );
Rectangle aRect( Point( nPosX, nPosY ), Size( nWidth + 1, nHeight + 1 ) );
const Size& rMaxSize = rMtf.GetPrefSize();
@@ -283,8 +283,8 @@ void SdVectorizeDlg::AddTile( BitmapReadAccess* pRAcc, GDIMetaFile& rMtf,
if( aRect.Bottom() > ( rMaxSize.Height() - 1L ) )
aRect.Bottom() = rMaxSize.Height() - 1L;
- rMtf.AddAction( new MetaLineColorAction( aColor, TRUE ) );
- rMtf.AddAction( new MetaFillColorAction( aColor, TRUE ) );
+ rMtf.AddAction( new MetaLineColorAction( aColor, sal_True ) );
+ rMtf.AddAction( new MetaFillColorAction( aColor, sal_True ) );
rMtf.AddAction( new MetaRectAction( aRect ) );
}
@@ -292,7 +292,7 @@ void SdVectorizeDlg::AddTile( BitmapReadAccess* pRAcc, GDIMetaFile& rMtf,
IMPL_LINK( SdVectorizeDlg, ProgressHdl, void*, pData )
{
- aPrgs.SetValue( (USHORT)(ULONG) pData );
+ aPrgs.SetValue( (sal_uInt16)(sal_uLong) pData );
return 0L;
}
@@ -356,10 +356,10 @@ void SdVectorizeDlg::LoadSettings()
UniString::CreateFromAscii(
RTL_CONSTASCII_STRINGPARAM( SD_OPTION_VECTORIZE ) ),
SD_OPTION_LOAD ) );
- UINT16 nLayers;
- UINT16 nReduce;
- UINT16 nFillHoles;
- BOOL bFillHoles;
+ sal_uInt16 nLayers;
+ sal_uInt16 nReduce;
+ sal_uInt16 nFillHoles;
+ sal_Bool bFillHoles;
if( xIStm.Is() )
{
@@ -371,7 +371,7 @@ void SdVectorizeDlg::LoadSettings()
nLayers = 8;
nReduce = 0;
nFillHoles = 32;
- bFillHoles = FALSE;
+ bFillHoles = sal_False;
}
aNmLayers.SetValue( nLayers );
@@ -394,7 +394,7 @@ void SdVectorizeDlg::SaveSettings() const
if( xOStm.Is() )
{
SdIOCompat aCompat( *xOStm, STREAM_WRITE, 1 );
- *xOStm << (UINT16) aNmLayers.GetValue() << (UINT16) aMtReduce.GetValue();
- *xOStm << (UINT16) aMtFillHoles.GetValue() << aCbFillHoles.IsChecked();
+ *xOStm << (sal_uInt16) aNmLayers.GetValue() << (sal_uInt16) aMtReduce.GetValue();
+ *xOStm << (sal_uInt16) aMtFillHoles.GetValue() << aCbFillHoles.IsChecked();
}
}