diff options
author | Noel Grandin <noel@peralex.com> | 2014-04-30 09:57:53 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-05-02 08:49:20 +0200 |
commit | 19d35573fa0757ecac0163e6aff8d2cad1c61264 (patch) | |
tree | e44d0b36db922bbe9d6934970bbe20c40c19c4c3 | |
parent | 0376c6dc74bebc6df57a43f4d62e935710d3a5d2 (diff) |
writerfilter: sal_Bool->bool
Change-Id: I794dde724b2ec3011f72c712c073f70df39aed58
-rw-r--r-- | writerfilter/source/dmapper/CellColorHandler.cxx | 2 | ||||
-rw-r--r-- | writerfilter/source/dmapper/CellColorHandler.hxx | 2 | ||||
-rw-r--r-- | writerfilter/source/dmapper/DomainMapper.cxx | 8 | ||||
-rw-r--r-- | writerfilter/source/dmapper/DomainMapperTableHandler.cxx | 4 | ||||
-rw-r--r-- | writerfilter/source/dmapper/PropertyMap.cxx | 2 | ||||
-rw-r--r-- | writerfilter/source/dmapper/StyleSheetTable.cxx | 4 | ||||
-rw-r--r-- | writerfilter/source/dmapper/TablePropertiesHandler.cxx | 2 | ||||
-rw-r--r-- | writerfilter/source/filter/RtfFilter.cxx | 4 | ||||
-rw-r--r-- | writerfilter/source/filter/WriterFilter.hxx | 2 | ||||
-rw-r--r-- | writerfilter/source/filter/WriterFilterDetection.hxx | 2 |
10 files changed, 16 insertions, 16 deletions
diff --git a/writerfilter/source/dmapper/CellColorHandler.cxx b/writerfilter/source/dmapper/CellColorHandler.cxx index 22c4aea673c5..c883991991cf 100644 --- a/writerfilter/source/dmapper/CellColorHandler.cxx +++ b/writerfilter/source/dmapper/CellColorHandler.cxx @@ -358,7 +358,7 @@ void CellColorHandler::disableInteropGrabBag() m_aInteropGrabBag.clear(); } -sal_Bool CellColorHandler::isInteropGrabBagEnabled() +bool CellColorHandler::isInteropGrabBagEnabled() { return !(m_aInteropGrabBagName.isEmpty()); } diff --git a/writerfilter/source/dmapper/CellColorHandler.hxx b/writerfilter/source/dmapper/CellColorHandler.hxx index dfcda4529548..b69ed3bde99b 100644 --- a/writerfilter/source/dmapper/CellColorHandler.hxx +++ b/writerfilter/source/dmapper/CellColorHandler.hxx @@ -59,7 +59,7 @@ public: void enableInteropGrabBag(const OUString& aName); beans::PropertyValue getInteropGrabBag(); void disableInteropGrabBag(); - sal_Bool isInteropGrabBagEnabled(); + bool isInteropGrabBagEnabled(); }; typedef boost::shared_ptr< CellColorHandler > CellColorHandlerPtr; }} diff --git a/writerfilter/source/dmapper/DomainMapper.cxx b/writerfilter/source/dmapper/DomainMapper.cxx index 0b5219c09e4a..858bb93f5c5d 100644 --- a/writerfilter/source/dmapper/DomainMapper.cxx +++ b/writerfilter/source/dmapper/DomainMapper.cxx @@ -1206,7 +1206,7 @@ void DomainMapper::sprmWithProps( Sprm& rSprm, PropertyMapPtr rContext ) { CellColorHandlerPtr pCellColorHandler( new CellColorHandler ); pCellColorHandler->setOutputFormat( CellColorHandler::Paragraph ); - sal_Bool bEnableTempGrabBag = !pCellColorHandler->isInteropGrabBagEnabled(); + bool bEnableTempGrabBag = !pCellColorHandler->isInteropGrabBagEnabled(); if( bEnableTempGrabBag ) pCellColorHandler->enableInteropGrabBag( "TempShdPropsGrabBag" ); @@ -1517,7 +1517,7 @@ void DomainMapper::sprmWithProps( Sprm& rSprm, PropertyMapPtr rContext ) } break; case NS_ooxml::LN_EG_RPrBase_kern: // auto kerning is bound to a minimum font size in Word - but not in Writer :-( - rContext->Insert(PROP_CHAR_AUTO_KERNING, uno::makeAny( sal_Bool(nIntValue) ) ); + rContext->Insert(PROP_CHAR_AUTO_KERNING, uno::makeAny( nIntValue != 0 ) ); break; case NS_ooxml::LN_EG_RPrBase_w: rContext->Insert(PROP_CHAR_SCALE_WIDTH, @@ -2204,10 +2204,10 @@ void DomainMapper::sprmWithProps( Sprm& rSprm, PropertyMapPtr rContext ) case NS_ooxml::LN_EG_RPrBase_snapToGrid: // "Use document grid settings for inter-paragraph spacing" break; case NS_ooxml::LN_CT_PPrBase_contextualSpacing: - rContext->Insert(PROP_PARA_CONTEXT_MARGIN, uno::makeAny( sal_Bool( nIntValue ) )); + rContext->Insert(PROP_PARA_CONTEXT_MARGIN, uno::makeAny( nIntValue != 0 )); break; case NS_ooxml::LN_CT_PPrBase_mirrorIndents: // mirrorIndents - rContext->Insert(PROP_MIRROR_INDENTS, uno::makeAny(sal_Bool(nIntValue)), true, PARA_GRAB_BAG); + rContext->Insert(PROP_MIRROR_INDENTS, uno::makeAny( nIntValue != 0 ), true, PARA_GRAB_BAG); break; case NS_ooxml::LN_EG_SectPrContents_formProt: //section protection, only form editing is enabled - unsupported case NS_ooxml::LN_EG_SectPrContents_vAlign: diff --git a/writerfilter/source/dmapper/DomainMapperTableHandler.cxx b/writerfilter/source/dmapper/DomainMapperTableHandler.cxx index 0292c58fa12e..a167dd15a7cc 100644 --- a/writerfilter/source/dmapper/DomainMapperTableHandler.cxx +++ b/writerfilter/source/dmapper/DomainMapperTableHandler.cxx @@ -553,7 +553,7 @@ TableStyleSheetEntry * DomainMapperTableHandler::endTableGetTableStyle(TableInfo else { m_aTableProperties->Insert( PROP_RELATIVE_WIDTH, uno::makeAny( sal_Int16( nTableWidth ) ) ); - m_aTableProperties->Insert( PROP_IS_WIDTH_RELATIVE, uno::makeAny( sal_Bool( sal_True ) ) ); + m_aTableProperties->Insert( PROP_IS_WIDTH_RELATIVE, uno::makeAny( true ) ); } sal_Int32 nHoriOrient = text::HoriOrientation::LEFT_AND_WIDTH; @@ -987,7 +987,7 @@ void DomainMapperTableHandler::endTable(unsigned int nestedTableLevel) if (xTable.is() && xStart.is() && xEnd.is()) { uno::Reference<beans::XPropertySet> xTableProperties(xTable, uno::UNO_QUERY); - sal_Bool bIsRelative = sal_False; + bool bIsRelative = false; xTableProperties->getPropertyValue("IsWidthRelative") >>= bIsRelative; if (!bIsRelative) { diff --git a/writerfilter/source/dmapper/PropertyMap.cxx b/writerfilter/source/dmapper/PropertyMap.cxx index 141a338ee5b8..6a60e4115c43 100644 --- a/writerfilter/source/dmapper/PropertyMap.cxx +++ b/writerfilter/source/dmapper/PropertyMap.cxx @@ -1091,7 +1091,7 @@ void SectionPropertyMap::CloseSectionGroup( DomainMapper_Impl& rDM_Impl ) { uno::Reference< beans::XPropertySet > xDocProperties; xDocProperties = uno::Reference< beans::XPropertySet >( rDM_Impl.GetTextDocument(), uno::UNO_QUERY_THROW ); - sal_Bool bSquaredPageMode = sal_False; + bool bSquaredPageMode = false; operator[](PROP_GRID_STANDARD_MODE) = uno::makeAny( !bSquaredPageMode ); xDocProperties->setPropertyValue("DefaultPageMode", uno::makeAny( bSquaredPageMode )); } diff --git a/writerfilter/source/dmapper/StyleSheetTable.cxx b/writerfilter/source/dmapper/StyleSheetTable.cxx index 3548ec33820d..ed5ecbe14c66 100644 --- a/writerfilter/source/dmapper/StyleSheetTable.cxx +++ b/writerfilter/source/dmapper/StyleSheetTable.cxx @@ -439,7 +439,7 @@ void StyleSheetTable::lcl_attribute(Id Name, Value & val) { beans::PropertyValue aValue; aValue.Name = "default"; - aValue.Value = uno::makeAny(sal_Bool(m_pImpl->m_pCurrentEntry->bIsDefaultStyle)); + aValue.Value = uno::makeAny(m_pImpl->m_pCurrentEntry->bIsDefaultStyle); m_pImpl->m_pCurrentEntry->AppendInteropGrabBag(aValue); } break; @@ -448,7 +448,7 @@ void StyleSheetTable::lcl_attribute(Id Name, Value & val) { beans::PropertyValue aValue; aValue.Name = "customStyle"; - aValue.Value = uno::makeAny(sal_Bool(nIntValue != 0)); + aValue.Value = uno::makeAny(nIntValue != 0); m_pImpl->m_pCurrentEntry->AppendInteropGrabBag(aValue); } break; diff --git a/writerfilter/source/dmapper/TablePropertiesHandler.cxx b/writerfilter/source/dmapper/TablePropertiesHandler.cxx index 877c602a5231..b839e2e70f37 100644 --- a/writerfilter/source/dmapper/TablePropertiesHandler.cxx +++ b/writerfilter/source/dmapper/TablePropertiesHandler.cxx @@ -173,7 +173,7 @@ namespace dmapper { { //row can't break across pages if nIntValue == 1 TablePropertyMapPtr pPropMap( new TablePropertyMap ); - pPropMap->Insert( PROP_IS_SPLIT_ALLOWED, uno::makeAny(sal_Bool( nIntValue == 1 ? sal_False : sal_True ) )); + pPropMap->Insert( PROP_IS_SPLIT_ALLOWED, uno::makeAny( nIntValue != 1 ) ); insertRowProps(pPropMap); } break; diff --git a/writerfilter/source/filter/RtfFilter.cxx b/writerfilter/source/filter/RtfFilter.cxx index faa040cf8ea0..300bd99322b8 100644 --- a/writerfilter/source/filter/RtfFilter.cxx +++ b/writerfilter/source/filter/RtfFilter.cxx @@ -63,7 +63,7 @@ sal_Bool RtfFilter::filter(const uno::Sequence< beans::PropertyValue >& aDescrip return xFilter->filter(aDescriptor); } - sal_Bool bResult(sal_False); + bool bResult(false); uno::Reference<task::XStatusIndicator> xStatusIndicator; try @@ -120,7 +120,7 @@ sal_Bool RtfFilter::filter(const uno::Sequence< beans::PropertyValue >& aDescrip writerfilter::rtftok::RTFDocument::Pointer_t const pDocument( writerfilter::rtftok::RTFDocumentFactory::createDocument(m_xContext, xInputStream, m_xDstDoc, xFrame, xStatusIndicator)); pDocument->resolve(*pStream); - bResult = sal_True; + bResult = true; #ifdef DEBUG_IMPORT dmapperLogger->endDocument(); #endif diff --git a/writerfilter/source/filter/WriterFilter.hxx b/writerfilter/source/filter/WriterFilter.hxx index c630f4219757..2691e70fb374 100644 --- a/writerfilter/source/filter/WriterFilter.hxx +++ b/writerfilter/source/filter/WriterFilter.hxx @@ -85,7 +85,7 @@ private: OUString WriterFilter_getImplementationName() throw ( ::com::sun::star::uno::RuntimeException ); -sal_Bool SAL_CALL WriterFilter_supportsService( const OUString& ServiceName ) +bool SAL_CALL WriterFilter_supportsService( const OUString& ServiceName ) throw ( ::com::sun::star::uno::RuntimeException ); ::com::sun::star::uno::Sequence< OUString > SAL_CALL WriterFilter_getSupportedServiceNames( ) diff --git a/writerfilter/source/filter/WriterFilterDetection.hxx b/writerfilter/source/filter/WriterFilterDetection.hxx index beafab8b788c..9c7de921d1cd 100644 --- a/writerfilter/source/filter/WriterFilterDetection.hxx +++ b/writerfilter/source/filter/WriterFilterDetection.hxx @@ -53,7 +53,7 @@ public: OUString WriterFilterDetection_getImplementationName() throw ( ::com::sun::star::uno::RuntimeException ); -sal_Bool SAL_CALL WriterFilterDetection_supportsService( const OUString& ServiceName ) +bool SAL_CALL WriterFilterDetection_supportsService( const OUString& ServiceName ) throw ( ::com::sun::star::uno::RuntimeException ); ::com::sun::star::uno::Sequence< OUString > SAL_CALL WriterFilterDetection_getSupportedServiceNames( ) |