summaryrefslogtreecommitdiff
path: root/xmloff/source/text/txtftne.cxx
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2006-06-19 17:49:46 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2006-06-19 17:49:46 +0000
commit20a693dcd9d3dc0fbdf0387628f68718d0e548bc (patch)
treeea0b1ee9615c881e0c1fef297c01c8243208f624 /xmloff/source/text/txtftne.cxx
parent9fbfc9299a45a65228312f8698f3174f065a0c06 (diff)
INTEGRATION: CWS warnings01 (1.15.34); FILE MERGED
2005/11/17 15:19:28 pl 1.15.34.2: #i55991# removed warnings 2005/11/03 17:47:12 cl 1.15.34.1: warning free code changes for unxlngi6
Diffstat (limited to 'xmloff/source/text/txtftne.cxx')
-rw-r--r--xmloff/source/text/txtftne.cxx35
1 files changed, 17 insertions, 18 deletions
diff --git a/xmloff/source/text/txtftne.cxx b/xmloff/source/text/txtftne.cxx
index 18336d8a073e..ee024fd7fa29 100644
--- a/xmloff/source/text/txtftne.cxx
+++ b/xmloff/source/text/txtftne.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: txtftne.cxx,v $
*
- * $Revision: 1.15 $
+ * $Revision: 1.16 $
*
- * last change: $Author: rt $ $Date: 2005-09-09 15:30:02 $
+ * last change: $Author: hr $ $Date: 2006-06-19 18:49:46 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -139,8 +139,8 @@ using namespace ::xmloff::token;
void XMLTextParagraphExport::exportTextFootnote(
const Reference<XPropertySet> & rPropSet,
- const OUString& sText,
- sal_Bool bAutoStyles, sal_Bool bProgress )
+ const OUString& rText,
+ sal_Bool bAutoStyles, sal_Bool bIsProgress )
{
// get footnote and associated text
Any aAny;
@@ -159,8 +159,8 @@ void XMLTextParagraphExport::exportTextFootnote(
Add( XML_STYLE_FAMILY_TEXT_TEXT, rPropSet );
// handle formatting within footnote
- exportTextFootnoteHelper(xFootnote, xText, sText,
- bAutoStyles, bIsEndnote, bProgress );
+ exportTextFootnoteHelper(xFootnote, xText, rText,
+ bAutoStyles, bIsEndnote, bIsProgress );
}
else
{
@@ -170,7 +170,6 @@ void XMLTextParagraphExport::exportTextFootnote(
sal_Bool bIsUICharStyle = sal_False;
OUString sStyle = FindTextStyleAndHyperlink( rPropSet, bHasHyperlink,
bIsUICharStyle );
- sal_Bool bHasStyle = (sStyle.getLength() > 0);
// export hyperlink (if we have one)
Reference < XPropertySetInfo > xPropSetInfo;
if( bHasHyperlink )
@@ -191,9 +190,9 @@ void XMLTextParagraphExport::exportTextFootnote(
"HyperLinkEvents"));
if (xPropSetInfo->hasPropertyByName(sHyperLinkEvents))
{
- Any aAny = rPropSet->getPropertyValue(sHyperLinkEvents);
+ Any a = rPropSet->getPropertyValue(sHyperLinkEvents);
Reference<XNameReplace> xName;
- aAny >>= xName;
+ a >>= xName;
GetExport().GetEventExport().Export(xName, sal_False);
}
}
@@ -210,13 +209,13 @@ void XMLTextParagraphExport::exportTextFootnote(
GetExport().EncodeStyleName( sStyle ) );
SvXMLElementExport aElem( GetExport(), XML_NAMESPACE_TEXT,
XML_SPAN, sal_False, sal_False );
- exportTextFootnoteHelper(xFootnote, xText, sText,
- bAutoStyles, bIsEndnote, bProgress );
+ exportTextFootnoteHelper(xFootnote, xText, rText,
+ bAutoStyles, bIsEndnote, bIsProgress );
}
else
{
- exportTextFootnoteHelper(xFootnote, xText, sText,
- bAutoStyles, bIsEndnote, bProgress );
+ exportTextFootnoteHelper(xFootnote, xText, rText,
+ bAutoStyles, bIsEndnote, bIsProgress );
}
}
}
@@ -226,14 +225,14 @@ void XMLTextParagraphExport::exportTextFootnote(
void XMLTextParagraphExport::exportTextFootnoteHelper(
const Reference<XFootnote> & rFootnote,
const Reference<XText> & rText,
- const OUString& sText,
+ const OUString& rTextString,
sal_Bool bAutoStyles,
sal_Bool bIsEndnote,
- sal_Bool bProgress )
+ sal_Bool bIsProgress )
{
if (bAutoStyles)
{
- exportText(rText, bAutoStyles, bProgress, sal_True );
+ exportText(rText, bAutoStyles, bIsProgress, sal_True );
}
else
{
@@ -265,13 +264,13 @@ void XMLTextParagraphExport::exportTextFootnoteHelper(
SvXMLElementExport aCite(GetExport(), XML_NAMESPACE_TEXT,
XML_NOTE_CITATION, sal_False, sal_False);
- GetExport().Characters(sText);
+ GetExport().Characters(rTextString);
}
{
SvXMLElementExport aBody(GetExport(), XML_NAMESPACE_TEXT,
XML_NOTE_BODY, sal_False, sal_False);
- exportText(rText, bAutoStyles, bProgress, sal_True );
+ exportText(rText, bAutoStyles, bIsProgress, sal_True );
}
}
}