summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-03-14 07:50:04 +0200
committerNoel Grandin <noel@peralex.com>2014-03-14 07:50:34 +0200
commite7ea15aef2ac619c153de57cb2bd97ab8dbadf68 (patch)
tree2575b322f5b1e78773dfab87222ce0f8358d959f /sfx2
parenta8f721ff96121697de8a97856ba4da145fc0c14e (diff)
sfx2: sal_Bool->bool
Change-Id: Ifd9bc57fd0c6d32796013cb9fca9c935a2f71e54
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/bastyp/fltfnc.cxx20
-rw-r--r--sfx2/source/bastyp/fltlst.cxx2
-rw-r--r--sfx2/source/bastyp/frmhtml.cxx2
-rw-r--r--sfx2/source/bastyp/frmhtmlw.cxx27
-rw-r--r--sfx2/source/dialog/filedlghelper.cxx4
-rw-r--r--sfx2/source/doc/docinsert.cxx4
-rw-r--r--sfx2/source/doc/frmdescr.cxx20
-rw-r--r--sfx2/source/doc/sfxbasemodel.cxx2
-rw-r--r--sfx2/source/view/frame.cxx66
-rw-r--r--sfx2/source/view/frame2.cxx14
-rw-r--r--sfx2/source/view/ipclient.cxx8
-rw-r--r--sfx2/source/view/viewfrm.cxx8
12 files changed, 89 insertions, 88 deletions
diff --git a/sfx2/source/bastyp/fltfnc.cxx b/sfx2/source/bastyp/fltfnc.cxx
index 5e1093699441..f86c1da62e18 100644
--- a/sfx2/source/bastyp/fltfnc.cxx
+++ b/sfx2/source/bastyp/fltfnc.cxx
@@ -410,12 +410,12 @@ sal_uInt32 SfxFilterMatcher::GuessFilterIgnoringContent(
sal_uInt32 SfxFilterMatcher::GuessFilter( SfxMedium& rMedium, const SfxFilter**ppFilter, SfxFilterFlags nMust, SfxFilterFlags nDont ) const
{
- return GuessFilterControlDefaultUI( rMedium, ppFilter, nMust, nDont, sal_True );
+ return GuessFilterControlDefaultUI( rMedium, ppFilter, nMust, nDont, true );
}
-sal_uInt32 SfxFilterMatcher::GuessFilterControlDefaultUI( SfxMedium& rMedium, const SfxFilter** ppFilter, SfxFilterFlags nMust, SfxFilterFlags nDont, sal_Bool /*bDefUI*/ ) const
+sal_uInt32 SfxFilterMatcher::GuessFilterControlDefaultUI( SfxMedium& rMedium, const SfxFilter** ppFilter, SfxFilterFlags nMust, SfxFilterFlags nDont, bool /*bDefUI*/ ) const
{
const SfxFilter* pOldFilter = *ppFilter;
@@ -509,7 +509,7 @@ sal_uInt32 SfxFilterMatcher::GuessFilterControlDefaultUI( SfxMedium& rMedium, c
}
-sal_Bool SfxFilterMatcher::IsFilterInstalled_Impl( const SfxFilter* pFilter )
+bool SfxFilterMatcher::IsFilterInstalled_Impl( const SfxFilter* pFilter )
{
if ( pFilter->GetFilterFlags() & SFX_FILTER_MUSTINSTALL )
{
@@ -535,14 +535,14 @@ sal_Bool SfxFilterMatcher::IsFilterInstalled_Impl( const SfxFilter* pFilter )
OUString aText( SfxResId(STR_FILTER_CONSULT_SERVICE).toString() );
aText = aText.replaceFirst( "$(FILTER)", pFilter->GetUIName() );
InfoBox ( NULL, aText ).Execute();
- return sal_False;
+ return false;
}
else
- return sal_True;
+ return true;
}
-sal_uInt32 SfxFilterMatcher::DetectFilter( SfxMedium& rMedium, const SfxFilter**ppFilter, sal_Bool /*bPlugIn*/, sal_Bool bAPI ) const
+sal_uInt32 SfxFilterMatcher::DetectFilter( SfxMedium& rMedium, const SfxFilter**ppFilter, bool /*bPlugIn*/, bool bAPI ) const
/* [Description]
Here the Filter selection box is pulled up. Otherwise GuessFilter
@@ -825,7 +825,7 @@ const SfxFilter* SfxFilterMatcher::GetFilter4FilterName( const OUString& rName,
}
}
- SfxFilterContainer::ReadSingleFilter_Impl( rName, xTypeCFG, xFilterCFG, sal_False );
+ SfxFilterContainer::ReadSingleFilter_Impl( rName, xTypeCFG, xFilterCFG, false );
}
}
@@ -931,7 +931,7 @@ void SfxFilterContainer::ReadSingleFilter_Impl(
const OUString& rName,
const uno::Reference< container::XNameAccess >& xTypeCFG,
const uno::Reference< container::XNameAccess >& xFilterCFG,
- sal_Bool bUpdate
+ bool bUpdate
)
{
OUString sFilterName( rName );
@@ -1124,7 +1124,7 @@ void SfxFilterContainer::ReadSingleFilter_Impl(
}
}
-void SfxFilterContainer::ReadFilters_Impl( sal_Bool bUpdate )
+void SfxFilterContainer::ReadFilters_Impl( bool bUpdate )
{
SAL_INFO( "sfx.bastyp", "SfxFilterContainer::ReadFilters" );
if ( !pFilterArr )
@@ -1157,7 +1157,7 @@ void SfxFilterContainer::ReadFilters_Impl( sal_Bool bUpdate )
// and change it back for all valid filters afterwards.
if( !rList.empty() )
{
- bUpdate = sal_True;
+ bUpdate = true;
SfxFilter* pFilter;
for ( size_t i = 0, n = rList.size(); i < n; ++i )
{
diff --git a/sfx2/source/bastyp/fltlst.cxx b/sfx2/source/bastyp/fltlst.cxx
index 5792dba34857..9afef3b390fd 100644
--- a/sfx2/source/bastyp/fltlst.cxx
+++ b/sfx2/source/bastyp/fltlst.cxx
@@ -108,7 +108,7 @@ void SAL_CALL SfxFilterListener::refreshed( const lang::EventObject& aSource ) t
(xContainer==m_xFilterCache)
)
{
- SfxFilterContainer::ReadFilters_Impl( sal_True );
+ SfxFilterContainer::ReadFilters_Impl( true );
}
}
diff --git a/sfx2/source/bastyp/frmhtml.cxx b/sfx2/source/bastyp/frmhtml.cxx
index ecdc5ee5a63b..f9541d4006f5 100644
--- a/sfx2/source/bastyp/frmhtml.cxx
+++ b/sfx2/source/bastyp/frmhtml.cxx
@@ -109,7 +109,7 @@ void SfxFrameHTMLParser::ParseFrameOptions(
break;
}
case HTML_O_NORESIZE:
- pFrame->SetResizable( sal_False );
+ pFrame->SetResizable( false );
break;
default:
if (aOption.GetTokenString().equalsIgnoreAsciiCase(HTML_O_READONLY))
diff --git a/sfx2/source/bastyp/frmhtmlw.cxx b/sfx2/source/bastyp/frmhtmlw.cxx
index a0d20f8d1f7c..df6971203043 100644
--- a/sfx2/source/bastyp/frmhtmlw.cxx
+++ b/sfx2/source/bastyp/frmhtmlw.cxx
@@ -57,8 +57,9 @@ static sal_Char const sHTML_MIME_text_html[] = "text/html; charset=";
void SfxFrameHTMLWriter::OutMeta( SvStream& rStrm,
const sal_Char *pIndent,
const OUString& rName,
- const OUString& rContent, sal_Bool bHTTPEquiv,
- rtl_TextEncoding eDestEnc,
+ const OUString& rContent,
+ bool bHTTPEquiv,
+ rtl_TextEncoding eDestEnc,
OUString *pNonConvertableChars )
{
rStrm.WriteCharPtr( SAL_NEWLINE_STRING );
@@ -91,7 +92,7 @@ void SfxFrameHTMLWriter::Out_DocInfo( SvStream& rStrm, const OUString& rBaseURL,
{
OUString aContentType(sHTML_MIME_text_html);
aContentType += OUString(pCharSet, strlen(pCharSet), RTL_TEXTENCODING_UTF8);
- OutMeta( rStrm, pIndent, OOO_STRING_SVTOOLS_HTML_META_content_type, aContentType, sal_True,
+ OutMeta( rStrm, pIndent, OOO_STRING_SVTOOLS_HTML_META_content_type, aContentType, true,
eDestEnc, pNonConvertableChars );
}
@@ -132,7 +133,7 @@ void SfxFrameHTMLWriter::Out_DocInfo( SvStream& rStrm, const OUString& rBaseURL,
OUString os( "$_OS" );
::rtl::Bootstrap::expandMacros(os);
sGenerator = sGenerator.replaceFirst( "%1", os );
- OutMeta( rStrm, pIndent, OOO_STRING_SVTOOLS_HTML_META_generator, sGenerator, sal_False, eDestEnc, pNonConvertableChars );
+ OutMeta( rStrm, pIndent, OOO_STRING_SVTOOLS_HTML_META_generator, sGenerator, false, eDestEnc, pNonConvertableChars );
if( i_xDocProps.is() )
{
@@ -151,14 +152,14 @@ void SfxFrameHTMLWriter::Out_DocInfo( SvStream& rStrm, const OUString& rBaseURL,
rBaseURL, rReloadURL);
}
- OutMeta( rStrm, pIndent, OOO_STRING_SVTOOLS_HTML_META_refresh, sContent, sal_True,
+ OutMeta( rStrm, pIndent, OOO_STRING_SVTOOLS_HTML_META_refresh, sContent, true,
eDestEnc, pNonConvertableChars );
}
// Author
const OUString& rAuthor = i_xDocProps->getAuthor();
if( !rAuthor.isEmpty() )
- OutMeta( rStrm, pIndent, OOO_STRING_SVTOOLS_HTML_META_author, rAuthor, sal_False,
+ OutMeta( rStrm, pIndent, OOO_STRING_SVTOOLS_HTML_META_author, rAuthor, false,
eDestEnc, pNonConvertableChars );
// created
@@ -168,13 +169,13 @@ void SfxFrameHTMLWriter::Out_DocInfo( SvStream& rStrm, const OUString& rBaseURL,
OUString sOut = OUString::number(aD.GetDate());
sOut += ";";
sOut += OUString::number(aT.GetTime());
- OutMeta( rStrm, pIndent, OOO_STRING_SVTOOLS_HTML_META_created, sOut, sal_False,
+ OutMeta( rStrm, pIndent, OOO_STRING_SVTOOLS_HTML_META_created, sOut, false,
eDestEnc, pNonConvertableChars );
// changedby
const OUString& rChangedBy = i_xDocProps->getModifiedBy();
if( !rChangedBy.isEmpty() )
- OutMeta( rStrm, pIndent, OOO_STRING_SVTOOLS_HTML_META_changedby, rChangedBy, sal_False,
+ OutMeta( rStrm, pIndent, OOO_STRING_SVTOOLS_HTML_META_changedby, rChangedBy, false,
eDestEnc, pNonConvertableChars );
// changed
@@ -184,26 +185,26 @@ void SfxFrameHTMLWriter::Out_DocInfo( SvStream& rStrm, const OUString& rBaseURL,
sOut = OUString::number(aD2.GetDate());
sOut += ";";
sOut += OUString::number(aT2.GetTime());
- OutMeta( rStrm, pIndent, OOO_STRING_SVTOOLS_HTML_META_changed, sOut, sal_False,
+ OutMeta( rStrm, pIndent, OOO_STRING_SVTOOLS_HTML_META_changed, sOut, false,
eDestEnc, pNonConvertableChars );
// Subject
const OUString& rTheme = i_xDocProps->getSubject();
if( !rTheme.isEmpty() )
- OutMeta( rStrm, pIndent, OOO_STRING_SVTOOLS_HTML_META_classification, rTheme, sal_False,
+ OutMeta( rStrm, pIndent, OOO_STRING_SVTOOLS_HTML_META_classification, rTheme, false,
eDestEnc, pNonConvertableChars );
// Description
const OUString& rComment = i_xDocProps->getDescription();
if( !rComment.isEmpty() )
- OutMeta( rStrm, pIndent, OOO_STRING_SVTOOLS_HTML_META_description, rComment, sal_False,
+ OutMeta( rStrm, pIndent, OOO_STRING_SVTOOLS_HTML_META_description, rComment, false,
eDestEnc, pNonConvertableChars);
// Keywords
OUString Keywords = ::comphelper::string::convertCommaSeparated(
i_xDocProps->getKeywords());
if( !Keywords.isEmpty() )
- OutMeta( rStrm, pIndent, OOO_STRING_SVTOOLS_HTML_META_keywords, Keywords, sal_False,
+ OutMeta( rStrm, pIndent, OOO_STRING_SVTOOLS_HTML_META_keywords, Keywords, false,
eDestEnc, pNonConvertableChars);
uno::Reference < script::XTypeConverter > xConverter( script::Converter::create(
@@ -226,7 +227,7 @@ void SfxFrameHTMLWriter::Out_DocInfo( SvStream& rStrm, const OUString& rBaseURL,
OUString str;
aStr >>= str;
OUString valstr(comphelper::string::stripEnd(str, ' '));
- OutMeta( rStrm, pIndent, name, valstr, sal_False,
+ OutMeta( rStrm, pIndent, name, valstr, false,
eDestEnc, pNonConvertableChars );
}
catch (const uno::Exception&)
diff --git a/sfx2/source/dialog/filedlghelper.cxx b/sfx2/source/dialog/filedlghelper.cxx
index b2d9989f8b48..79df9c844e9a 100644
--- a/sfx2/source/dialog/filedlghelper.cxx
+++ b/sfx2/source/dialog/filedlghelper.cxx
@@ -2390,9 +2390,9 @@ short FileDialogHelper::GetDialogType() const
return mpImp ? mpImp->m_nDialogType : 0;
}
-sal_Bool FileDialogHelper::IsPasswordEnabled() const
+bool FileDialogHelper::IsPasswordEnabled() const
{
- return mpImp ? mpImp->isPasswordEnabled() : sal_False;
+ return mpImp && mpImp->isPasswordEnabled();
}
OUString FileDialogHelper::GetRealFilter() const
diff --git a/sfx2/source/doc/docinsert.cxx b/sfx2/source/doc/docinsert.cxx
index 6c57bd3882f0..260fb429589c 100644
--- a/sfx2/source/doc/docinsert.cxx
+++ b/sfx2/source/doc/docinsert.cxx
@@ -98,7 +98,7 @@ SfxMedium* DocumentInserter::CreateMedium()
pMatcher = new SfxFilterMatcher();
const SfxFilter* pFilter = NULL;
- sal_uInt32 nError = pMatcher->DetectFilter( *pMedium, &pFilter, sal_False );
+ sal_uInt32 nError = pMatcher->DetectFilter( *pMedium, &pFilter, false );
if ( nError == ERRCODE_NONE && pFilter )
pMedium->SetFilter( pFilter );
else
@@ -128,7 +128,7 @@ SfxMediumList* DocumentInserter::CreateMediumList()
SfxFilterMatcher aMatcher( m_sDocFactory );
const SfxFilter* pFilter = NULL;
- sal_uInt32 nError = aMatcher.DetectFilter( *pMedium, &pFilter, sal_False );
+ sal_uInt32 nError = aMatcher.DetectFilter( *pMedium, &pFilter, false );
if ( nError == ERRCODE_NONE && pFilter )
pMedium->SetFilter( pFilter );
else
diff --git a/sfx2/source/doc/frmdescr.cxx b/sfx2/source/doc/frmdescr.cxx
index 2d1440d81a99..8f97af425d00 100644
--- a/sfx2/source/doc/frmdescr.cxx
+++ b/sfx2/source/doc/frmdescr.cxx
@@ -32,9 +32,9 @@ struct SfxFrameDescriptor_Impl
{
Wallpaper* pWallpaper;
SfxItemSet* pArgs;
- sal_Bool bEditable;
+ bool bEditable;
- SfxFrameDescriptor_Impl() : pWallpaper( NULL ), pArgs( NULL ), bEditable( sal_True ) {}
+ SfxFrameDescriptor_Impl() : pWallpaper( NULL ), pArgs( NULL ), bEditable( true ) {}
~SfxFrameDescriptor_Impl()
{
delete pWallpaper;
@@ -49,10 +49,10 @@ SfxFrameDescriptor::SfxFrameDescriptor() :
eSizeSelector( SIZE_ABS ),
nHasBorder( BORDER_YES ),
nItemId( 0 ),
- bResizeHorizontal( sal_True ),
- bResizeVertical( sal_True ),
- bHasUI( sal_True ),
- bReadOnly( sal_False )
+ bResizeHorizontal( true ),
+ bResizeVertical( true ),
+ bHasUI( true ),
+ bReadOnly( false )
{
pImp = new SfxFrameDescriptor_Impl;
@@ -88,17 +88,17 @@ void SfxFrameDescriptor::SetActualURL( const INetURLObject& rURL )
SetActualURL(rURL.GetMainURL( INetURLObject::DECODE_TO_IURI ));
}
-void SfxFrameDescriptor::SetEditable( sal_Bool bSet )
+void SfxFrameDescriptor::SetEditable( bool bSet )
{
pImp->bEditable = bSet;
}
-sal_Bool SfxFrameDescriptor::IsEditable() const
+bool SfxFrameDescriptor::IsEditable() const
{
return pImp->bEditable;
}
-SfxFrameDescriptor* SfxFrameDescriptor::Clone( sal_Bool bWithIds ) const
+SfxFrameDescriptor* SfxFrameDescriptor::Clone( bool bWithIds ) const
{
SfxFrameDescriptor *pFrame = new SfxFrameDescriptor;
@@ -132,7 +132,7 @@ SfxFrameDescriptor* SfxFrameDescriptor::Clone( sal_Bool bWithIds ) const
return pFrame;
}
-sal_Bool SfxFrameDescriptor::HasFrameBorder() const
+bool SfxFrameDescriptor::HasFrameBorder() const
{
return (nHasBorder & BORDER_YES) != 0;
}
diff --git a/sfx2/source/doc/sfxbasemodel.cxx b/sfx2/source/doc/sfxbasemodel.cxx
index dd8da00f4e4d..ac4e6c239fd3 100644
--- a/sfx2/source/doc/sfxbasemodel.cxx
+++ b/sfx2/source/doc/sfxbasemodel.cxx
@@ -4315,7 +4315,7 @@ Reference< frame::XController2 > SAL_CALL SfxBaseModel::createViewController(
// some initial view settings, coming from our most recent attachResource call
::comphelper::NamedValueCollection aDocumentLoadArgs( getArgs() );
if ( aDocumentLoadArgs.getOrDefault( "ViewOnly", false ) )
- pViewFrame->GetFrame().SetMenuBarOn_Impl( sal_False );
+ pViewFrame->GetFrame().SetMenuBarOn_Impl( false );
const sal_Int16 nPluginMode = aDocumentLoadArgs.getOrDefault( "PluginMode", sal_Int16( 0 ) );
if ( nPluginMode == 1 )
diff --git a/sfx2/source/view/frame.cxx b/sfx2/source/view/frame.cxx
index dc794e56f258..1fd37a7e69bd 100644
--- a/sfx2/source/view/frame.cxx
+++ b/sfx2/source/view/frame.cxx
@@ -121,17 +121,17 @@ SfxFrame::~SfxFrame()
delete pImp;
}
-sal_Bool SfxFrame::DoClose()
+bool SfxFrame::DoClose()
{
// Actually, one more PrepareClose is still needed!
- sal_Bool bRet = sal_False;
+ bool bRet = false;
if ( !pImp->bClosing )
{
pImp->bClosing = sal_True;
CancelTransfers();
// now close frame; it will be deleted if this call is successful, so don't use any members after that!
- bRet = sal_True;
+ bRet = true;
try
{
Reference< XCloseable > xCloseable ( pImp->xFrame, UNO_QUERY );
@@ -149,7 +149,7 @@ sal_Bool SfxFrame::DoClose()
catch( ::com::sun::star::util::CloseVetoException& )
{
pImp->bClosing = sal_False;
- bRet = sal_False;
+ bRet = false;
}
catch( ::com::sun::star::lang::DisposedException& )
{
@@ -159,9 +159,9 @@ sal_Bool SfxFrame::DoClose()
return bRet;
}
-sal_Bool SfxFrame::DoClose_Impl()
+bool SfxFrame::DoClose_Impl()
{
- sal_Bool bRet = sal_True;
+ bool bRet = true;
SfxBindings* pBindings = NULL;
if ( pImp->pCurrentViewFrame )
pBindings = &pImp->pCurrentViewFrame->GetBindings();
@@ -181,18 +181,18 @@ sal_Bool SfxFrame::DoClose_Impl()
return bRet;
}
-sal_Bool SfxFrame::DocIsModified_Impl()
+bool SfxFrame::DocIsModified_Impl()
{
if ( pImp->pCurrentViewFrame && pImp->pCurrentViewFrame->GetObjectShell() &&
pImp->pCurrentViewFrame->GetObjectShell()->IsModified() )
- return sal_True;
+ return true;
for( sal_uInt16 nPos = GetChildFrameCount(); nPos--; )
if( (*pChildArr)[ nPos ]->DocIsModified_Impl() )
- return sal_True;
- return sal_False;
+ return true;
+ return false;
}
-bool SfxFrame::PrepareClose_Impl( sal_Bool bUI )
+bool SfxFrame::PrepareClose_Impl( bool bUI )
{
bool nRet = true;
@@ -269,7 +269,7 @@ SfxFrame& SfxFrame::GetTopFrame() const
return *const_cast< SfxFrame* >( pParent );
}
-sal_Bool SfxFrame::IsClosing_Impl() const
+bool SfxFrame::IsClosing_Impl() const
{
return pImp->bClosing;
}
@@ -284,7 +284,7 @@ sal_uInt16 SfxFrame::GetChildFrameCount() const
return pChildArr ? pChildArr->size() : 0;
}
-void SfxFrame::CancelTransfers( sal_Bool /*bCancelLoadEnv*/ )
+void SfxFrame::CancelTransfers( bool /*bCancelLoadEnv*/ )
{
if( !pImp->bInCancelTransfers )
{
@@ -328,20 +328,20 @@ SfxDispatcher* SfxFrame::GetDispatcher_Impl() const
return GetParentFrame()->GetDispatcher_Impl();
}
-sal_Bool SfxFrame::IsAutoLoadLocked_Impl() const
+bool SfxFrame::IsAutoLoadLocked_Impl() const
{
// Its own Docucument is locked?
const SfxObjectShell* pObjSh = GetCurrentDocument();
if ( !pObjSh || !pObjSh->IsAutoLoadLocked() )
- return sal_False;
+ return false;
// Its children are locked?
for ( sal_uInt16 n = GetChildFrameCount(); n--; )
if ( !GetChildFrame(n)->IsAutoLoadLocked_Impl() )
- return sal_False;
+ return false;
// otherwise allow AutoLoad
- return sal_True;
+ return true;
}
SfxObjectShell* SfxFrame::GetCurrentDocument() const
@@ -376,16 +376,16 @@ void SfxFrame::GetViewData_Impl()
if( pViewFrame && pViewFrame->GetViewShell() )
{
const SfxMedium *pMed = GetCurrentDocument()->GetMedium();
- sal_Bool bReadOnly = pMed->GetOpenMode() == SFX_STREAM_READONLY;
+ bool bReadOnly = pMed->GetOpenMode() == SFX_STREAM_READONLY;
GetDescriptor()->SetReadOnly( bReadOnly );
SfxItemSet *pSet = GetDescriptor()->GetArgs();
- sal_Bool bGetViewData = sal_False;
+ bool bGetViewData = false;
if ( GetController().is() && pSet->GetItemState( SID_VIEW_DATA ) != SFX_ITEM_SET )
{
::com::sun::star::uno::Any aData = GetController()->getViewData();
pSet->Put( SfxUsrAnyItem( SID_VIEW_DATA, aData ) );
- bGetViewData = sal_True;
+ bGetViewData = true;
}
if ( pViewFrame->GetCurViewId() )
@@ -423,7 +423,7 @@ void SfxFrame::UpdateDescriptor( SfxObjectShell *pDoc )
GetDescriptor()->SetActualURL( pMed->GetOrigURL() );
SFX_ITEMSET_ARG( pMed->GetItemSet(), pItem, SfxBoolItem, SID_EDITDOC, false );
- sal_Bool bEditable = ( !pItem || pItem->GetValue() );
+ bool bEditable = ( !pItem || pItem->GetValue() );
GetDescriptor()->SetEditable( bEditable );
@@ -503,17 +503,17 @@ void SfxFrame::GetTargetList( TargetList& rList ) const
-sal_Bool SfxFrame::IsParent( SfxFrame *pFrame ) const
+bool SfxFrame::IsParent( SfxFrame *pFrame ) const
{
SfxFrame *pParent = pParentFrame;
while ( pParent )
{
if ( pParent == pFrame )
- return sal_True;
+ return true;
pParent = pParent->pParentFrame;
}
- return sal_False;
+ return false;
}
void SfxFrame::InsertTopFrame_Impl( SfxFrame* pFrame )
@@ -663,7 +663,7 @@ bool SfxUnoFrameItem::PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8
return ( rVal >>= m_xFrame );
}
-SfxFrameIterator::SfxFrameIterator( const SfxFrame& rFrame, sal_Bool bRecur )
+SfxFrameIterator::SfxFrameIterator( const SfxFrame& rFrame, bool bRecur )
: pFrame( &rFrame )
, bRecursive( bRecur )
{}
@@ -707,9 +707,9 @@ SfxFrame* SfxFrameIterator::NextSibling_Impl( SfxFrame& rPrev )
return pRet;
}
-sal_Bool SfxFrame::HasComponent() const
+bool SfxFrame::HasComponent() const
{
- return sal_False;
+ return false;
}
::com::sun::star::uno::Reference< ::com::sun::star::frame::XController > SfxFrame::GetController() const
@@ -755,12 +755,12 @@ void SfxFrame::AppearWithUpdate()
GetCurrentViewFrame()->GetDispatcher()->Update_Impl( true );
}
-void SfxFrame::SetOwnsBindings_Impl( sal_Bool bSet )
+void SfxFrame::SetOwnsBindings_Impl( bool bSet )
{
pImp->bOwnsBindings = bSet;
}
-sal_Bool SfxFrame::OwnsBindings_Impl() const
+bool SfxFrame::OwnsBindings_Impl() const
{
return pImp->bOwnsBindings;
}
@@ -787,7 +787,7 @@ void SfxFrame::SetToolSpaceBorderPixel_Impl( const SvBorder& rBorder )
if ( GetParentFrame() )
{
- sal_Bool bHasTools = rBorder.Left() != rBorder.Right() || rBorder.Top() != rBorder.Bottom();
+ bool bHasTools = rBorder.Left() != rBorder.Right() || rBorder.Top() != rBorder.Bottom();
pF->GetWindow().SetBorderStyle( bHasTools ? WINDOW_BORDER_NORMAL : WINDOW_BORDER_NOBORDER );
}
@@ -871,17 +871,17 @@ void SfxFrame::GrabFocusOnComponent_Impl()
pFocusWindow->GrabFocus();
}
-void SfxFrame::ReleasingComponent_Impl( sal_Bool bSet )
+void SfxFrame::ReleasingComponent_Impl( bool bSet )
{
pImp->bReleasingComponent = bSet;
}
-sal_Bool SfxFrame::IsInPlace() const
+bool SfxFrame::IsInPlace() const
{
return pImp->bInPlace;
}
-void SfxFrame::SetInPlace_Impl( sal_Bool bSet )
+void SfxFrame::SetInPlace_Impl( bool bSet )
{
pImp->bInPlace = bSet;
}
diff --git a/sfx2/source/view/frame2.cxx b/sfx2/source/view/frame2.cxx
index 8f3e89c43f42..880b81ac2c3f 100644
--- a/sfx2/source/view/frame2.cxx
+++ b/sfx2/source/view/frame2.cxx
@@ -316,7 +316,7 @@ SfxFrame::SfxFrame( Window& i_rContainerWindow, bool i_bHidden )
pWindow->Show();
}
-void SfxFrame::SetPresentationMode( sal_Bool bSet )
+void SfxFrame::SetPresentationMode( bool bSet )
{
if ( GetCurrentViewFrame() )
GetCurrentViewFrame()->GetWindow().SetBorderStyle( bSet ? WINDOW_BORDER_NOBORDER : WINDOW_BORDER_NORMAL );
@@ -358,18 +358,18 @@ Window& SfxFrame::GetWindow() const
return *pWindow;
}
-sal_Bool SfxFrame::Close()
+bool SfxFrame::Close()
{
delete this;
- return sal_True;
+ return true;
}
-void SfxFrame::LockResize_Impl( sal_Bool bLock )
+void SfxFrame::LockResize_Impl( bool bLock )
{
pImp->bLockResize = bLock;
}
-void SfxFrame::SetMenuBarOn_Impl( sal_Bool bOn )
+void SfxFrame::SetMenuBarOn_Impl( bool bOn )
{
pImp->bMenuBarOn = bOn;
@@ -393,7 +393,7 @@ void SfxFrame::SetMenuBarOn_Impl( sal_Bool bOn )
}
}
-sal_Bool SfxFrame::IsMenuBarOn_Impl() const
+bool SfxFrame::IsMenuBarOn_Impl() const
{
return pImp->bMenuBarOn;
}
@@ -412,7 +412,7 @@ void SfxFrame::PrepareForDoc_Impl( SfxObjectShell& i_rDoc )
// plugin mode
sal_Int16 nPluginMode = aDocumentArgs.getOrDefault( "PluginMode", sal_Int16( 0 ) );
if ( nPluginMode && ( nPluginMode != 2 ) )
- SetInPlace_Impl( sal_True );
+ SetInPlace_Impl( true );
}
bool SfxFrame::IsMarkedHidden_Impl() const
diff --git a/sfx2/source/view/ipclient.cxx b/sfx2/source/view/ipclient.cxx
index 2b5ec14759c1..7db5e129e8fe 100644
--- a/sfx2/source/view/ipclient.cxx
+++ b/sfx2/source/view/ipclient.cxx
@@ -930,7 +930,7 @@ ErrCode SfxInPlaceClient::DoVerb( long nVerb )
{
if ( m_pViewSh )
- m_pViewSh->GetViewFrame()->GetTopFrame().LockResize_Impl(sal_True);
+ m_pViewSh->GetViewFrame()->GetTopFrame().LockResize_Impl(true);
try
{
m_pImp->m_xObject->setClientSite( m_pImp->m_xClient );
@@ -985,7 +985,7 @@ ErrCode SfxInPlaceClient::DoVerb( long nVerb )
if ( m_pViewSh )
{
SfxViewFrame* pFrame = m_pViewSh->GetViewFrame();
- pFrame->GetTopFrame().LockResize_Impl(sal_False);
+ pFrame->GetTopFrame().LockResize_Impl(false);
pFrame->GetTopFrame().Resize();
}
}
@@ -1051,7 +1051,7 @@ void SfxInPlaceClient::DeactivateObject()
}
if ( m_pViewSh )
- m_pViewSh->GetViewFrame()->GetTopFrame().LockResize_Impl(sal_True);
+ m_pViewSh->GetViewFrame()->GetTopFrame().LockResize_Impl(true);
if ( m_pImp->m_xObject->getStatus( m_pImp->m_nAspect ) & embed::EmbedMisc::MS_EMBED_ACTIVATEWHENVISIBLE )
{
@@ -1073,7 +1073,7 @@ void SfxInPlaceClient::DeactivateObject()
{
SfxViewFrame* pFrame = m_pViewSh->GetViewFrame();
SfxViewFrame::SetViewFrame( pFrame );
- pFrame->GetTopFrame().LockResize_Impl(sal_False);
+ pFrame->GetTopFrame().LockResize_Impl(false);
pFrame->GetTopFrame().Resize();
}
}
diff --git a/sfx2/source/view/viewfrm.cxx b/sfx2/source/view/viewfrm.cxx
index 3aaddc823709..be41c0f6e100 100644
--- a/sfx2/source/view/viewfrm.cxx
+++ b/sfx2/source/view/viewfrm.cxx
@@ -306,7 +306,7 @@ void SfxViewFrame::ExecReload_Impl( SfxRequest& rReq )
if ( pParent == &rFrame && rFrame.GetChildFrameCount() )
{
sal_Bool bReloadAvailable = sal_False;
- SfxFrameIterator aIter( rFrame, sal_False );
+ SfxFrameIterator aIter( rFrame, false );
SfxFrame *pChild = aIter.FirstFrame();
while ( pChild )
{
@@ -905,7 +905,7 @@ void SfxViewFrame::StateReload_Impl( SfxItemSet& rSet )
// If any ChildFrame is reloadable, the slot is enabled,
// so you can perfom CTRL-Reload
sal_Bool bReloadAvailable = sal_False;
- SfxFrameIterator aFrameIter( *pFrame, sal_True );
+ SfxFrameIterator aFrameIter( *pFrame, true );
for( SfxFrame* pNextFrame = aFrameIter.FirstFrame();
pFrame;
pNextFrame = pNextFrame ?
@@ -1077,7 +1077,7 @@ void SfxViewFrame::ReleaseObjectShell_Impl()
{
DBG_ASSERT( xObjSh.Is(), "no SfxObjectShell to release!" );
- GetFrame().ReleasingComponent_Impl( sal_True );
+ GetFrame().ReleasingComponent_Impl( true );
if ( GetWindow().HasChildPathFocus( true ) )
{
DBG_ASSERT( !GetActiveChildFrame_Impl(), "Wrong active child frame!" );
@@ -1466,7 +1466,7 @@ SfxViewFrame::SfxViewFrame
pImp->pWindow = new SfxFrameViewWindow_Impl( this, rFrame.GetWindow() );
pImp->pWindow->SetSizePixel( rFrame.GetWindow().GetOutputSizePixel() );
- rFrame.SetOwnsBindings_Impl( sal_True );
+ rFrame.SetOwnsBindings_Impl( true );
rFrame.CreateWorkWindow_Impl();
}