summaryrefslogtreecommitdiff
path: root/xmloff/source/text
diff options
context:
space:
mode:
Diffstat (limited to 'xmloff/source/text')
-rw-r--r--xmloff/source/text/XMLSectionFootnoteConfigExport.cxx2
-rw-r--r--xmloff/source/text/XMLTextHeaderFooterContext.cxx2
-rw-r--r--xmloff/source/text/txtdrope.cxx4
-rw-r--r--xmloff/source/text/txtflde.cxx2
-rw-r--r--xmloff/source/text/txtparae.cxx2
-rw-r--r--xmloff/source/text/txtstyle.cxx2
6 files changed, 7 insertions, 7 deletions
diff --git a/xmloff/source/text/XMLSectionFootnoteConfigExport.cxx b/xmloff/source/text/XMLSectionFootnoteConfigExport.cxx
index 048e8b7ab7dd..6e1c06319110 100644
--- a/xmloff/source/text/XMLSectionFootnoteConfigExport.cxx
+++ b/xmloff/source/text/XMLSectionFootnoteConfigExport.cxx
@@ -131,7 +131,6 @@ void XMLSectionFootnoteConfigExport::exportXML(
GetXMLToken( bEndnote ? XML_ENDNOTE
: XML_FOOTNOTE ) );
// start numbering
- OUStringBuffer sBuf;
if (bNumRestart)
{
// restart number is stored as 0.., but interpreted as 1..
@@ -154,6 +153,7 @@ void XMLSectionFootnoteConfigExport::exportXML(
}
// number type: num format
+ OUStringBuffer sBuf;
rExport.GetMM100UnitConverter().convertNumFormat( sBuf,
nNumberingType );
rExport.AddAttribute(XML_NAMESPACE_STYLE, XML_NUM_FORMAT,
diff --git a/xmloff/source/text/XMLTextHeaderFooterContext.cxx b/xmloff/source/text/XMLTextHeaderFooterContext.cxx
index 5437cb508f71..1bb70bdd081e 100644
--- a/xmloff/source/text/XMLTextHeaderFooterContext.cxx
+++ b/xmloff/source/text/XMLTextHeaderFooterContext.cxx
@@ -46,7 +46,6 @@ XMLTextHeaderFooterContext::XMLTextHeaderFooterContext( SvXMLImport& rImport,
bLeft( bLft ),
bFirst( bFrst )
{
- const OUString sShareContentFirst( "FirstIsShared" );
// NOTE: if this ever handles XML_DISPLAY attr then beware of fdo#72850 !
if( !(bLeft || bFirst) )
return;
@@ -70,6 +69,7 @@ XMLTextHeaderFooterContext::XMLTextHeaderFooterContext( SvXMLImport& rImport,
}
if (bFirst)
{
+ const OUString sShareContentFirst( "FirstIsShared" );
aAny = xPropSet->getPropertyValue( sShareContentFirst );
bool bSharedFirst = bool();
if (!(aAny >>= bSharedFirst))
diff --git a/xmloff/source/text/txtdrope.cxx b/xmloff/source/text/txtdrope.cxx
index e85aa839b505..63b9222e14a3 100644
--- a/xmloff/source/text/txtdrope.cxx
+++ b/xmloff/source/text/txtdrope.cxx
@@ -47,8 +47,6 @@ void XMLTextDropCapExport::exportXML( const Any& rAny,
{
DropCapFormat aFormat;
rAny >>= aFormat;
- OUString sValue;
- OUStringBuffer sBuffer;
if( aFormat.Lines > 1 )
{
SvXMLUnitConverter& rUnitConv = rExport.GetMM100UnitConverter();
@@ -58,6 +56,7 @@ void XMLTextDropCapExport::exportXML( const Any& rAny,
OUString::number( aFormat.Lines ) );
// style:length
+ OUString sValue;
if( bWholeWord )
{
sValue = GetXMLToken(XML_WORD);
@@ -72,6 +71,7 @@ void XMLTextDropCapExport::exportXML( const Any& rAny,
// style:distance
if( aFormat.Distance > 0 )
{
+ OUStringBuffer sBuffer;
rUnitConv.convertMeasureToXML( sBuffer, aFormat.Distance );
rExport.AddAttribute( XML_NAMESPACE_STYLE, XML_DISTANCE,
sBuffer.makeStringAndClear() );
diff --git a/xmloff/source/text/txtflde.cxx b/xmloff/source/text/txtflde.cxx
index f4d32a263144..2654a23bca7e 100644
--- a/xmloff/source/text/txtflde.cxx
+++ b/xmloff/source/text/txtflde.cxx
@@ -2261,7 +2261,6 @@ void XMLTextFieldExport::ExportMacro(
{
// some strings we'll need
OUString sEventType( "EventType" );
- OUString sScript( "Script" );
OUString sPropertyScriptURL( "ScriptURL" );
@@ -2285,6 +2284,7 @@ void XMLTextFieldExport::ExportMacro(
// Framework URL, otherwise treat it as a Basic Macro
if (!sName.isEmpty())
{
+ OUString sScript( "Script" );
aSeq = Sequence<PropertyValue> (2);
PropertyValue* pArr = aSeq.getArray();
pArr[0].Name = sEventType;
diff --git a/xmloff/source/text/txtparae.cxx b/xmloff/source/text/txtparae.cxx
index c33eec54ddf9..d787537e26f0 100644
--- a/xmloff/source/text/txtparae.cxx
+++ b/xmloff/source/text/txtparae.cxx
@@ -2001,7 +2001,6 @@ void XMLTextParagraphExport::exportParagraph(
{
Reference< XChapterNumberingSupplier > xCNSupplier( GetExport().GetModel(), UNO_QUERY );
- OUString sOutlineName;
if (xCNSupplier.is())
{
Reference< XIndexReplace > xNumRule ( xCNSupplier->getChapterNumberingRules() );
@@ -2010,6 +2009,7 @@ void XMLTextParagraphExport::exportParagraph(
if (xNumRule.is())
{
Reference< XPropertySet > xNumRulePropSet( xNumRule, UNO_QUERY );
+ OUString sOutlineName;
xNumRulePropSet->getPropertyValue(
"Name" ) >>= sOutlineName;
bAssignedtoOutlineStyle = ( sListStyleName == sOutlineName );
diff --git a/xmloff/source/text/txtstyle.cxx b/xmloff/source/text/txtstyle.cxx
index 6b21eb44e208..fd04a925bc35 100644
--- a/xmloff/source/text/txtstyle.cxx
+++ b/xmloff/source/text/txtstyle.cxx
@@ -49,7 +49,6 @@ using namespace ::xmloff::token;
void XMLTextParagraphExport::exportStyleAttributes(
const css::uno::Reference< css::style::XStyle > & rStyle )
{
- OUString sName;
Reference< XPropertySet > xPropSet( rStyle, UNO_QUERY );
Reference< XPropertySetInfo > xPropSetInfo(
xPropSet->getPropertySetInfo());
@@ -91,6 +90,7 @@ void XMLTextParagraphExport::exportStyleAttributes(
if( PropertyState_DIRECT_VALUE ==
xPropState->getPropertyState( gsPageDescName ) )
{
+ OUString sName;
xPropSet->getPropertyValue( gsPageDescName ) >>= sName;
// fix for #i5551# if( sName.getLength() > 0 )
GetExport().AddAttribute( XML_NAMESPACE_STYLE,