summaryrefslogtreecommitdiff
path: root/xmloff/source/style/XMLBackgroundImageExport.cxx
diff options
context:
space:
mode:
authorDaniel Vogelheim <dvo@openoffice.org>2002-08-29 16:47:23 +0000
committerDaniel Vogelheim <dvo@openoffice.org>2002-08-29 16:47:23 +0000
commit10841f8eecf9e7f8106b60ffe61657e3be7e9813 (patch)
tree4260f00cf52638a45d75763e4c0a29a76736ce9d /xmloff/source/style/XMLBackgroundImageExport.cxx
parent0d9c09f5be04500a71a0e8624eb0c01f060a45c3 (diff)
#99657# load/save background (color + image) transparancy
for Writer frames
Diffstat (limited to 'xmloff/source/style/XMLBackgroundImageExport.cxx')
-rw-r--r--xmloff/source/style/XMLBackgroundImageExport.cxx20
1 files changed, 18 insertions, 2 deletions
diff --git a/xmloff/source/style/XMLBackgroundImageExport.cxx b/xmloff/source/style/XMLBackgroundImageExport.cxx
index dd361ba2f2a9..2d3a8e23460f 100644
--- a/xmloff/source/style/XMLBackgroundImageExport.cxx
+++ b/xmloff/source/style/XMLBackgroundImageExport.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: XMLBackgroundImageExport.cxx,v $
*
- * $Revision: 1.6 $
+ * $Revision: 1.7 $
*
- * last change: $Author: dvo $ $Date: 2001-06-29 21:07:17 $
+ * last change: $Author: dvo $ $Date: 2002-08-29 17:46:18 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -78,6 +78,9 @@
#ifndef _XMLBACKGROUNDIMAGEEXPORT_HXX
#include "XMLBackgroundImageExport.hxx"
#endif
+#ifndef _XMLOFF_XMLUCONV_HXX
+#include "xmluconv.hxx"
+#endif
using namespace ::rtl;
using namespace ::com::sun::star;
@@ -97,6 +100,7 @@ XMLBackgroundImageExport::~XMLBackgroundImageExport()
void XMLBackgroundImageExport::exportXML( const Any& rURL,
const Any *pPos,
const Any *pFilter,
+ const Any *pTransparency,
sal_uInt16 nPrefix,
const ::rtl::OUString& rLocalName )
{
@@ -185,6 +189,18 @@ void XMLBackgroundImageExport::exportXML( const Any& rURL,
GetExport().AddAttribute( XML_NAMESPACE_STYLE, XML_FILTER_NAME,
sFilter );
}
+
+ if( pTransparency )
+ {
+ sal_Int8 nTransparency;
+ if( (*pTransparency) >>= nTransparency )
+ {
+ OUStringBuffer aOut;
+ SvXMLUnitConverter::convertPercent( aOut, nTransparency );
+ GetExport().AddAttribute( XML_NAMESPACE_DRAW, XML_TRANSPARENCY,
+ aOut.makeStringAndClear() );
+ }
+ }
}
{