summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2006-06-19 17:43:36 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2006-06-19 17:43:36 +0000
commite75c82c37efe17578f8e71d5b06696c89e5b26a5 (patch)
treea6606aa97fb6e39134fb159048b813218da1f975 /xmloff
parent53a1c525c073fdf7fe4356d7438639b0b4c1527c (diff)
INTEGRATION: CWS warnings01 (1.39.34); FILE MERGED
2006/05/23 19:19:11 sb 1.39.34.3: RESYNC: (1.39-1.40); FILE MERGED 2005/11/17 15:19:23 pl 1.39.34.2: #i55991# removed warnings 2005/11/03 17:47:09 cl 1.39.34.1: warning free code changes for unxlngi6
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/text/XMLSectionExport.cxx142
1 files changed, 72 insertions, 70 deletions
diff --git a/xmloff/source/text/XMLSectionExport.cxx b/xmloff/source/text/XMLSectionExport.cxx
index 20a8cc52a8b8..9589c55e295e 100644
--- a/xmloff/source/text/XMLSectionExport.cxx
+++ b/xmloff/source/text/XMLSectionExport.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: XMLSectionExport.cxx,v $
*
- * $Revision: 1.40 $
+ * $Revision: 1.41 $
*
- * last change: $Author: hr $ $Date: 2006-04-19 13:37:36 $
+ * last change: $Author: hr $ $Date: 2006-06-19 18:43:36 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -181,70 +181,68 @@ using ::com::sun::star::uno::XInterface;
XMLSectionExport::XMLSectionExport(
SvXMLExport& rExp,
- XMLTextParagraphExport& rParaExp) :
- rExport(rExp),
- rParaExport(rParaExp),
- sCondition(RTL_CONSTASCII_USTRINGPARAM("Condition")),
- sCreateFromChapter(RTL_CONSTASCII_USTRINGPARAM("CreateFromChapter")),
- sCreateFromLabels(RTL_CONSTASCII_USTRINGPARAM("CreateFromLabels")),
- sCreateFromMarks(RTL_CONSTASCII_USTRINGPARAM("CreateFromMarks")),
- sCreateFromOutline(RTL_CONSTASCII_USTRINGPARAM("CreateFromOutline")),
- sDdeCommandElement(RTL_CONSTASCII_USTRINGPARAM("DDECommandElement")),
- sDdeCommandFile(RTL_CONSTASCII_USTRINGPARAM("DDECommandFile")),
- sDdeCommandType(RTL_CONSTASCII_USTRINGPARAM("DDECommandType")),
- sFileLink(RTL_CONSTASCII_USTRINGPARAM("FileLink")),
- sIsCaseSensitive(RTL_CONSTASCII_USTRINGPARAM("IsCaseSensitive")),
- sIsProtected(RTL_CONSTASCII_USTRINGPARAM("IsProtected")),
- sIsVisible(RTL_CONSTASCII_USTRINGPARAM("IsVisible")),
- sLabelCategory(RTL_CONSTASCII_USTRINGPARAM("LabelCategory")),
- sLabelDisplayType(RTL_CONSTASCII_USTRINGPARAM("LabelDisplayType")),
- sLevel(RTL_CONSTASCII_USTRINGPARAM("Level")),
- sLevelFormat(RTL_CONSTASCII_USTRINGPARAM("LevelFormat")),
- sLevelParagraphStyles(
- RTL_CONSTASCII_USTRINGPARAM("LevelParagraphStyles")),
- sLinkRegion(RTL_CONSTASCII_USTRINGPARAM("LinkRegion")),
- sMainEntryCharacterStyleName(
- RTL_CONSTASCII_USTRINGPARAM("MainEntryCharacterStyleName")),
- sParaStyleHeading(RTL_CONSTASCII_USTRINGPARAM("ParaStyleHeading")),
- sParaStyleLevel(RTL_CONSTASCII_USTRINGPARAM("ParaStyleLevel")),
- sTitle(RTL_CONSTASCII_USTRINGPARAM("Title")),
- sName(RTL_CONSTASCII_USTRINGPARAM("Name")),
- sUseAlphabeticalSeparators(
- RTL_CONSTASCII_USTRINGPARAM("UseAlphabeticalSeparators")),
- sUseCombinedEntries(RTL_CONSTASCII_USTRINGPARAM("UseCombinedEntries")),
- sUseDash(RTL_CONSTASCII_USTRINGPARAM("UseDash")),
- sUseKeyAsEntry(RTL_CONSTASCII_USTRINGPARAM("UseKeyAsEntry")),
- sUsePP(RTL_CONSTASCII_USTRINGPARAM("UsePP")),
- sUseUpperCase(RTL_CONSTASCII_USTRINGPARAM("UseUpperCase")),
- sCreateFromOtherEmbeddedObjects(RTL_CONSTASCII_USTRINGPARAM("CreateFromOtherEmbeddedObjects")),
- sCreateFromStarCalc(RTL_CONSTASCII_USTRINGPARAM("CreateFromStarCalc")),
- sCreateFromStarChart(RTL_CONSTASCII_USTRINGPARAM("CreateFromStarChart")),
- sCreateFromStarDraw(RTL_CONSTASCII_USTRINGPARAM("CreateFromStarDraw")),
- sCreateFromStarImage(RTL_CONSTASCII_USTRINGPARAM("CreateFromStarImage")),
- sCreateFromStarMath(RTL_CONSTASCII_USTRINGPARAM("CreateFromStarMath")),
- sCreateFromEmbeddedObjects(RTL_CONSTASCII_USTRINGPARAM("CreateFromEmbeddedObjects")),
- sCreateFromGraphicObjects(RTL_CONSTASCII_USTRINGPARAM("CreateFromGraphicObjects")),
- sCreateFromTables(RTL_CONSTASCII_USTRINGPARAM("CreateFromTables")),
- sCreateFromTextFrames(RTL_CONSTASCII_USTRINGPARAM("CreateFromTextFrames")),
- sUseLevelFromSource(RTL_CONSTASCII_USTRINGPARAM("UseLevelFromSource")),
- sIsCommaSeparated(RTL_CONSTASCII_USTRINGPARAM("IsCommaSeparated")),
- sIsAutomaticUpdate(RTL_CONSTASCII_USTRINGPARAM("IsAutomaticUpdate")),
- sIsRelativeTabstops(RTL_CONSTASCII_USTRINGPARAM("IsRelativeTabstops")),
- sCreateFromLevelParagraphStyles(
- RTL_CONSTASCII_USTRINGPARAM("CreateFromLevelParagraphStyles")),
- sDocumentIndex(RTL_CONSTASCII_USTRINGPARAM("DocumentIndex")),
- sContentSection(RTL_CONSTASCII_USTRINGPARAM("ContentSection")),
- sHeaderSection(RTL_CONSTASCII_USTRINGPARAM("HeaderSection")),
- sTextSection(RTL_CONSTASCII_USTRINGPARAM("TextSection")),
- sIsGlobalDocumentSection(RTL_CONSTASCII_USTRINGPARAM("IsGlobalDocumentSection")),
- sProtectionKey(RTL_CONSTASCII_USTRINGPARAM("ProtectionKey")),
- sSortAlgorithm(RTL_CONSTASCII_USTRINGPARAM("SortAlgorithm")),
- sLocale(RTL_CONSTASCII_USTRINGPARAM("Locale")),
- sUserIndexName(RTL_CONSTASCII_USTRINGPARAM("UserIndexName")),
- sIsCurrentlyVisible(RTL_CONSTASCII_USTRINGPARAM("IsCurrentlyVisible")),
- sHeadingStyleName(RTL_CONSTASCII_USTRINGPARAM("HeadingStyleName")),
- sEmpty(),
- bHeadingDummiesExported( sal_False )
+ XMLTextParagraphExport& rParaExp)
+: sCondition(RTL_CONSTASCII_USTRINGPARAM("Condition"))
+, sCreateFromChapter(RTL_CONSTASCII_USTRINGPARAM("CreateFromChapter"))
+, sCreateFromEmbeddedObjects(RTL_CONSTASCII_USTRINGPARAM("CreateFromEmbeddedObjects"))
+, sCreateFromGraphicObjects(RTL_CONSTASCII_USTRINGPARAM("CreateFromGraphicObjects"))
+, sCreateFromLabels(RTL_CONSTASCII_USTRINGPARAM("CreateFromLabels"))
+, sCreateFromMarks(RTL_CONSTASCII_USTRINGPARAM("CreateFromMarks"))
+, sCreateFromOtherEmbeddedObjects(RTL_CONSTASCII_USTRINGPARAM("CreateFromOtherEmbeddedObjects"))
+, sCreateFromOutline(RTL_CONSTASCII_USTRINGPARAM("CreateFromOutline"))
+, sCreateFromStarCalc(RTL_CONSTASCII_USTRINGPARAM("CreateFromStarCalc"))
+, sCreateFromStarChart(RTL_CONSTASCII_USTRINGPARAM("CreateFromStarChart"))
+, sCreateFromStarDraw(RTL_CONSTASCII_USTRINGPARAM("CreateFromStarDraw"))
+, sCreateFromStarImage(RTL_CONSTASCII_USTRINGPARAM("CreateFromStarImage"))
+, sCreateFromStarMath(RTL_CONSTASCII_USTRINGPARAM("CreateFromStarMath"))
+, sCreateFromTables(RTL_CONSTASCII_USTRINGPARAM("CreateFromTables"))
+, sCreateFromTextFrames(RTL_CONSTASCII_USTRINGPARAM("CreateFromTextFrames"))
+, sDdeCommandElement(RTL_CONSTASCII_USTRINGPARAM("DDECommandElement"))
+, sDdeCommandFile(RTL_CONSTASCII_USTRINGPARAM("DDECommandFile"))
+, sDdeCommandType(RTL_CONSTASCII_USTRINGPARAM("DDECommandType"))
+, sFileLink(RTL_CONSTASCII_USTRINGPARAM("FileLink"))
+, sIsCaseSensitive(RTL_CONSTASCII_USTRINGPARAM("IsCaseSensitive"))
+, sIsProtected(RTL_CONSTASCII_USTRINGPARAM("IsProtected"))
+, sIsVisible(RTL_CONSTASCII_USTRINGPARAM("IsVisible"))
+, sLabelCategory(RTL_CONSTASCII_USTRINGPARAM("LabelCategory"))
+, sLabelDisplayType(RTL_CONSTASCII_USTRINGPARAM("LabelDisplayType"))
+, sLevel(RTL_CONSTASCII_USTRINGPARAM("Level"))
+, sLevelFormat(RTL_CONSTASCII_USTRINGPARAM("LevelFormat"))
+, sLevelParagraphStyles(RTL_CONSTASCII_USTRINGPARAM("LevelParagraphStyles"))
+, sLinkRegion(RTL_CONSTASCII_USTRINGPARAM("LinkRegion"))
+, sMainEntryCharacterStyleName(RTL_CONSTASCII_USTRINGPARAM("MainEntryCharacterStyleName"))
+, sParaStyleHeading(RTL_CONSTASCII_USTRINGPARAM("ParaStyleHeading"))
+, sParaStyleLevel(RTL_CONSTASCII_USTRINGPARAM("ParaStyleLevel"))
+, sTitle(RTL_CONSTASCII_USTRINGPARAM("Title"))
+, sName(RTL_CONSTASCII_USTRINGPARAM("Name"))
+, sUseAlphabeticalSeparators(RTL_CONSTASCII_USTRINGPARAM("UseAlphabeticalSeparators"))
+, sUseCombinedEntries(RTL_CONSTASCII_USTRINGPARAM("UseCombinedEntries"))
+, sUseDash(RTL_CONSTASCII_USTRINGPARAM("UseDash"))
+, sUseKeyAsEntry(RTL_CONSTASCII_USTRINGPARAM("UseKeyAsEntry"))
+, sUseLevelFromSource(RTL_CONSTASCII_USTRINGPARAM("UseLevelFromSource"))
+, sUsePP(RTL_CONSTASCII_USTRINGPARAM("UsePP"))
+, sUseUpperCase(RTL_CONSTASCII_USTRINGPARAM("UseUpperCase"))
+, sIsCommaSeparated(RTL_CONSTASCII_USTRINGPARAM("IsCommaSeparated"))
+, sIsAutomaticUpdate(RTL_CONSTASCII_USTRINGPARAM("IsAutomaticUpdate"))
+, sIsRelativeTabstops(RTL_CONSTASCII_USTRINGPARAM("IsRelativeTabstops"))
+, sCreateFromLevelParagraphStyles(RTL_CONSTASCII_USTRINGPARAM("CreateFromLevelParagraphStyles"))
+, sDocumentIndex(RTL_CONSTASCII_USTRINGPARAM("DocumentIndex"))
+, sContentSection(RTL_CONSTASCII_USTRINGPARAM("ContentSection"))
+, sHeaderSection(RTL_CONSTASCII_USTRINGPARAM("HeaderSection"))
+
+, sTextSection(RTL_CONSTASCII_USTRINGPARAM("TextSection"))
+, sIsGlobalDocumentSection(RTL_CONSTASCII_USTRINGPARAM("IsGlobalDocumentSection"))
+, sProtectionKey(RTL_CONSTASCII_USTRINGPARAM("ProtectionKey"))
+, sSortAlgorithm(RTL_CONSTASCII_USTRINGPARAM("SortAlgorithm"))
+, sLocale(RTL_CONSTASCII_USTRINGPARAM("Locale"))
+, sUserIndexName(RTL_CONSTASCII_USTRINGPARAM("UserIndexName"))
+
+, sIsCurrentlyVisible(RTL_CONSTASCII_USTRINGPARAM("IsCurrentlyVisible"))
+, sHeadingStyleName(RTL_CONSTASCII_USTRINGPARAM("HeadingStyleName"))
+
+, rExport(rExp)
+, rParaExport(rParaExp)
+, bHeadingDummiesExported( sal_False )
{
}
@@ -1009,8 +1007,12 @@ void XMLSectionExport::ExportBaseIndexSource(
void XMLSectionExport::ExportBaseIndexBody(
- SectionTypeEnum eType,
- const Reference<XPropertySet> & rSection)
+ SectionTypeEnum
+ #ifdef DBG_UTIL
+ eType
+ #endif
+ ,
+ const Reference<XPropertySet> &)
{
// type not used; checked anyway.
DBG_ASSERT(eType >= TEXT_SECTION_TYPE_TOC, "illegal index type");
@@ -1729,9 +1731,9 @@ void XMLSectionExport::ExportBibliographyConfiguration(SvXMLExport& rExport)
Sequence<PropertyValue> & rKey = aKeys[nKeys];
sal_Int32 nKeyCount = rKey.getLength();
- for(sal_Int32 nKey = 0; nKey < nKeyCount; nKey++)
+ for(sal_Int32 nPropertyKey = 0; nPropertyKey < nKeyCount; nPropertyKey++)
{
- PropertyValue& rValue = rKey[nKey];
+ PropertyValue& rValue = rKey[nPropertyKey];
if (rValue.Name.equalsAsciiL(sAPI_SortKey,
sizeof(sAPI_SortKey)-1))