Kaydet (Commit) ab1e64bb authored tarafından Jens-Heiner Rechtien's avatar Jens-Heiner Rechtien

INTEGRATION: CWS warnings01 (1.64.34); FILE MERGED

2006/05/17 12:01:14 sb 1.64.34.3: #i65438# Fixed previous changes.
2005/11/17 15:19:28 pl 1.64.34.2: #i55991# removed warnings
2005/11/03 17:47:12 cl 1.64.34.1: warning free code changes for unxlngi6
üst 4bb597cf
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* *
* $RCSfile: txtflde.cxx,v $ * $RCSfile: txtflde.cxx,v $
* *
* $Revision: 1.64 $ * $Revision: 1.65 $
* *
* last change: $Author: rt $ $Date: 2005-09-09 15:29:31 $ * last change: $Author: hr $ $Date: 2006-06-19 18:49:20 $
* *
* The Contents of this file are made available subject to * The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1. * the terms of GNU Lesser General Public License Version 2.1.
...@@ -392,89 +392,79 @@ XMLTextFieldExport::XMLTextFieldExport( SvXMLExport& rExp, ...@@ -392,89 +392,79 @@ XMLTextFieldExport::XMLTextFieldExport( SvXMLExport& rExp,
XMLPropertyState* pCombinedCharState) XMLPropertyState* pCombinedCharState)
: rExport(rExp), : rExport(rExp),
pUsedMasters(NULL), pUsedMasters(NULL),
sServicePrefix( sServicePrefix(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.text.TextField.")),
RTL_CONSTASCII_USTRINGPARAM("com.sun.star.text.TextField.")), sFieldMasterPrefix(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.text.FieldMaster.")),
sFieldMasterPrefix( sPresentationServicePrefix(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.presentation.TextField.")),
RTL_CONSTASCII_USTRINGPARAM("com.sun.star.text.FieldMaster.")),
sPresentationServicePrefix( sPropertyAdjust(RTL_CONSTASCII_USTRINGPARAM("Adjust")),
RTL_CONSTASCII_USTRINGPARAM("com.sun.star.presentation.TextField.")), sPropertyAuthor(RTL_CONSTASCII_USTRINGPARAM("Author")),
sPropertyContent(RTL_CONSTASCII_USTRINGPARAM("Content")), sPropertyChapterFormat(RTL_CONSTASCII_USTRINGPARAM("ChapterFormat")),
sPropertyIsFixed(RTL_CONSTASCII_USTRINGPARAM("IsFixed")), sPropertyChapterNumberingLevel(RTL_CONSTASCII_USTRINGPARAM("ChapterNumberingLevel")),
sPropertyFullName(RTL_CONSTASCII_USTRINGPARAM("FullName")), sPropertyCharStyleNames(RTL_CONSTASCII_USTRINGPARAM("CharStyleNames")),
sPropertyFieldSubType(RTL_CONSTASCII_USTRINGPARAM("UserDataType")), sPropertyCondition(RTL_CONSTASCII_USTRINGPARAM("Condition")),
sPropertyHint(RTL_CONSTASCII_USTRINGPARAM("Hint")), sPropertyContent(RTL_CONSTASCII_USTRINGPARAM("Content")),
sPropertyPlaceholder(RTL_CONSTASCII_USTRINGPARAM("PlaceHolder")), sPropertyDataBaseName(RTL_CONSTASCII_USTRINGPARAM("DataBaseName")),
sPropertyPlaceholderType(RTL_CONSTASCII_USTRINGPARAM("PlaceHolderType")), sPropertyDataBaseURL(RTL_CONSTASCII_USTRINGPARAM("DataBaseURL")),
sPropertyIsVisible(RTL_CONSTASCII_USTRINGPARAM("IsVisible")), sPropertyDataColumnName(RTL_CONSTASCII_USTRINGPARAM("DataColumnName")),
sPropertyIsShowFormula(RTL_CONSTASCII_USTRINGPARAM("IsShowFormula")), sPropertyDataCommandType(RTL_CONSTASCII_USTRINGPARAM("DataCommandType")),
sPropertyIsInput(RTL_CONSTASCII_USTRINGPARAM("Input")), sPropertyDataTableName(RTL_CONSTASCII_USTRINGPARAM("DataTableName")),
sPropertyIsExpression(RTL_CONSTASCII_USTRINGPARAM("IsExpression")), sPropertyDate(RTL_CONSTASCII_USTRINGPARAM("Date")),
sPropertyNumberFormat(RTL_CONSTASCII_USTRINGPARAM("NumberFormat")), sPropertyDateTime(RTL_CONSTASCII_USTRINGPARAM("DateTime")),
sPropertyVariableName(RTL_CONSTASCII_USTRINGPARAM("VariableName")), sPropertyDateTimeValue(RTL_CONSTASCII_USTRINGPARAM("DateTimeValue")),
sPropertySubType(RTL_CONSTASCII_USTRINGPARAM("SubType")), sPropertyDDECommandElement(RTL_CONSTASCII_USTRINGPARAM("DDECommandElement")),
sPropertyName(RTL_CONSTASCII_USTRINGPARAM("Name")), sPropertyDDECommandFile(RTL_CONSTASCII_USTRINGPARAM("DDECommandFile")),
sPropertyVariableSubType(RTL_CONSTASCII_USTRINGPARAM("VariableSubtype")), sPropertyDDECommandType(RTL_CONSTASCII_USTRINGPARAM("DDECommandType")),
sPropertyValue(RTL_CONSTASCII_USTRINGPARAM("Value")), sPropertyDependentTextFields(RTL_CONSTASCII_USTRINGPARAM("DependentTextFields")),
sPropertyChapterNumberingLevel( sPropertyFalseContent(RTL_CONSTASCII_USTRINGPARAM("FalseContent")),
RTL_CONSTASCII_USTRINGPARAM("ChapterNumberingLevel")), sPropertyFields(RTL_CONSTASCII_USTRINGPARAM("Fields")),
sPropertyNumberingSeparator( sPropertyFieldSubType(RTL_CONSTASCII_USTRINGPARAM("UserDataType")),
RTL_CONSTASCII_USTRINGPARAM("NumberingSeparator")), sPropertyFileFormat(RTL_CONSTASCII_USTRINGPARAM("FileFormat")),
sPropertyNumberingType( sPropertyFullName(RTL_CONSTASCII_USTRINGPARAM("FullName")),
RTL_CONSTASCII_USTRINGPARAM("NumberingType")), sPropertyHint(RTL_CONSTASCII_USTRINGPARAM("Hint")),
sPropertyDateTimeValue(RTL_CONSTASCII_USTRINGPARAM("DateTimeValue")), sPropertyInstanceName(RTL_CONSTASCII_USTRINGPARAM("InstanceName")),
sPropertyUserText(RTL_CONSTASCII_USTRINGPARAM("UserText")), sPropertyIsAutomaticUpdate(RTL_CONSTASCII_USTRINGPARAM("IsAutomaticUpdate")),
sPropertyOffset(RTL_CONSTASCII_USTRINGPARAM("Offset")), sPropertyIsConditionTrue(RTL_CONSTASCII_USTRINGPARAM("IsConditionTrue")),
sPropertyDataBaseName(RTL_CONSTASCII_USTRINGPARAM("DataBaseName")), sPropertyIsDataBaseFormat(RTL_CONSTASCII_USTRINGPARAM("DataBaseFormat")),
sPropertyDataBaseURL(RTL_CONSTASCII_USTRINGPARAM("DataBaseURL")), sPropertyIsDate(RTL_CONSTASCII_USTRINGPARAM("IsDate")),
sPropertyDataTableName(RTL_CONSTASCII_USTRINGPARAM("DataTableName")), sPropertyIsExpression(RTL_CONSTASCII_USTRINGPARAM("IsExpression")),
sPropertyCondition(RTL_CONSTASCII_USTRINGPARAM("Condition")), sPropertyIsFixed(RTL_CONSTASCII_USTRINGPARAM("IsFixed")),
sPropertySetNumber(RTL_CONSTASCII_USTRINGPARAM("SetNumber")), sPropertyIsFixedLanguage(RTL_CONSTASCII_USTRINGPARAM("IsFixedLanguage")),
sPropertyIsDataBaseFormat(RTL_CONSTASCII_USTRINGPARAM("DataBaseFormat")), sPropertyIsHidden(RTL_CONSTASCII_USTRINGPARAM("IsHidden")),
sPropertyDataColumnName(RTL_CONSTASCII_USTRINGPARAM("DataColumnName")), sPropertyIsInput(RTL_CONSTASCII_USTRINGPARAM("Input")),
sPropertyDateTime(RTL_CONSTASCII_USTRINGPARAM("DateTime")), sPropertyIsShowFormula(RTL_CONSTASCII_USTRINGPARAM("IsShowFormula")),
sPropertyTrueContent(RTL_CONSTASCII_USTRINGPARAM("TrueContent")), sPropertyIsVisible(RTL_CONSTASCII_USTRINGPARAM("IsVisible")),
sPropertyFalseContent(RTL_CONSTASCII_USTRINGPARAM("FalseContent")), sPropertyItems(RTL_CONSTASCII_USTRINGPARAM("Items")),
sPropertyRevision(RTL_CONSTASCII_USTRINGPARAM("Revision")), sPropertyLevel(RTL_CONSTASCII_USTRINGPARAM("Level")),
sPropertyFileFormat(RTL_CONSTASCII_USTRINGPARAM("FileFormat")), sPropertyMacro(RTL_CONSTASCII_USTRINGPARAM("Macro")),
sPropertyChapterFormat(RTL_CONSTASCII_USTRINGPARAM("ChapterFormat")), sPropertyMeasureKind(RTL_CONSTASCII_USTRINGPARAM("Kind")),
sPropertyLevel(RTL_CONSTASCII_USTRINGPARAM("Level")), sPropertyName(RTL_CONSTASCII_USTRINGPARAM("Name")),
sPropertyIsDate(RTL_CONSTASCII_USTRINGPARAM("IsDate")), sPropertyNumberFormat(RTL_CONSTASCII_USTRINGPARAM("NumberFormat")),
sPropertyAdjust(RTL_CONSTASCII_USTRINGPARAM("Adjust")), sPropertyNumberingSeparator(RTL_CONSTASCII_USTRINGPARAM("NumberingSeparator")),
sPropertyOn(RTL_CONSTASCII_USTRINGPARAM("On")), sPropertyNumberingType(RTL_CONSTASCII_USTRINGPARAM("NumberingType")),
sPropertyMacro(RTL_CONSTASCII_USTRINGPARAM("Macro")), sPropertyOffset(RTL_CONSTASCII_USTRINGPARAM("Offset")),
sPropertyReferenceFieldPart( sPropertyOn(RTL_CONSTASCII_USTRINGPARAM("On")),
RTL_CONSTASCII_USTRINGPARAM("ReferenceFieldPart")), sPropertyPlaceholder(RTL_CONSTASCII_USTRINGPARAM("PlaceHolder")),
sPropertyReferenceFieldType( sPropertyPlaceholderType(RTL_CONSTASCII_USTRINGPARAM("PlaceHolderType")),
RTL_CONSTASCII_USTRINGPARAM("ReferenceFieldType")), sPropertyReferenceFieldPart(RTL_CONSTASCII_USTRINGPARAM("ReferenceFieldPart")),
sPropertyReferenceFieldSource( sPropertyReferenceFieldSource(RTL_CONSTASCII_USTRINGPARAM("ReferenceFieldSource")),
RTL_CONSTASCII_USTRINGPARAM("ReferenceFieldSource")), sPropertyReferenceFieldType(RTL_CONSTASCII_USTRINGPARAM("ReferenceFieldType")),
sPropertySequenceNumber(RTL_CONSTASCII_USTRINGPARAM("SequenceNumber")), sPropertyRevision(RTL_CONSTASCII_USTRINGPARAM("Revision")),
sPropertySequenceValue(RTL_CONSTASCII_USTRINGPARAM("SequenceValue")), sPropertyScriptType(RTL_CONSTASCII_USTRINGPARAM("ScriptType")),
sPropertySourceName(RTL_CONSTASCII_USTRINGPARAM("SourceName")), sPropertySelectedItem(RTL_CONSTASCII_USTRINGPARAM("SelectedItem")),
sPropertyDDECommandType(RTL_CONSTASCII_USTRINGPARAM("DDECommandType")), sPropertySequenceNumber(RTL_CONSTASCII_USTRINGPARAM("SequenceNumber")),
sPropertyDDECommandFile(RTL_CONSTASCII_USTRINGPARAM("DDECommandFile")), sPropertySequenceValue(RTL_CONSTASCII_USTRINGPARAM("SequenceValue")),
sPropertyDDECommandElement( sPropertySetNumber(RTL_CONSTASCII_USTRINGPARAM("SetNumber")),
RTL_CONSTASCII_USTRINGPARAM("DDECommandElement")), sPropertySourceName(RTL_CONSTASCII_USTRINGPARAM("SourceName")),
sPropertyIsAutomaticUpdate( sPropertySubType(RTL_CONSTASCII_USTRINGPARAM("SubType")),
RTL_CONSTASCII_USTRINGPARAM("IsAutomaticUpdate")), sPropertyTargetFrame(RTL_CONSTASCII_USTRINGPARAM("TargetFrame")),
sPropertyDependentTextFields( sPropertyTrueContent(RTL_CONSTASCII_USTRINGPARAM("TrueContent")),
RTL_CONSTASCII_USTRINGPARAM("DependentTextFields")), sPropertyURL(RTL_CONSTASCII_USTRINGPARAM("URL")),
sPropertyURL(RTL_CONSTASCII_USTRINGPARAM("URL")), sPropertyURLContent(RTL_CONSTASCII_USTRINGPARAM("URLContent")),
sPropertyTargetFrame(RTL_CONSTASCII_USTRINGPARAM("TargetFrame")), sPropertyUserText(RTL_CONSTASCII_USTRINGPARAM("UserText")),
sPropertyFields(RTL_CONSTASCII_USTRINGPARAM("Fields")), sPropertyValue(RTL_CONSTASCII_USTRINGPARAM("Value")),
sPropertyScriptType(RTL_CONSTASCII_USTRINGPARAM("ScriptType")), sPropertyVariableName(RTL_CONSTASCII_USTRINGPARAM("VariableName")),
sPropertyURLContent(RTL_CONSTASCII_USTRINGPARAM("URLContent")), sPropertyVariableSubType(RTL_CONSTASCII_USTRINGPARAM("VariableSubtype")),
sPropertyAuthor(RTL_CONSTASCII_USTRINGPARAM("Author")),
sPropertyDate(RTL_CONSTASCII_USTRINGPARAM("Date")),
sPropertyMeasureKind(RTL_CONSTASCII_USTRINGPARAM("Kind")),
sPropertyInstanceName(RTL_CONSTASCII_USTRINGPARAM("InstanceName")),
sPropertyIsHidden(RTL_CONSTASCII_USTRINGPARAM("IsHidden")),
sPropertyIsConditionTrue(RTL_CONSTASCII_USTRINGPARAM("IsConditionTrue")),
sPropertyDataCommandType(RTL_CONSTASCII_USTRINGPARAM("DataCommandType")),
sPropertyIsFixedLanguage(RTL_CONSTASCII_USTRINGPARAM("IsFixedLanguage")),
sPropertyCharStyleNames(RTL_CONSTASCII_USTRINGPARAM("CharStyleNames")),
sPropertyItems(RTL_CONSTASCII_USTRINGPARAM("Items")),
sPropertySelectedItem(RTL_CONSTASCII_USTRINGPARAM("SelectedItem")),
pCombinedCharactersPropertyState(pCombinedCharState) pCombinedCharactersPropertyState(pCombinedCharState)
{ {
SetExportOnlyUsedFieldDeclarations(); SetExportOnlyUsedFieldDeclarations();
...@@ -515,19 +505,19 @@ enum FieldIdEnum XMLTextFieldExport::GetFieldID( ...@@ -515,19 +505,19 @@ enum FieldIdEnum XMLTextFieldExport::GetFieldID(
// if this is not a normal text field, check if its a presentation text field // if this is not a normal text field, check if its a presentation text field
if( sFieldName.getLength() == 0 ) if( sFieldName.getLength() == 0 )
{ {
const OUString* pNames = aServices.getConstArray(); const OUString* pNames2 = aServices.getConstArray();
sal_Int32 nCount = aServices.getLength(); sal_Int32 nCount2 = aServices.getLength();
// search for TextField service name // search for TextField service name
while( nCount-- ) while( nCount2-- )
{ {
if( 0 == pNames->compareTo(sPresentationServicePrefix, sPresentationServicePrefix.getLength())) if( 0 == pNames2->compareTo(sPresentationServicePrefix, sPresentationServicePrefix.getLength()))
{ {
// TextField found => postfix is field type! // TextField found => postfix is field type!
sFieldName = pNames->copy(sPresentationServicePrefix.getLength()); sFieldName = pNames2->copy(sPresentationServicePrefix.getLength());
break; break;
} }
++pNames; ++pNames2;
} }
if( sFieldName.getLength() != 0 ) if( sFieldName.getLength() != 0 )
...@@ -788,13 +778,11 @@ sal_Bool XMLTextFieldExport::IsStringField( ...@@ -788,13 +778,11 @@ sal_Bool XMLTextFieldExport::IsStringField(
// TODO: depends on... ??? // TODO: depends on... ???
// workaround #no-bug#: no data type // workaround #no-bug#: no data type
return 5100 == GetIntProperty(sPropertyNumberFormat, xPropSet); return 5100 == GetIntProperty(sPropertyNumberFormat, xPropSet);
break;
case FIELD_ID_TABLE_FORMULA: case FIELD_ID_TABLE_FORMULA:
// legacy field: always a number field (because it always has // legacy field: always a number field (because it always has
// a number format) // a number format)
return sal_False; return sal_False;
break;
case FIELD_ID_COUNT_PAGES: case FIELD_ID_COUNT_PAGES:
case FIELD_ID_COUNT_PARAGRAPHS: case FIELD_ID_COUNT_PARAGRAPHS:
...@@ -1179,7 +1167,7 @@ void XMLTextFieldExport::ExportField(const Reference<XTextField> & rTextField ) ...@@ -1179,7 +1167,7 @@ void XMLTextFieldExport::ExportField(const Reference<XTextField> & rTextField )
void XMLTextFieldExport::ExportFieldHelper( void XMLTextFieldExport::ExportFieldHelper(
const Reference<XTextField> & rTextField, const Reference<XTextField> & rTextField,
const Reference<XPropertySet> & rPropSet, const Reference<XPropertySet> & rPropSet,
const Reference<XPropertySet> & rRangePropSet, const Reference<XPropertySet> &,
enum FieldIdEnum nToken) enum FieldIdEnum nToken)
{ {
// get property set info (because some attributes are not support // get property set info (because some attributes are not support
...@@ -2412,8 +2400,7 @@ void XMLTextFieldExport::ProcessValueAndType( ...@@ -2412,8 +2400,7 @@ void XMLTextFieldExport::ProcessValueAndType(
// number: value-type=..., value...=..., data-style-name=... // number: value-type=..., value...=..., data-style-name=...
DBG_ASSERT(bExportValueType || ~bExportValue, DBG_ASSERT(bExportValueType || !bExportValue, "value w/o value type not supported!");
"value w/o value type not supported!");
// take care of illegal formats // take care of illegal formats
// (shouldn't happen, but does if document is corrupted) // (shouldn't happen, but does if document is corrupted)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment