summaryrefslogtreecommitdiff
path: root/framework/source/services
diff options
context:
space:
mode:
authorCarsten Driesner <cd@openoffice.org>2011-02-16 10:30:35 +0100
committerCarsten Driesner <cd@openoffice.org>2011-02-16 10:30:35 +0100
commit9fdc2716aada42ccb8f60e14555dab10de2c67eb (patch)
tree38fd489d7d0e4aaf5ef8dcf39ff013969fd7adf7 /framework/source/services
parentc696055fbc116a65aac158fe6747079a3af44be4 (diff)
parentcd0d6a5a6775f197fdb7e78b54c8133074a7a236 (diff)
fwk165: Rebase to DEV300m100
Diffstat (limited to 'framework/source/services')
-rw-r--r--framework/source/services/autorecovery.cxx16
-rw-r--r--framework/source/services/backingcomp.cxx8
-rw-r--r--framework/source/services/backingwindow.cxx26
-rw-r--r--framework/source/services/desktop.cxx2
-rw-r--r--framework/source/services/frame.cxx2
-rw-r--r--framework/source/services/license.cxx24
-rw-r--r--framework/source/services/tabwindowservice.cxx12
7 files changed, 45 insertions, 45 deletions
diff --git a/framework/source/services/autorecovery.cxx b/framework/source/services/autorecovery.cxx
index 4e3213081980..564e26f2651b 100644
--- a/framework/source/services/autorecovery.cxx
+++ b/framework/source/services/autorecovery.cxx
@@ -233,7 +233,7 @@ static const sal_Int32 GIVE_UP_RETRY = 1; // in
// should be flushed an exception ... so the special error handler for this scenario is triggered
// #define TRIGGER_FULL_DISC_CHECK
-// force "return FALSE" for the method impl_enoughDiscSpace().
+// force "return sal_False" for the method impl_enoughDiscSpace().
// #define SIMULATE_FULL_DISC
//-----------------------------------------------
@@ -927,7 +927,7 @@ void SAL_CALL AutoRecovery::notifyEvent(const css::document::EventObject& aEvent
else
if (aEvent.EventName.equals(EVENT_ON_UNLOAD))
{
- implts_deregisterDocument(xDocument, sal_True); // TRUE => stop listening for disposing() !
+ implts_deregisterDocument(xDocument, sal_True); // sal_True => stop listening for disposing() !
}
}
@@ -1022,7 +1022,7 @@ void SAL_CALL AutoRecovery::disposing(const css::lang::EventObject& aEvent)
css::uno::Reference< css::frame::XModel > xDocument(aEvent.Source, css::uno::UNO_QUERY);
if (xDocument.is())
{
- implts_deregisterDocument(xDocument, sal_False); // FALSE => dont call removeEventListener() .. because it's not needed here
+ implts_deregisterDocument(xDocument, sal_False); // sal_False => dont call removeEventListener() .. because it's not needed here
return;
}
@@ -1576,7 +1576,7 @@ void AutoRecovery::implts_updateTimer()
)
return;
- ULONG nMilliSeconds = 0;
+ sal_uLong nMilliSeconds = 0;
if (m_eTimerType == AutoRecovery::E_NORMAL_AUTOSAVE_INTERVALL)
{
nMilliSeconds = (m_nAutoSaveTimeIntervall*60000); // [min] => 60.000 ms
@@ -1910,7 +1910,7 @@ void AutoRecovery::implts_deregisterDocument(const css::uno::Reference< css::fra
AutoRecovery::st_impl_removeFile(aInfo.OldTempURL);
AutoRecovery::st_impl_removeFile(aInfo.NewTempURL);
- implts_flushConfigItem(aInfo, sal_True); // TRUE => remove it from config
+ implts_flushConfigItem(aInfo, sal_True); // sal_True => remove it from config
}
//-----------------------------------------------
@@ -1951,7 +1951,7 @@ void AutoRecovery::implts_updateModifiedState(const css::uno::Reference< css::fr
{
AutoRecovery::TDocumentInfo& rInfo = *pIt;
- // use TRUE as fallback ... so we recognize every document on EmergencySave/AutoRecovery!
+ // use sal_True as fallback ... so we recognize every document on EmergencySave/AutoRecovery!
sal_Bool bModified = sal_True;
css::uno::Reference< css::util::XModifiable > xModify(xDocument, css::uno::UNO_QUERY);
if (xModify.is())
@@ -3301,7 +3301,7 @@ void AutoRecovery::implts_cleanUpWorkingEntry(const DispatchParams& aParams)
AutoRecovery::st_impl_removeFile(rInfo.OldTempURL);
AutoRecovery::st_impl_removeFile(rInfo.NewTempURL);
- implts_flushConfigItem(rInfo, sal_True); // TRUE => remove it from xml config!
+ implts_flushConfigItem(rInfo, sal_True); // sal_True => remove it from xml config!
m_lDocCache.erase(pIt);
break; /// !!! pIt is not defined any longer ... further this function has finished it's work
@@ -3382,7 +3382,7 @@ void SAL_CALL AutoRecovery::getFastPropertyValue(css::uno::Any& aValue ,
sal_Bool bRecoveryData = ((sal_Bool)(m_lDocCache.size()>0));
// exists session data ... => then we cant say, that these
- // data are valid for recovery. So we have to return FALSE then!
+ // data are valid for recovery. So we have to return sal_False then!
if (bSessionData)
bRecoveryData = sal_False;
diff --git a/framework/source/services/backingcomp.cxx b/framework/source/services/backingcomp.cxx
index 627f26e0549c..b8db175886d2 100644
--- a/framework/source/services/backingcomp.cxx
+++ b/framework/source/services/backingcomp.cxx
@@ -506,7 +506,7 @@ void SAL_CALL BackingComp::attachFrame( /*IN*/ const css::uno::Reference< css::f
// disable full screen mode of the frame!
if (pParent->IsFullScreenMode())
{
- pParent->ShowFullScreenMode(FALSE);
+ pParent->ShowFullScreenMode(sal_False);
pParent->SetMenuBarMode(MENUBAR_MODE_NORMAL);
}
@@ -625,10 +625,10 @@ css::uno::Reference< css::frame::XFrame > SAL_CALL BackingComp::getFrame()
UI user.
@param bSuspend
- If its set to TRUE this controller should be suspended.
- FALSE will resuspend it.
+ If its set to sal_True this controller should be suspended.
+ sal_False will resuspend it.
- @return TRUE if the request could be finished successfully; FALSE otherwise.
+ @return sal_True if the request could be finished successfully; sal_False otherwise.
*/
sal_Bool SAL_CALL BackingComp::suspend( /*IN*/ sal_Bool )
diff --git a/framework/source/services/backingwindow.cxx b/framework/source/services/backingwindow.cxx
index 8c477a78892f..1d1e877a5a86 100644
--- a/framework/source/services/backingwindow.cxx
+++ b/framework/source/services/backingwindow.cxx
@@ -83,7 +83,7 @@ DecoToolBox::DecoToolBox( Window* pParent, WinBits nStyle ) :
ToolBox( pParent, nStyle )
{
SetBackground();
- SetPaintTransparent( TRUE );
+ SetPaintTransparent( sal_True );
}
void DecoToolBox::DataChanged( const DataChangedEvent& rDCEvt )
@@ -94,17 +94,17 @@ void DecoToolBox::DataChanged( const DataChangedEvent& rDCEvt )
{
calcMinSize();
SetBackground();
- SetPaintTransparent( TRUE );
+ SetPaintTransparent( sal_True );
}
}
void DecoToolBox::calcMinSize()
{
ToolBox aTbx( GetParent() );
- USHORT nItems = GetItemCount();
- for( USHORT i = 0; i < nItems; i++ )
+ sal_uInt16 nItems = GetItemCount();
+ for( sal_uInt16 i = 0; i < nItems; i++ )
{
- USHORT nId = GetItemId( i );
+ sal_uInt16 nId = GetItemId( i );
aTbx.InsertItem( nId, GetItemImage( nId ) );
}
aTbx.SetOutStyle( TOOLBOX_STYLE_FLAT );
@@ -193,8 +193,8 @@ BackingWindow::BackingWindow( Window* i_pParent ) :
// clean up resource stack
FreeResource();
- maWelcome.SetPaintTransparent( TRUE );
- maProduct.SetPaintTransparent( TRUE );
+ maWelcome.SetPaintTransparent( sal_True );
+ maProduct.SetPaintTransparent( sal_True );
EnableChildTransparentMode();
SetStyle( GetStyle() | WB_DIALOGCONTROL );
@@ -387,7 +387,7 @@ void BackingWindow::prepareRecentFileMenu()
aBuf.append( i+1 );
aBuf.appendAscii( ": " );
aBuf.append( aMenuTitle );
- mpRecentMenu->InsertItem( static_cast<USHORT>(i+1), aBuf.makeStringAndClear() );
+ mpRecentMenu->InsertItem( static_cast<sal_uInt16>(i+1), aBuf.makeStringAndClear() );
}
}
else
@@ -564,9 +564,9 @@ void BackingWindow::initControls()
MenuBar* pMBar = pSysWin->GetMenuBar();
if( pMBar )
{
- for( USHORT i = 0; i < pMBar->GetItemCount(); i++ )
+ for( sal_uInt16 i = 0; i < pMBar->GetItemCount(); i++ )
{
- USHORT nItemId = pMBar->GetItemId( i );
+ sal_uInt16 nItemId = pMBar->GetItemId( i );
String aItemText( pMBar->GetItemText( nItemId ) );
if( aItemText.Len() )
aMnemns.RegisterMnemonic( aItemText );
@@ -677,11 +677,11 @@ void BackingWindow::layoutButton(
{
rtl::OUString aURL( rtl::OUString::createFromAscii( i_pURL ? i_pURL : "" ) );
// setup button
- i_rBtn.SetPaintTransparent( TRUE );
+ i_rBtn.SetPaintTransparent( sal_True );
i_rBtn.SetClickHdl( LINK( this, BackingWindow, ClickHdl ) );
if( i_pURL && (! i_rOpt.IsModuleInstalled( i_eMod ) || i_rURLS.find( aURL ) == i_rURLS.end()) )
{
- i_rBtn.Enable( FALSE );
+ i_rBtn.Enable( sal_False );
}
// setup text
@@ -1136,7 +1136,7 @@ void BackingWindow::dispatchURL( const rtl::OUString& i_rURL,
if ( xDispatch.is() )
{
ImplDelayedDispatch* pDisp = new ImplDelayedDispatch( xDispatch, aDispatchURL, i_rArgs );
- ULONG nEventId = 0;
+ sal_uLong nEventId = 0;
if( ! Application::PostUserEvent( nEventId, Link( NULL, implDispatchDelayed ), pDisp ) )
delete pDisp; // event could not be posted for unknown reason, at least don't leak
}
diff --git a/framework/source/services/desktop.cxx b/framework/source/services/desktop.cxx
index 289757ec7874..3c89661af599 100644
--- a/framework/source/services/desktop.cxx
+++ b/framework/source/services/desktop.cxx
@@ -1521,7 +1521,7 @@ sal_Bool SAL_CALL Desktop::convertFastPropertyValue( css::uno::Any& aCon
// Register transaction and reject wrong calls.
TransactionGuard aTransaction( m_aTransactionManager, E_HARDEXCEPTIONS );
- // Initialize state with FALSE !!!
+ // Initialize state with sal_False !!!
// (Handle can be invalid)
sal_Bool bReturn = sal_False;
diff --git a/framework/source/services/frame.cxx b/framework/source/services/frame.cxx
index a6567b218369..b9dd626cf06d 100644
--- a/framework/source/services/frame.cxx
+++ b/framework/source/services/frame.cxx
@@ -280,7 +280,7 @@ Frame::Frame( const css::uno::Reference< css::lang::XMultiServiceFactory >& xFac
, PropertySetHelper ( xFactory,
&m_aLock,
&m_aTransactionManager,
- sal_False) // FALSE => dont release shared mutex on calling us!
+ sal_False) // sal_False => dont release shared mutex on calling us!
, ::cppu::OWeakObject ( )
// init member
, m_xFactory ( xFactory )
diff --git a/framework/source/services/license.cxx b/framework/source/services/license.cxx
index 18f3e21bf67d..f140b8e22886 100644
--- a/framework/source/services/license.cxx
+++ b/framework/source/services/license.cxx
@@ -243,7 +243,7 @@ static sal_Bool _parseDateTime(const ::rtl::OUString& aString, DateTime& aDateTi
sal_Int32 nMinute = aTimeString.getToken(0, ':', nIndex).toInt32();
sal_Int32 nSecond = aTimeString.getToken(0, ':', nIndex).toInt32();
- Date tmpDate((USHORT)nDay, (USHORT)nMonth, (USHORT)nYear);
+ Date tmpDate((sal_uInt16)nDay, (sal_uInt16)nMonth, (sal_uInt16)nYear);
Time tmpTime(nHour, nMinute, nSecond);
DateTime tmpDateTime(tmpDate, tmpTime);
if (aString.indexOf(aUTCString) < 0)
@@ -439,7 +439,7 @@ LicenseDialog::LicenseDialog(const ::rtl::OUString & aLicensePath, ResMgr *pResM
aArrow(this, ResId(IMG_ARROW, *pResMgr)),
aStrAccept( ResId(LICENSE_ACCEPT, *pResMgr) ),
aStrNotAccept( ResId(LICENSE_NOTACCEPT, *pResMgr) ),
- bEndReached(FALSE)
+ bEndReached(sal_False)
{
FreeResource();
@@ -502,7 +502,7 @@ IMPL_LINK( LicenseDialog, PageDownHdl, PushButton *, EMPTYARG )
IMPL_LINK( LicenseDialog, EndReachedHdl, LicenseView *, EMPTYARG )
{
- bEndReached = TRUE;
+ bEndReached = sal_True;
EnableControls();
@@ -532,7 +532,7 @@ void LicenseDialog::EnableControls()
{
if( !bEndReached &&
( aLicenseML.IsEndReached() || !aLicenseML.GetText().Len() ) )
- bEndReached = TRUE;
+ bEndReached = sal_True;
if ( bEndReached )
{
@@ -583,20 +583,20 @@ void LicenseView::ScrollDown( ScrollType eScroll )
pScroll->DoScrollAction( eScroll );
}
-BOOL LicenseView::IsEndReached() const
+sal_Bool LicenseView::IsEndReached() const
{
- BOOL bEndReached;
+ sal_Bool bEndReached;
ExtTextView* pView = GetTextView();
ExtTextEngine* pEdit = GetTextEngine();
- ULONG nHeight = pEdit->GetTextHeight();
+ sal_uLong nHeight = pEdit->GetTextHeight();
Size aOutSize = pView->GetWindow()->GetOutputSizePixel();
Point aBottom( 0, aOutSize.Height() );
- if ( (ULONG) pView->GetDocPos( aBottom ).Y() >= nHeight - 1 )
- bEndReached = TRUE;
+ if ( (sal_uLong) pView->GetDocPos( aBottom ).Y() >= nHeight - 1 )
+ bEndReached = sal_True;
else
- bEndReached = FALSE;
+ bEndReached = sal_False;
return bEndReached;
}
@@ -605,8 +605,8 @@ void LicenseView::Notify( SfxBroadcaster&, const SfxHint& rHint )
{
if ( rHint.IsA( TYPE(TextHint) ) )
{
- BOOL bLastVal = EndReached();
- ULONG nId = ((const TextHint&)rHint).GetId();
+ sal_Bool bLastVal = EndReached();
+ sal_uLong nId = ((const TextHint&)rHint).GetId();
if ( nId == TEXT_HINT_PARAINSERTED )
{
diff --git a/framework/source/services/tabwindowservice.cxx b/framework/source/services/tabwindowservice.cxx
index 9af8581652d3..ef29214bc229 100644
--- a/framework/source/services/tabwindowservice.cxx
+++ b/framework/source/services/tabwindowservice.cxx
@@ -119,7 +119,7 @@ TabWindowService::TabWindowService( const css::uno::Reference< css::lang::XMulti
, PropertySetHelper ( xFactory ,
&m_aLock ,
&m_aTransactionManager ,
- sal_False ) // FALSE => dont release shared mutex on calling us!
+ sal_False ) // sal_False => dont release shared mutex on calling us!
, OWeakObject ( )
// Init member
@@ -368,7 +368,7 @@ IMPL_LINK( TabWindowService, EventListener, VclSimpleEvent*, pEvent )
if ( !pEvent && !pEvent->ISA(VclWindowEvent))
return 0;
- ULONG nEventId = pEvent->GetId();
+ sal_uLong nEventId = pEvent->GetId();
VclWindowEvent* pWinEvt = static_cast< VclWindowEvent* >(pEvent);
css::uno::Reference< css::uno::XInterface > xThis ( static_cast< ::cppu::OWeakObject* >(this), css::uno::UNO_QUERY );
@@ -399,19 +399,19 @@ IMPL_LINK( TabWindowService, EventListener, VclSimpleEvent*, pEvent )
switch (nEventId)
{
case VCLEVENT_TABPAGE_ACTIVATE :
- pListener->activated( (sal_Int32)(ULONG)pWinEvt->GetData() );
+ pListener->activated( (sal_Int32)(sal_uLong)pWinEvt->GetData() );
break;
case VCLEVENT_TABPAGE_DEACTIVATE :
- pListener->deactivated( (sal_Int32)(ULONG)pWinEvt->GetData() );
+ pListener->deactivated( (sal_Int32)(sal_uLong)pWinEvt->GetData() );
break;
case VCLEVENT_TABPAGE_INSERTED :
- pListener->inserted( (sal_Int32)(ULONG)pWinEvt->GetData() );
+ pListener->inserted( (sal_Int32)(sal_uLong)pWinEvt->GetData() );
break;
case VCLEVENT_TABPAGE_REMOVED :
- pListener->removed( (sal_Int32)(ULONG)pWinEvt->GetData() );
+ pListener->removed( (sal_Int32)(sal_uLong)pWinEvt->GetData() );
break;
case VCLEVENT_TABPAGE_PAGETEXTCHANGED :