diff options
author | Noel Grandin <noel@peralex.com> | 2014-03-27 17:24:01 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-03-31 12:36:54 +0200 |
commit | ddb07081da099a392b1cdcbb8716afb6af43e006 (patch) | |
tree | be0017dab7a3996402c33bad613dd601e22c27b5 /xmloff | |
parent | 3f60a32aa2413ca67eb243a3ba91abd3327a07b3 (diff) |
xmloff: sal_Bool->bool
Change-Id: I1deb10cb1581137ab92e73367e63339822a9a094
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/core/SettingsExportHelper.cxx | 48 | ||||
-rw-r--r-- | xmloff/source/core/xmlexp.cxx | 10 | ||||
-rw-r--r-- | xmloff/source/draw/XMLShapeStyleContext.cxx | 4 | ||||
-rw-r--r-- | xmloff/source/script/XMLEventExport.cxx | 24 | ||||
-rw-r--r-- | xmloff/source/script/XMLEventsImportContext.cxx | 4 | ||||
-rw-r--r-- | xmloff/source/style/XMLFontStylesContext.cxx | 2 | ||||
-rw-r--r-- | xmloff/source/style/XMLPageExport.cxx | 16 | ||||
-rw-r--r-- | xmloff/source/text/XMLAutoTextEventExport.cxx | 2 | ||||
-rw-r--r-- | xmloff/source/text/XMLTextMasterPageContext.cxx | 36 | ||||
-rw-r--r-- | xmloff/source/text/XMLTextShapeStyleContext.cxx | 6 | ||||
-rw-r--r-- | xmloff/source/text/txtflde.cxx | 4 | ||||
-rw-r--r-- | xmloff/source/text/txtftne.cxx | 2 | ||||
-rw-r--r-- | xmloff/source/text/txtparae.cxx | 2 | ||||
-rw-r--r-- | xmloff/source/text/txtparai.cxx | 6 |
14 files changed, 83 insertions, 83 deletions
diff --git a/xmloff/source/core/SettingsExportHelper.cxx b/xmloff/source/core/SettingsExportHelper.cxx index 0df2dd5572ef..64adf5af38c6 100644 --- a/xmloff/source/core/SettingsExportHelper.cxx +++ b/xmloff/source/core/SettingsExportHelper.cxx @@ -185,14 +185,14 @@ void XMLSettingsExportHelper::exportBool(const bool bValue, const OUString& rNam DBG_ASSERT(!rName.isEmpty(), "no name"); m_rContext.AddAttribute( XML_NAME, rName ); m_rContext.AddAttribute( XML_TYPE, XML_BOOLEAN ); - m_rContext.StartElement( XML_CONFIG_ITEM, sal_True ); + m_rContext.StartElement( XML_CONFIG_ITEM, true ); OUString sValue; if (bValue) sValue = GetXMLToken(XML_TRUE); else sValue = GetXMLToken(XML_FALSE); m_rContext.Characters( sValue ); - m_rContext.EndElement( sal_False ); + m_rContext.EndElement( false ); } void XMLSettingsExportHelper::exportByte(const sal_Int8 nValue, const OUString& rName) const @@ -208,11 +208,11 @@ void XMLSettingsExportHelper::exportShort(const sal_Int16 nValue, const OUString DBG_ASSERT(!rName.isEmpty(), "no name"); m_rContext.AddAttribute( XML_NAME, rName ); m_rContext.AddAttribute( XML_TYPE, XML_SHORT ); - m_rContext.StartElement( XML_CONFIG_ITEM, sal_True ); + m_rContext.StartElement( XML_CONFIG_ITEM, true ); OUStringBuffer sBuffer; ::sax::Converter::convertNumber(sBuffer, sal_Int32(nValue)); m_rContext.Characters( sBuffer.makeStringAndClear() ); - m_rContext.EndElement( sal_False ); + m_rContext.EndElement( false ); } void XMLSettingsExportHelper::exportInt(const sal_Int32 nValue, const OUString& rName) const @@ -220,11 +220,11 @@ void XMLSettingsExportHelper::exportInt(const sal_Int32 nValue, const OUString& DBG_ASSERT(!rName.isEmpty(), "no name"); m_rContext.AddAttribute( XML_NAME, rName ); m_rContext.AddAttribute( XML_TYPE, XML_INT ); - m_rContext.StartElement( XML_CONFIG_ITEM, sal_True ); + m_rContext.StartElement( XML_CONFIG_ITEM, true ); OUStringBuffer sBuffer; ::sax::Converter::convertNumber(sBuffer, nValue); m_rContext.Characters( sBuffer.makeStringAndClear() ); - m_rContext.EndElement( sal_False ); + m_rContext.EndElement( false ); } void XMLSettingsExportHelper::exportLong(const sal_Int64 nValue, const OUString& rName) const @@ -232,10 +232,10 @@ void XMLSettingsExportHelper::exportLong(const sal_Int64 nValue, const OUString& DBG_ASSERT(!rName.isEmpty(), "no name"); m_rContext.AddAttribute( XML_NAME, rName ); m_rContext.AddAttribute( XML_TYPE, XML_LONG ); - m_rContext.StartElement( XML_CONFIG_ITEM, sal_True ); + m_rContext.StartElement( XML_CONFIG_ITEM, true ); OUString sValue(OUString::number(nValue)); m_rContext.Characters( sValue ); - m_rContext.EndElement( sal_False ); + m_rContext.EndElement( false ); } void XMLSettingsExportHelper::exportDouble(const double fValue, const OUString& rName) const @@ -243,11 +243,11 @@ void XMLSettingsExportHelper::exportDouble(const double fValue, const OUString& DBG_ASSERT(!rName.isEmpty(), "no name"); m_rContext.AddAttribute( XML_NAME, rName ); m_rContext.AddAttribute( XML_TYPE, XML_DOUBLE ); - m_rContext.StartElement( XML_CONFIG_ITEM, sal_True ); + m_rContext.StartElement( XML_CONFIG_ITEM, true ); OUStringBuffer sBuffer; ::sax::Converter::convertDouble(sBuffer, fValue); m_rContext.Characters( sBuffer.makeStringAndClear() ); - m_rContext.EndElement( sal_False ); + m_rContext.EndElement( false ); } void XMLSettingsExportHelper::exportString(const OUString& sValue, const OUString& rName) const @@ -255,10 +255,10 @@ void XMLSettingsExportHelper::exportString(const OUString& sValue, const OUStrin DBG_ASSERT(!rName.isEmpty(), "no name"); m_rContext.AddAttribute( XML_NAME, rName ); m_rContext.AddAttribute( XML_TYPE, XML_STRING ); - m_rContext.StartElement( XML_CONFIG_ITEM, sal_True ); + m_rContext.StartElement( XML_CONFIG_ITEM, true ); if (!sValue.isEmpty()) m_rContext.Characters( sValue ); - m_rContext.EndElement( sal_False ); + m_rContext.EndElement( false ); } void XMLSettingsExportHelper::exportDateTime(const util::DateTime& aValue, const OUString& rName) const @@ -268,9 +268,9 @@ void XMLSettingsExportHelper::exportDateTime(const util::DateTime& aValue, const m_rContext.AddAttribute( XML_TYPE, XML_DATETIME ); OUStringBuffer sBuffer; ::sax::Converter::convertDateTime(sBuffer, aValue, 0); - m_rContext.StartElement( XML_CONFIG_ITEM, sal_True ); + m_rContext.StartElement( XML_CONFIG_ITEM, true ); m_rContext.Characters( sBuffer.makeStringAndClear() ); - m_rContext.EndElement( sal_False ); + m_rContext.EndElement( false ); } void XMLSettingsExportHelper::exportSequencePropertyValue( @@ -282,10 +282,10 @@ void XMLSettingsExportHelper::exportSequencePropertyValue( if(nLength) { m_rContext.AddAttribute( XML_NAME, rName ); - m_rContext.StartElement( XML_CONFIG_ITEM_SET, sal_True ); + m_rContext.StartElement( XML_CONFIG_ITEM_SET, true ); for (sal_Int32 i = 0; i < nLength; i++) CallTypeFunction(aProps[i].Value, aProps[i].Name); - m_rContext.EndElement( sal_True ); + m_rContext.EndElement( true ); } } void XMLSettingsExportHelper::exportSymbolDescriptors( @@ -348,14 +348,14 @@ void XMLSettingsExportHelper::exportbase64Binary( sal_Int32 nLength(aProps.getLength()); m_rContext.AddAttribute( XML_NAME, rName ); m_rContext.AddAttribute( XML_TYPE, XML_BASE64BINARY ); - m_rContext.StartElement( XML_CONFIG_ITEM, sal_True ); + m_rContext.StartElement( XML_CONFIG_ITEM, true ); if(nLength) { OUStringBuffer sBuffer; ::sax::Converter::encodeBase64(sBuffer, aProps); m_rContext.Characters( sBuffer.makeStringAndClear() ); } - m_rContext.EndElement( sal_False ); + m_rContext.EndElement( false ); } void XMLSettingsExportHelper::exportMapEntry(const uno::Any& rAny, @@ -370,10 +370,10 @@ void XMLSettingsExportHelper::exportMapEntry(const uno::Any& rAny, { if (bNameAccess) m_rContext.AddAttribute( XML_NAME, rName ); - m_rContext.StartElement( XML_CONFIG_ITEM_MAP_ENTRY, sal_True ); + m_rContext.StartElement( XML_CONFIG_ITEM_MAP_ENTRY, true ); for (sal_Int32 i = 0; i < nLength; i++) CallTypeFunction(aProps[i].Value, aProps[i].Name); - m_rContext.EndElement( sal_True ); + m_rContext.EndElement( true ); } } @@ -387,11 +387,11 @@ void XMLSettingsExportHelper::exportNameAccess( if(aNamed->hasElements()) { m_rContext.AddAttribute( XML_NAME, rName ); - m_rContext.StartElement( XML_CONFIG_ITEM_MAP_NAMED, sal_True ); + m_rContext.StartElement( XML_CONFIG_ITEM_MAP_NAMED, true ); uno::Sequence< OUString > aNames(aNamed->getElementNames()); for (sal_Int32 i = 0; i < aNames.getLength(); i++) exportMapEntry(aNamed->getByName(aNames[i]), aNames[i], true); - m_rContext.EndElement( sal_True ); + m_rContext.EndElement( true ); } } @@ -406,13 +406,13 @@ void XMLSettingsExportHelper::exportIndexAccess( if(aIndexed->hasElements()) { m_rContext.AddAttribute( XML_NAME, rName ); - m_rContext.StartElement( XML_CONFIG_ITEM_MAP_INDEXED, sal_True ); + m_rContext.StartElement( XML_CONFIG_ITEM_MAP_INDEXED, true ); sal_Int32 nCount = aIndexed->getCount(); for (sal_Int32 i = 0; i < nCount; i++) { exportMapEntry(aIndexed->getByIndex(i), sEmpty, false); } - m_rContext.EndElement( sal_True ); + m_rContext.EndElement( true ); } } diff --git a/xmloff/source/core/xmlexp.cxx b/xmloff/source/core/xmlexp.cxx index 8e9cbfedf0aa..b71b96d3fd66 100644 --- a/xmloff/source/core/xmlexp.cxx +++ b/xmloff/source/core/xmlexp.cxx @@ -156,8 +156,8 @@ public: enum ::xmloff::token::XMLTokenEnum i_eValue ) SAL_OVERRIDE; virtual void StartElement( enum ::xmloff::token::XMLTokenEnum i_eName, - const sal_Bool i_bIgnoreWhitespace ) SAL_OVERRIDE; - virtual void EndElement( const sal_Bool i_bIgnoreWhitespace ) SAL_OVERRIDE; + const bool i_bIgnoreWhitespace ) SAL_OVERRIDE; + virtual void EndElement( const bool i_bIgnoreWhitespace ) SAL_OVERRIDE; virtual void Characters( const OUString& i_rCharacters ) SAL_OVERRIDE; @@ -178,14 +178,14 @@ void SettingsExportFacade::AddAttribute( enum ::xmloff::token::XMLTokenEnum i_eN m_rExport.AddAttribute( XML_NAMESPACE_CONFIG, i_eName, i_eValue ); } -void SettingsExportFacade::StartElement( enum ::xmloff::token::XMLTokenEnum i_eName, const sal_Bool i_bIgnoreWhitespace ) +void SettingsExportFacade::StartElement( enum ::xmloff::token::XMLTokenEnum i_eName, const bool i_bIgnoreWhitespace ) { const OUString sElementName( m_rExport.GetNamespaceMap().GetQNameByKey( XML_NAMESPACE_CONFIG, GetXMLToken( i_eName ) ) ); m_rExport.StartElement( sElementName, i_bIgnoreWhitespace ); m_aElements.push( sElementName ); } -void SettingsExportFacade::EndElement( const sal_Bool i_bIgnoreWhitespace ) +void SettingsExportFacade::EndElement( const bool i_bIgnoreWhitespace ) { const OUString sElementName( m_aElements.top() ); m_rExport.EndElement( sElementName, i_bIgnoreWhitespace ); @@ -1570,7 +1570,7 @@ void SvXMLExport::_ExportScripts() // export document events Reference< document::XEventsSupplier > xEvents( GetModel(), UNO_QUERY ); - GetEventExport().Export( xEvents, sal_True ); + GetEventExport().Export( xEvents, true ); } void SvXMLExport::_ExportFontDecls() diff --git a/xmloff/source/draw/XMLShapeStyleContext.cxx b/xmloff/source/draw/XMLShapeStyleContext.cxx index 0eac5f4fb24d..c6b03ee4b1dc 100644 --- a/xmloff/source/draw/XMLShapeStyleContext.cxx +++ b/xmloff/source/draw/XMLShapeStyleContext.cxx @@ -51,7 +51,7 @@ XMLShapeStyleContext::XMLShapeStyleContext( SvXMLStylesContext& rStyles, sal_uInt16 nFamily) : XMLPropStyleContext(rImport, nPrfx, rLName, xAttrList, rStyles, nFamily ), - m_bIsNumRuleAlreadyConverted( sal_False ) + m_bIsNumRuleAlreadyConverted( false ) { } @@ -125,7 +125,7 @@ void XMLShapeStyleContext::FillPropertySet( const Reference< beans::XPropertySet { if( !m_bIsNumRuleAlreadyConverted ) { - m_bIsNumRuleAlreadyConverted = sal_True; + m_bIsNumRuleAlreadyConverted = true; // for compatibility to beta files, search for CTF_SD_NUMBERINGRULES_NAME to // import numbering rules from the style:properties element diff --git a/xmloff/source/script/XMLEventExport.cxx b/xmloff/source/script/XMLEventExport.cxx index 6a303e6189ab..a27927c082af 100644 --- a/xmloff/source/script/XMLEventExport.cxx +++ b/xmloff/source/script/XMLEventExport.cxx @@ -93,7 +93,7 @@ void XMLEventExport::AddTranslationTable( } void XMLEventExport::Export( Reference<XEventsSupplier> & rSupplier, - sal_Bool bWhitespace) + bool bWhitespace) { if (rSupplier.is()) { @@ -104,14 +104,14 @@ void XMLEventExport::Export( Reference<XEventsSupplier> & rSupplier, } void XMLEventExport::Export( Reference<XNameReplace> & rReplace, - sal_Bool bWhitespace) + bool bWhitespace) { Reference<XNameAccess> xAccess(rReplace, UNO_QUERY); Export(xAccess, bWhitespace); } void XMLEventExport::Export( Reference<XNameAccess> & rAccess, - sal_Bool bWhitespace) + bool bWhitespace) { // early out if we don't actually get any events if (!rAccess.is()) @@ -120,7 +120,7 @@ void XMLEventExport::Export( Reference<XNameAccess> & rAccess, } // have we already processed an element? - sal_Bool bStarted = sal_False; + bool bStarted = false; // iterate over all event types Sequence<OUString> aNames = rAccess->getElementNames(); @@ -160,7 +160,7 @@ void XMLEventExport::Export( Reference<XNameAccess> & rAccess, } void XMLEventExport::ExportExt( Reference<XNameAccess> & rAccess, - sal_Bool bWhitespace ) + bool bWhitespace ) { // set bExtNamespace flag to use XML_NAMESPACE_OFFICE_EXT namespace // for events element (not for child elements) @@ -173,7 +173,7 @@ void XMLEventExport::ExportExt( Reference<XNameAccess> & rAccess, void XMLEventExport::ExportSingleEvent( Sequence<PropertyValue>& rEventValues, const OUString& rApiEventName, - sal_Bool bUseWhitespace ) + bool bUseWhitespace ) { // translate the name NameMap::iterator aIter = aNameTranslationMap.find(rApiEventName); @@ -182,7 +182,7 @@ void XMLEventExport::ExportSingleEvent( const XMLEventName& rXmlName = aIter->second; // export the event ... - sal_Bool bStarted = sal_False; + bool bStarted = false; ExportEvent( rEventValues, rXmlName, bUseWhitespace, bStarted ); // ... and close the container element (if necessary) @@ -207,8 +207,8 @@ void XMLEventExport::ExportSingleEvent( void XMLEventExport::ExportEvent( Sequence<PropertyValue>& rEventValues, const XMLEventName& rXmlEventName, - sal_Bool bUseWhitespace, - sal_Bool& rExported ) + bool bUseWhitespace, + bool& rExported ) { // search for EventType value and then delegate to EventHandler sal_Int32 nValues = rEventValues.getLength(); @@ -228,7 +228,7 @@ void XMLEventExport::ExportEvent( { // OK, we have't yet exported the enclosing // element. So we do that now. - rExported = sal_True; + rExported = true; StartElement(bUseWhitespace); } @@ -258,7 +258,7 @@ void XMLEventExport::ExportEvent( } -void XMLEventExport::StartElement(sal_Bool bWhitespace) +void XMLEventExport::StartElement(bool bWhitespace) { if (bWhitespace) { @@ -270,7 +270,7 @@ void XMLEventExport::StartElement(sal_Bool bWhitespace) bWhitespace); } -void XMLEventExport::EndElement(sal_Bool bWhitespace) +void XMLEventExport::EndElement(bool bWhitespace) { sal_uInt16 nNamespace = bExtNamespace ? XML_NAMESPACE_OFFICE_EXT : XML_NAMESPACE_OFFICE; diff --git a/xmloff/source/script/XMLEventsImportContext.cxx b/xmloff/source/script/XMLEventsImportContext.cxx index de2a8c1f8a3e..e6edda892421 100644 --- a/xmloff/source/script/XMLEventsImportContext.cxx +++ b/xmloff/source/script/XMLEventsImportContext.cxx @@ -158,7 +158,7 @@ void XMLEventsImportContext::SetEvents( } } -sal_Bool XMLEventsImportContext::GetEventSequence( +bool XMLEventsImportContext::GetEventSequence( const OUString& rName, Sequence<PropertyValue> & rSequence ) { @@ -174,7 +174,7 @@ sal_Bool XMLEventsImportContext::GetEventSequence( } // if we're not at the end, set the sequence - sal_Bool bRet = (aIter != aCollectEvents.end()); + bool bRet = (aIter != aCollectEvents.end()); if (bRet) rSequence = aIter->second; diff --git a/xmloff/source/style/XMLFontStylesContext.cxx b/xmloff/source/style/XMLFontStylesContext.cxx index f6006aa60a88..e19bb47b9b68 100644 --- a/xmloff/source/style/XMLFontStylesContext.cxx +++ b/xmloff/source/style/XMLFontStylesContext.cxx @@ -375,7 +375,7 @@ XMLFontStylesContext::~XMLFontStylesContext() delete pFontStyleAttrTokenMap; } -sal_Bool XMLFontStylesContext::FillProperties( const OUString& rName, +bool XMLFontStylesContext::FillProperties( const OUString& rName, ::std::vector< XMLPropertyState > &rProps, sal_Int32 nFamilyNameIdx, sal_Int32 nStyleNameIdx, diff --git a/xmloff/source/style/XMLPageExport.cxx b/xmloff/source/style/XMLPageExport.cxx index b095ee6b6df2..7335548eebda 100644 --- a/xmloff/source/style/XMLPageExport.cxx +++ b/xmloff/source/style/XMLPageExport.cxx @@ -40,7 +40,7 @@ using namespace ::com::sun::star::container; using namespace ::com::sun::star::beans; using namespace ::xmloff::token; -sal_Bool XMLPageExport::findPageMasterName( const OUString& rStyleName, OUString& rPMName ) const +bool XMLPageExport::findPageMasterName( const OUString& rStyleName, OUString& rPMName ) const { for( ::std::vector< XMLPageExportNameEntry >::const_iterator pEntry = aNameVector.begin(); pEntry != aNameVector.end(); ++pEntry ) @@ -48,10 +48,10 @@ sal_Bool XMLPageExport::findPageMasterName( const OUString& rStyleName, OUString if( pEntry->sStyleName == rStyleName ) { rPMName = pEntry->sPageMasterName; - return sal_True; + return true; } } - return sal_False; + return false; } void XMLPageExport::collectPageMasterAutoStyle( @@ -79,9 +79,9 @@ void XMLPageExport::exportMasterPageContent( } -sal_Bool XMLPageExport::exportStyle( +bool XMLPageExport::exportStyle( const Reference< XStyle >& rStyle, - sal_Bool bAutoStyles ) + bool bAutoStyles ) { Reference< XPropertySet > xPropSet( rStyle, UNO_QUERY ); Reference< XPropertySetInfo > xPropSetInfo = xPropSet->getPropertySetInfo(); @@ -92,7 +92,7 @@ sal_Bool XMLPageExport::exportStyle( { Any aAny = xPropSet->getPropertyValue( sIsPhysical ); if( !*(sal_Bool *)aAny.getValue() ) - return sal_False; + return false; } if( bAutoStyles ) @@ -146,7 +146,7 @@ sal_Bool XMLPageExport::exportStyle( exportMasterPageContent( xPropSet, false ); } - return sal_True; + return true; } XMLPageExport::XMLPageExport( SvXMLExport& rExp ) : @@ -192,7 +192,7 @@ XMLPageExport::~XMLPageExport() { } -void XMLPageExport::exportStyles( sal_Bool bUsed, sal_Bool bAutoStyles ) +void XMLPageExport::exportStyles( bool bUsed, bool bAutoStyles ) { if( xPageStyles.is() ) { diff --git a/xmloff/source/text/XMLAutoTextEventExport.cxx b/xmloff/source/text/XMLAutoTextEventExport.cxx index fab82d33b4cb..dd60e4a33aa5 100644 --- a/xmloff/source/text/XMLAutoTextEventExport.cxx +++ b/xmloff/source/text/XMLAutoTextEventExport.cxx @@ -192,7 +192,7 @@ void XMLAutoTextEventExport::exportEvents() { DBG_ASSERT(hasEvents(), "no events to export!"); - GetEventExport().Export(xEvents, sal_True); + GetEventExport().Export(xEvents, true); } diff --git a/xmloff/source/text/XMLTextMasterPageContext.cxx b/xmloff/source/text/XMLTextMasterPageContext.cxx index d4e90b404a70..7eeeeadfd083 100644 --- a/xmloff/source/text/XMLTextMasterPageContext.cxx +++ b/xmloff/source/text/XMLTextMasterPageContext.cxx @@ -62,23 +62,23 @@ TYPEINIT1( XMLTextMasterPageContext, SvXMLStyleContext ); XMLTextMasterPageContext::XMLTextMasterPageContext( SvXMLImport& rImport, sal_uInt16 nPrfx, const OUString& rLName, const Reference< XAttributeList > & xAttrList, - sal_Bool bOverwrite ) + bool bOverwrite ) : SvXMLStyleContext( rImport, nPrfx, rLName, xAttrList, XML_STYLE_FAMILY_MASTER_PAGE ) , sIsPhysical( "IsPhysical" ) , sPageStyleLayout( "PageStyleLayout" ) , sFollowStyle( "FollowStyle" ) -, bInsertHeader( sal_False ) -, bInsertFooter( sal_False ) -, bInsertHeaderLeft( sal_False ) -, bInsertFooterLeft( sal_False ) -, bInsertHeaderFirst( sal_False ) -, bInsertFooterFirst( sal_False ) -, bHeaderInserted( sal_False ) -, bFooterInserted( sal_False ) -, bHeaderLeftInserted( sal_False ) -, bFooterLeftInserted( sal_False ) -, bHeaderFirstInserted( sal_False ) -, bFooterFirstInserted( sal_False ) +, bInsertHeader( false ) +, bInsertFooter( false ) +, bInsertHeaderLeft( false ) +, bInsertFooterLeft( false ) +, bInsertHeaderFirst( false ) +, bInsertFooterFirst( false ) +, bHeaderInserted( false ) +, bFooterInserted( false ) +, bHeaderLeftInserted( false ) +, bFooterLeftInserted( false ) +, bHeaderFirstInserted( false ) +, bFooterFirstInserted( false ) { OUString sName, sDisplayName; sal_Int16 nAttrCount = xAttrList.is() ? xAttrList->getLength() : 0; @@ -163,9 +163,9 @@ XMLTextMasterPageContext::XMLTextMasterPageContext( SvXMLImport& rImport, if( xMultiStates.is() ) xMultiStates->setAllPropertiesToDefault(); - bInsertHeader = bInsertFooter = sal_True; - bInsertHeaderLeft = bInsertFooterLeft = sal_True; - bInsertHeaderFirst = bInsertFooterFirst = sal_True; + bInsertHeader = bInsertFooter = true; + bInsertHeaderLeft = bInsertFooterLeft = true; + bInsertHeaderFirst = bInsertFooterFirst = true; } } @@ -190,14 +190,14 @@ SvXMLImportContext *XMLTextMasterPageContext::CreateChildContext( if( bInsertHeader && !bHeaderInserted ) { bInsert = sal_True; - bHeaderInserted = sal_True; + bHeaderInserted = true; } break; case XML_TOK_TEXT_MP_FOOTER: if( bInsertFooter && !bFooterInserted ) { bInsert = bFooter = sal_True; - bFooterInserted = sal_True; + bFooterInserted = true; } break; case XML_TOK_TEXT_MP_HEADER_LEFT: diff --git a/xmloff/source/text/XMLTextShapeStyleContext.cxx b/xmloff/source/text/XMLTextShapeStyleContext.cxx index 11306f907858..b75d5e5f1f76 100644 --- a/xmloff/source/text/XMLTextShapeStyleContext.cxx +++ b/xmloff/source/text/XMLTextShapeStyleContext.cxx @@ -128,7 +128,7 @@ void XMLTextShapeStyleContext::SetAttribute( sal_uInt16 nPrefixKey, IsXMLToken( rLocalName, XML_AUTO_UPDATE ) ) { if( IsXMLToken( rValue, XML_TRUE ) ) - bAutoUpdate = sal_True; + bAutoUpdate = true; } else { @@ -142,11 +142,11 @@ XMLTextShapeStyleContext::XMLTextShapeStyleContext( SvXMLImport& rImport, sal_uInt16 nPrfx, const OUString& rLName, const Reference< XAttributeList > & xAttrList, SvXMLStylesContext& rStyles, sal_uInt16 nFamily, - sal_Bool /*bDefaultStyle*/ ) : + bool /*bDefaultStyle*/ ) : XMLShapeStyleContext( rImport, nPrfx, rLName, xAttrList, rStyles, nFamily ), sIsAutoUpdate( "IsAutoUpdate" ), - bAutoUpdate( sal_False ) + bAutoUpdate( false ) { } diff --git a/xmloff/source/text/txtflde.cxx b/xmloff/source/text/txtflde.cxx index 4cb16199a3d0..1649300ed4fb 100644 --- a/xmloff/source/text/txtflde.cxx +++ b/xmloff/source/text/txtflde.cxx @@ -1023,7 +1023,7 @@ void XMLTextFieldExport::ExportField( Any aAny = xRangePropSet->getPropertyValue(sHyperLinkEvents); Reference<XNameReplace> xName; aAny >>= xName; - GetExport().GetEventExport().Export(xName, sal_False); + GetExport().GetEventExport().Export(xName, false); } } @@ -2308,7 +2308,7 @@ void XMLTextFieldExport::ExportMacro( } // 2) export the sequence - GetExport().GetEventExport().ExportSingleEvent( aSeq, sOnClick, sal_False ); + GetExport().GetEventExport().ExportSingleEvent( aSeq, sOnClick, false ); // and finally, the field presentation GetExport().Characters(rContent); diff --git a/xmloff/source/text/txtftne.cxx b/xmloff/source/text/txtftne.cxx index eb6aed45c50b..31bfde9feed6 100644 --- a/xmloff/source/text/txtftne.cxx +++ b/xmloff/source/text/txtftne.cxx @@ -121,7 +121,7 @@ void XMLTextParagraphExport::exportTextFootnote( Any a = rPropSet->getPropertyValue(sHyperLinkEvents); Reference<XNameReplace> xName; a >>= xName; - GetExport().GetEventExport().Export(xName, sal_False); + GetExport().GetEventExport().Export(xName, false); } } diff --git a/xmloff/source/text/txtparae.cxx b/xmloff/source/text/txtparae.cxx index a1315f0ecba8..e965708f1238 100644 --- a/xmloff/source/text/txtparae.cxx +++ b/xmloff/source/text/txtparae.cxx @@ -3397,7 +3397,7 @@ void XMLTextParagraphExport::exportTextRange( if (xPropSetInfo->hasPropertyByName(sHyperLinkEvents)) { Reference< XNameReplace > xName( xPropSet->getPropertyValue( sHyperLinkEvents ), uno::UNO_QUERY ); - GetExport().GetEventExport().Export( xName, sal_False ); + GetExport().GetEventExport().Export( xName, false ); } exportTextRangeSpan( rTextRange, xPropSet, xPropSetInfo, bIsUICharStyle, bHasAutoStyle, sStyle, rPrevCharIsSpace, openFieldMark ); diff --git a/xmloff/source/text/txtparai.cxx b/xmloff/source/text/txtparai.cxx index ad19b00707b1..bfa03d8b4b53 100644 --- a/xmloff/source/text/txtparai.cxx +++ b/xmloff/source/text/txtparai.cxx @@ -74,7 +74,7 @@ XMLCharContext::XMLCharContext( const OUString& rLName, const Reference< xml::sax::XAttributeList > & xAttrList, sal_Unicode c, - sal_Bool bCount ) : + bool bCount ) : SvXMLImportContext( rImport, nPrfx, rLName ) ,m_nControl(0) ,m_nCount(1) @@ -1585,7 +1585,7 @@ SvXMLImportContext *XMLImpSpanContext_Impl::CreateChildContext( case XML_TOK_TEXT_TAB_STOP: pContext = new XMLCharContext( rImport, nPrefix, rLocalName, xAttrList, - 0x0009, sal_False ); + 0x0009, false ); rIgnoreLeadingSpace = sal_False; break; @@ -1599,7 +1599,7 @@ SvXMLImportContext *XMLImpSpanContext_Impl::CreateChildContext( case XML_TOK_TEXT_S: pContext = new XMLCharContext( rImport, nPrefix, rLocalName, xAttrList, - 0x0020, sal_True ); + 0x0020, true ); break; case XML_TOK_TEXT_HYPERLINK: |