summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2011-08-28 04:08:33 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2011-08-28 22:48:05 +0200
commit0294fa0ea81ab4b9625e5e8f0513ce94ea3217d7 (patch)
treee405af293bed5681f0513e9a44e72bc2a3eeba47 /xmloff
parent49a96397da5e20c695e2972b5964da957724ef5e (diff)
some more sal_Bool -> bool in sc/source/filter/xml
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/inc/xmloff/numehelp.hxx4
-rw-r--r--xmloff/inc/xmloff/txtparae.hxx4
-rw-r--r--xmloff/source/style/numehelp.cxx6
-rw-r--r--xmloff/source/text/txtparae.cxx14
4 files changed, 14 insertions, 14 deletions
diff --git a/xmloff/inc/xmloff/numehelp.hxx b/xmloff/inc/xmloff/numehelp.hxx
index f6eeeed55877..e426b6e2a05f 100644
--- a/xmloff/inc/xmloff/numehelp.hxx
+++ b/xmloff/inc/xmloff/numehelp.hxx
@@ -89,7 +89,7 @@ public :
~XMLNumberFormatAttributesExportHelper();
void SetExport(SvXMLExport* pExp) { this->pExport = pExp; }
- sal_Int16 GetCellType(const sal_Int32 nNumberFormat, rtl::OUString& sCurrency, sal_Bool& bIsStandard);
+ sal_Int16 GetCellType(const sal_Int32 nNumberFormat, rtl::OUString& sCurrency, bool& bIsStandard);
static void WriteAttributes(SvXMLExport& rXMLExport,
const sal_Int16 nTypeKey,
const double& rValue,
@@ -110,7 +110,7 @@ public :
sal_Bool bExportTypeAttribute = sal_True);
sal_Bool GetCurrencySymbol(const sal_Int32 nNumberFormat, rtl::OUString& rCurrencySymbol);
- sal_Int16 GetCellType(const sal_Int32 nNumberFormat, sal_Bool& bIsStandard);
+ sal_Int16 GetCellType(const sal_Int32 nNumberFormat, bool& bIsStandard);
void WriteAttributes(const sal_Int16 nTypeKey,
const double& rValue,
const rtl::OUString& rCurrencySymbol,
diff --git a/xmloff/inc/xmloff/txtparae.hxx b/xmloff/inc/xmloff/txtparae.hxx
index c354fc5fbcaa..53e11180fd06 100644
--- a/xmloff/inc/xmloff/txtparae.hxx
+++ b/xmloff/inc/xmloff/txtparae.hxx
@@ -432,7 +432,7 @@ protected:
const ::com::sun::star::uno::Reference <
::com::sun::star::text::XTextRange > & rTextRange,
sal_Bool bAutoStyles,
- sal_Bool& rPrevCharWasSpace );
+ bool& rPrevCharWasSpace );
void exportListChange( const XMLTextNumRuleInfo& rPrvInfo,
const XMLTextNumRuleInfo& rNextInfo );
@@ -571,7 +571,7 @@ public:
// This method exports the given OUString
void exportText(
const ::rtl::OUString& rText,
- sal_Bool& rPrevCharWasSpace );
+ bool& rPrevCharWasSpace );
// This method collects all automatic styles for the given XText
void collectTextAutoStyles(
diff --git a/xmloff/source/style/numehelp.cxx b/xmloff/source/style/numehelp.cxx
index a5c1680ede53..a708d21cf0f1 100644
--- a/xmloff/source/style/numehelp.cxx
+++ b/xmloff/source/style/numehelp.cxx
@@ -88,7 +88,7 @@ XMLNumberFormatAttributesExportHelper::~XMLNumberFormatAttributesExportHelper()
{
}
-sal_Int16 XMLNumberFormatAttributesExportHelper::GetCellType(const sal_Int32 nNumberFormat, rtl::OUString& sCurrency, sal_Bool& bIsStandard)
+sal_Int16 XMLNumberFormatAttributesExportHelper::GetCellType(const sal_Int32 nNumberFormat, rtl::OUString& sCurrency, bool& bIsStandard)
{
XMLNumberFormat aFormat(sEmpty, nNumberFormat, 0);
XMLNumberFormatSet::iterator aItr(aNumberFormats.find(aFormat));
@@ -363,7 +363,7 @@ sal_Bool XMLNumberFormatAttributesExportHelper::GetCurrencySymbol(const sal_Int3
return sal_False;
}
-sal_Int16 XMLNumberFormatAttributesExportHelper::GetCellType(const sal_Int32 nNumberFormat, sal_Bool& bIsStandard)
+sal_Int16 XMLNumberFormatAttributesExportHelper::GetCellType(const sal_Int32 nNumberFormat, bool& bIsStandard)
{
if (!xNumberFormats.is() && pExport && pExport->GetNumberFormatsSupplier().is())
xNumberFormats.set(pExport->GetNumberFormatsSupplier()->getNumberFormats());
@@ -532,7 +532,7 @@ void XMLNumberFormatAttributesExportHelper::SetNumberFormatAttributes(
{
if (pExport)
{
- sal_Bool bIsStandard;
+ bool bIsStandard;
rtl::OUString sCurrency;
sal_Int16 nTypeKey = GetCellType(nNumberFormat, sCurrency, bIsStandard);
WriteAttributes(nTypeKey, rValue, sCurrency, bExportValue);
diff --git a/xmloff/source/text/txtparae.cxx b/xmloff/source/text/txtparae.cxx
index aac49a603091..4e00ce513185 100644
--- a/xmloff/source/text/txtparae.cxx
+++ b/xmloff/source/text/txtparae.cxx
@@ -2197,7 +2197,7 @@ void XMLTextParagraphExport::exportTextRangeEnumeration(
sal_Bool bPrvChrIsSpc )
{
static OUString sMeta(RTL_CONSTASCII_USTRINGPARAM("InContentMetadata"));
- sal_Bool bPrevCharIsSpace = bPrvChrIsSpc;
+ bool bPrevCharIsSpace = bPrvChrIsSpc;
while( rTextEnum->hasMoreElements() )
{
@@ -2218,7 +2218,7 @@ void XMLTextParagraphExport::exportTextRangeEnumeration(
else if( sType.equals(sTextField))
{
exportTextField( xTxtRange, bAutoStyles, bIsProgress );
- bPrevCharIsSpace = sal_False;
+ bPrevCharIsSpace = false;
}
else if( sType.equals( sFrame ) )
{
@@ -2236,14 +2236,14 @@ void XMLTextParagraphExport::exportTextRangeEnumeration(
xSection, bIsProgress, sal_True,
&xPropSet );
- bPrevCharIsSpace = sal_False;
+ bPrevCharIsSpace = false;
}
else if (sType.equals(sFootnote))
{
exportTextFootnote(xPropSet,
xTxtRange->getString(),
bAutoStyles, bIsProgress );
- bPrevCharIsSpace = sal_False;
+ bPrevCharIsSpace = false;
}
else if (sType.equals(sBookmark))
{
@@ -2342,7 +2342,7 @@ void XMLTextParagraphExport::exportTextRangeEnumeration(
if( xServiceInfo->supportsService( sTextFieldService ) )
{
exportTextField( xTxtRange, bAutoStyles, bIsProgress );
- bPrevCharIsSpace = sal_False;
+ bPrevCharIsSpace = false;
}
else
{
@@ -3207,7 +3207,7 @@ sal_Bool XMLTextParagraphExport::addHyperlinkAttributes(
void XMLTextParagraphExport::exportTextRange(
const Reference < XTextRange > & rTextRange,
sal_Bool bAutoStyles,
- sal_Bool& rPrevCharIsSpace )
+ bool& rPrevCharIsSpace )
{
Reference < XPropertySet > xPropSet( rTextRange, UNO_QUERY );
if( bAutoStyles )
@@ -3267,7 +3267,7 @@ void XMLTextParagraphExport::exportTextRange(
}
void XMLTextParagraphExport::exportText( const OUString& rText,
- sal_Bool& rPrevCharIsSpace )
+ bool& rPrevCharIsSpace )
{
sal_Int32 nExpStartPos = 0;
sal_Int32 nEndPos = rText.getLength();