sal_Bool to bool
Change-Id: I826911bdf06b8047ca8e3bd256687e10fb51962d
This commit is contained in:
@@ -1134,8 +1134,8 @@ void XMLDocumentTransformerContext_Impl::StartElement(
|
||||
m_aOldClass = GetTransformer().GetClass();
|
||||
|
||||
XMLMutableAttributeList *pMutableAttrList = 0;
|
||||
sal_Bool bOOo = sal_False, bOOoW = sal_False, bOOoC = sal_False,
|
||||
bDOM=sal_False, bDC = sal_False, bSVG = sal_False;
|
||||
bool bOOo = false, bOOoW = false, bOOoC = false,
|
||||
bDOM=false, bDC = false, bSVG = false;
|
||||
sal_Int16 nAttrCount = xAttrList.is() ? xAttrList->getLength() : 0;
|
||||
for( sal_Int16 i=0; i < nAttrCount; i++ )
|
||||
{
|
||||
@@ -1163,17 +1163,17 @@ void XMLDocumentTransformerContext_Impl::StartElement(
|
||||
{
|
||||
const OUString& rAttrValue = xAttrList->getValueByIndex( i );
|
||||
if( IsXMLToken( rAttrValue, XML_N_OOO ) )
|
||||
bOOo = sal_True;
|
||||
bOOo = true;
|
||||
else if( IsXMLToken( rAttrValue, XML_N_OOOW ) )
|
||||
bOOoW = sal_True;
|
||||
bOOoW = true;
|
||||
else if( IsXMLToken( rAttrValue, XML_N_OOOC ) )
|
||||
bOOoC = sal_True;
|
||||
bOOoC = true;
|
||||
else if( IsXMLToken( rAttrValue, XML_N_DOM ) )
|
||||
bDOM = sal_True;
|
||||
bDOM = true;
|
||||
else if( IsXMLToken( rAttrValue, XML_N_DC ) )
|
||||
bDC = sal_True;
|
||||
bDC = true;
|
||||
else if( IsXMLToken( rAttrValue, XML_N_SVG ) )
|
||||
bSVG = sal_True;
|
||||
bSVG = true;
|
||||
}
|
||||
}
|
||||
if( !(bOOo && bOOoW && bOOoC && bDOM && bDC && bSVG) )
|
||||
@@ -1509,7 +1509,7 @@ void XMLTableOOoTransformerContext_Impl::StartElement(
|
||||
GetTransformer().ProcessAttrList( xAttrList, OOO_STYLE_REF_ACTIONS, sal_False );
|
||||
if( rAttrList->getLength() && IsXMLToken( GetTransformer().GetClass(), XML_SPREADSHEET ) )
|
||||
{
|
||||
sal_Bool bPrintRanges(sal_False);
|
||||
bool bPrintRanges(false);
|
||||
|
||||
sal_Int16 nAttrCount = xAttrList.is() ? xAttrList->getLength() : 0;
|
||||
for( sal_Int16 i=0; i < nAttrCount; i++ )
|
||||
@@ -1522,7 +1522,7 @@ void XMLTableOOoTransformerContext_Impl::StartElement(
|
||||
if( XML_NAMESPACE_TABLE == nPrefix &&
|
||||
IsXMLToken( aLocalName, XML_PRINT_RANGES ) )
|
||||
{
|
||||
bPrintRanges = sal_True;
|
||||
bPrintRanges = true;
|
||||
}
|
||||
}
|
||||
if (!bPrintRanges && pMutableAttrList)
|
||||
|
@@ -65,7 +65,7 @@ class XMLPropertiesTContext_Impl : public XMLPersElemContentTContext
|
||||
::com::sun::star::xml::sax::XAttributeList > m_xAttrList;
|
||||
|
||||
XMLPropType m_ePropType;
|
||||
sal_Bool m_bControlStyle;
|
||||
bool m_bControlStyle;
|
||||
OUString m_aStyleFamily;
|
||||
|
||||
public:
|
||||
@@ -83,7 +83,7 @@ public:
|
||||
const OUString& rQName,
|
||||
XMLPropType eP,
|
||||
const OUString& rStyleFamily,
|
||||
sal_Bool _bControlStyle = sal_False );
|
||||
bool _bControlStyle = false );
|
||||
|
||||
virtual ~XMLPropertiesTContext_Impl();
|
||||
|
||||
@@ -94,9 +94,9 @@ public:
|
||||
static XMLPropType GetPropType( const OUString& rLocalName );
|
||||
|
||||
static OUString MergeUnderline( XMLTokenEnum eUnderline,
|
||||
sal_Bool bBold, sal_Bool bDouble );
|
||||
bool bBold, bool bDouble );
|
||||
static OUString MergeLineThrough( XMLTokenEnum eLineThrough,
|
||||
sal_Bool bBold, sal_Bool bDouble,
|
||||
bool bBold, bool bDouble,
|
||||
sal_Unicode c );
|
||||
};
|
||||
|
||||
@@ -104,7 +104,7 @@ TYPEINIT1( XMLPropertiesTContext_Impl, XMLPersElemContentTContext );
|
||||
|
||||
XMLPropertiesTContext_Impl::XMLPropertiesTContext_Impl(
|
||||
XMLTransformerBase& rImp, const OUString& rQName, XMLPropType eP,
|
||||
const OUString& rStyleFamily, sal_Bool _bControlStyle ) :
|
||||
const OUString& rStyleFamily, bool _bControlStyle ) :
|
||||
XMLPersElemContentTContext( rImp, rQName, XML_NAMESPACE_STYLE,
|
||||
XML_PROPERTIES),
|
||||
m_ePropType( eP ),
|
||||
@@ -143,9 +143,9 @@ void XMLPropertiesTContext_Impl::StartElement(
|
||||
}
|
||||
|
||||
XMLTokenEnum eUnderline = XML_TOKEN_END;
|
||||
sal_Bool bBoldUnderline = sal_False, bDoubleUnderline = sal_False;
|
||||
bool bBoldUnderline = false, bDoubleUnderline = false;
|
||||
XMLTokenEnum eLineThrough = XML_TOKEN_END;
|
||||
sal_Bool bBoldLineThrough = sal_False, bDoubleLineThrough = sal_False;
|
||||
bool bBoldLineThrough = false, bDoubleLineThrough = false;
|
||||
sal_Unicode cLineThroughChar = 0;
|
||||
|
||||
bool bIntervalMinorFound = false;
|
||||
@@ -285,22 +285,22 @@ void XMLPropertiesTContext_Impl::StartElement(
|
||||
break;
|
||||
case XML_OPTACTION_UNDERLINE_WIDTH:
|
||||
if( IsXMLToken( rAttrValue, XML_BOLD ) )
|
||||
bBoldUnderline = sal_True;
|
||||
bBoldUnderline = true;
|
||||
break;
|
||||
case XML_OPTACTION_UNDERLINE_TYPE:
|
||||
if( IsXMLToken( rAttrValue, XML_DOUBLE ) )
|
||||
bDoubleUnderline = sal_True;
|
||||
bDoubleUnderline = true;
|
||||
break;
|
||||
case XML_OPTACTION_UNDERLINE_STYLE:
|
||||
eUnderline = GetTransformer().GetToken( rAttrValue );
|
||||
break;
|
||||
case XML_OPTACTION_LINETHROUGH_WIDTH:
|
||||
if( IsXMLToken( rAttrValue, XML_BOLD ) )
|
||||
bBoldLineThrough = sal_True;
|
||||
bBoldLineThrough = true;
|
||||
break;
|
||||
case XML_OPTACTION_LINETHROUGH_TYPE:
|
||||
if( IsXMLToken( rAttrValue, XML_DOUBLE ) )
|
||||
bDoubleLineThrough = sal_True;
|
||||
bDoubleLineThrough = true;
|
||||
break;
|
||||
case XML_OPTACTION_LINETHROUGH_STYLE:
|
||||
eLineThrough = GetTransformer().GetToken( rAttrValue );
|
||||
@@ -661,7 +661,7 @@ XMLPropType XMLPropertiesTContext_Impl::GetPropType( const OUString& rLocalName
|
||||
}
|
||||
|
||||
OUString XMLPropertiesTContext_Impl::MergeUnderline(
|
||||
XMLTokenEnum eUnderline, sal_Bool bBold, sal_Bool bDouble )
|
||||
XMLTokenEnum eUnderline, bool bBold, bool bDouble )
|
||||
{
|
||||
if( bDouble )
|
||||
{
|
||||
@@ -726,7 +726,7 @@ OUString XMLPropertiesTContext_Impl::MergeUnderline(
|
||||
}
|
||||
|
||||
OUString XMLPropertiesTContext_Impl::MergeLineThrough(
|
||||
XMLTokenEnum eLineThrough, sal_Bool bBold, sal_Bool bDouble,
|
||||
XMLTokenEnum eLineThrough, bool bBold, bool bDouble,
|
||||
sal_Unicode c )
|
||||
{
|
||||
if( c )
|
||||
@@ -820,7 +820,7 @@ void XMLStyleOASISTContext::StartElement(
|
||||
XMLMutableAttributeList *pMutableAttrList = 0;
|
||||
sal_Int16 nAttrCount = xAttrList.is() ? xAttrList->getLength() : 0;
|
||||
sal_Int16 nFamilyAttr = -1;
|
||||
m_bControlStyle = sal_False;
|
||||
m_bControlStyle = false;
|
||||
|
||||
for( sal_Int16 i=0; i < nAttrCount; i++ )
|
||||
{
|
||||
|
@@ -31,7 +31,7 @@ class XMLStyleOASISTContext : public XMLPersElemContentTContext
|
||||
::rtl::Reference< XMLPropertiesTContext_Impl > m_xPropContext;
|
||||
|
||||
sal_Bool m_bPersistent;
|
||||
sal_Bool m_bControlStyle;
|
||||
bool m_bControlStyle;
|
||||
|
||||
OUString m_aStyleFamily;
|
||||
public:
|
||||
|
Reference in New Issue
Block a user