summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-06-27 23:59:46 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-06-27 23:59:46 +0200
commita1830e46e8d2f4011329f7cdfe50b648beef50aa (patch)
tree2bad270573e107d4597b90e87202c776c3cb8fc7
parent63fc6359cac8640b073d823bed06df0a02890797 (diff)
support alignment in dxf elements
Change-Id: I36128dd9d8b36e6edaa03366514d55dcb3f88b4a
-rw-r--r--sc/source/filter/inc/stylesbuffer.hxx1
-rw-r--r--sc/source/filter/oox/stylesbuffer.cxx6
-rw-r--r--sc/source/filter/oox/stylesfragment.cxx2
3 files changed, 8 insertions, 1 deletions
diff --git a/sc/source/filter/inc/stylesbuffer.hxx b/sc/source/filter/inc/stylesbuffer.hxx
index b2e11864f6b8..0f4c3ae77a59 100644
--- a/sc/source/filter/inc/stylesbuffer.hxx
+++ b/sc/source/filter/inc/stylesbuffer.hxx
@@ -701,6 +701,7 @@ public:
/** Inserts a new number format code. */
void importNumFmt( const AttributeList& rAttribs );
+ void importAlignment(const AttributeList& rAttribs);
/** Imports the DXF record from the passed stream. */
void importDxf( SequenceInputStream& rStrm );
diff --git a/sc/source/filter/oox/stylesbuffer.cxx b/sc/source/filter/oox/stylesbuffer.cxx
index adead6da18ee..d2523f43a4aa 100644
--- a/sc/source/filter/oox/stylesbuffer.cxx
+++ b/sc/source/filter/oox/stylesbuffer.cxx
@@ -2353,6 +2353,12 @@ void Dxf::importNumFmt( const AttributeList& rAttribs )
mxNumFmt = getStyles().createNumFmt( nNumFmtId, aFmtCode );
}
+void Dxf::importAlignment(const AttributeList& rAttribs)
+{
+ mxAlignment.reset(new Alignment(*this));
+ mxAlignment->importAlignment(rAttribs);
+}
+
void Dxf::importDxf( SequenceInputStream& rStrm )
{
sal_Int32 nNumFmtId = -1;
diff --git a/sc/source/filter/oox/stylesfragment.cxx b/sc/source/filter/oox/stylesfragment.cxx
index 10876fc98ab4..99d87d994f48 100644
--- a/sc/source/filter/oox/stylesfragment.cxx
+++ b/sc/source/filter/oox/stylesfragment.cxx
@@ -147,8 +147,8 @@ ContextHandlerRef DxfContext::onCreateContext( sal_Int32 nElement, const Attribu
case XLS_TOKEN( fill ): return new FillContext( *this, mxDxf->createFill() );
case XLS_TOKEN( numFmt ): mxDxf->importNumFmt( rAttribs ); break;
-#if 0
case XLS_TOKEN( alignment ): mxDxf->importAlignment( rAttribs ); break;
+#if 0
case XLS_TOKEN( protection ): mxDxf->importProtection( rAttribs ); break;
#endif
}