summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2006-06-19 17:52:28 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2006-06-19 17:52:28 +0000
commit86092a63ed9bb95f7e0c981a4eca57c1cf9f7baf (patch)
tree5f55566a05db3b299a466cdb4dcaa6035f8a491a
parent231e813102e5c1b5373a375eeeafa5ee4c5f472f (diff)
INTEGRATION: CWS warnings01 (1.5.32); FILE MERGED
2005/11/17 16:33:57 pl 1.5.32.1: #i55991# removed warnings
-rw-r--r--xmloff/source/transform/EventOASISTContext.cxx67
1 files changed, 33 insertions, 34 deletions
diff --git a/xmloff/source/transform/EventOASISTContext.cxx b/xmloff/source/transform/EventOASISTContext.cxx
index 93f1b7641240..393d74d79a41 100644
--- a/xmloff/source/transform/EventOASISTContext.cxx
+++ b/xmloff/source/transform/EventOASISTContext.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: EventOASISTContext.cxx,v $
*
- * $Revision: 1.5 $
+ * $Revision: 1.6 $
*
- * last change: $Author: rt $ $Date: 2005-09-09 15:42:23 $
+ * last change: $Author: hr $ $Date: 2006-06-19 18:52:28 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -367,39 +367,38 @@ void XMLEventOASISTransformerContext::StartElement(
}
break;
case XML_ATACTION_MACRO_NAME:
+ {
+ OUString aName, aLocation;
+ bool bNeedsTransform =
+ ParseURL( rAttrValue, &aName, &aLocation );
+
+ if ( bNeedsTransform )
{
- OUString aName, aLocation;
- bool bNeedsTransform =
- ParseURL( rAttrValue, &aName, &aLocation );
+ pMutableAttrList->SetValueByIndex( i, aName );
- if ( bNeedsTransform )
- {
- pMutableAttrList->SetValueByIndex( i, aName );
+ sal_Int16 idx = pMutableAttrList->GetIndexByName(
+ GetTransformer().GetNamespaceMap().GetQNameByKey(
+ XML_NAMESPACE_SCRIPT,
+ GetXMLToken( XML_LANGUAGE ) ) );
- sal_Int16 idx = pMutableAttrList->GetIndexByName(
- GetTransformer().GetNamespaceMap().GetQNameByKey(
- XML_NAMESPACE_SCRIPT,
- GetXMLToken( XML_LANGUAGE ) ) );
+ pMutableAttrList->SetValueByIndex( idx,
+ OUString::createFromAscii("StarBasic") );
- pMutableAttrList->SetValueByIndex( idx,
- OUString::createFromAscii("StarBasic") );
+ OUString aLocQName(
+ GetTransformer().GetNamespaceMap().GetQNameByKey(
+ XML_NAMESPACE_SCRIPT,
+ GetXMLToken( XML_LOCATION ) ) );
- OUString aLocQName(
- GetTransformer().GetNamespaceMap().GetQNameByKey(
- XML_NAMESPACE_SCRIPT,
- GetXMLToken( XML_LOCATION ) ) );
-
- pMutableAttrList->AddAttribute( aLocQName, aLocation );
- }
- else
- {
+ pMutableAttrList->AddAttribute( aLocQName, aLocation );
+ }
+ else
+ {
const OUString& rApp = GetXMLToken( XML_APPLICATION );
const OUString& rDoc = GetXMLToken( XML_DOCUMENT );
- OUString aLocation;
OUString aAttrValue;
if( rAttrValue.getLength() > rApp.getLength()+1 &&
rAttrValue.copy(0,rApp.getLength()).
- equalsIgnoreAsciiCase( rApp ) &&
+ equalsIgnoreAsciiCase( rApp ) &&
':' == rAttrValue[rApp.getLength()] )
{
aLocation = rApp;
@@ -407,30 +406,30 @@ void XMLEventOASISTransformerContext::StartElement(
}
else if( rAttrValue.getLength() > rDoc.getLength()+1 &&
rAttrValue.copy(0,rDoc.getLength()).
- equalsIgnoreAsciiCase( rDoc ) &&
- ':' == rAttrValue[rDoc.getLength()] )
+ equalsIgnoreAsciiCase( rDoc ) &&
+ ':' == rAttrValue[rDoc.getLength()] )
{
aLocation= rDoc;
aAttrValue = rAttrValue.copy( rDoc.getLength()+1 );
}
if( aAttrValue.getLength() )
pMutableAttrList->SetValueByIndex( i,
- aAttrValue );
+ aAttrValue );
if( aLocation.getLength() )
{
OUString aAttrQName( GetTransformer().GetNamespaceMap().
- GetQNameByKey( XML_NAMESPACE_SCRIPT,
- ::xmloff::token::GetXMLToken( XML_LOCATION ) ) );
+ GetQNameByKey( XML_NAMESPACE_SCRIPT,
+ ::xmloff::token::GetXMLToken( XML_LOCATION ) ) );
pMutableAttrList->AddAttribute( aAttrQName, aLocation );
// draw bug
aAttrQName = GetTransformer().GetNamespaceMap().
- GetQNameByKey( XML_NAMESPACE_SCRIPT,
- ::xmloff::token::GetXMLToken( XML_LIBRARY ) );
+ GetQNameByKey( XML_NAMESPACE_SCRIPT,
+ ::xmloff::token::GetXMLToken( XML_LIBRARY ) );
pMutableAttrList->AddAttribute( aAttrQName, aLocation );
}
- }
}
- break;
+ }
+ break;
case XML_ATACTION_COPY:
break;
default: