summaryrefslogtreecommitdiff
path: root/xmloff/source/draw/ximpgrp.cxx
diff options
context:
space:
mode:
authorChristian Lippka <cl@openoffice.org>2000-11-23 17:30:39 +0000
committerChristian Lippka <cl@openoffice.org>2000-11-23 17:30:39 +0000
commit0a81c793064b537d29d819254ae7384b534407ac (patch)
tree3ff94f1ef5db240c4805c84f8753283b027ad82b /xmloff/source/draw/ximpgrp.cxx
parent604c2c86debef0ccefbcbbd387a2de3ae75b9615 (diff)
#80679# added support for shape sorting
Diffstat (limited to 'xmloff/source/draw/ximpgrp.cxx')
-rw-r--r--xmloff/source/draw/ximpgrp.cxx13
1 files changed, 8 insertions, 5 deletions
diff --git a/xmloff/source/draw/ximpgrp.cxx b/xmloff/source/draw/ximpgrp.cxx
index eeba5fd59364..2a7dbb1161a4 100644
--- a/xmloff/source/draw/ximpgrp.cxx
+++ b/xmloff/source/draw/ximpgrp.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: ximpgrp.cxx,v $
*
- * $Revision: 1.1.1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: hr $ $Date: 2000-09-18 17:07:03 $
+ * last change: $Author: cl $ $Date: 2000-11-23 18:25:49 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -79,10 +79,12 @@ TYPEINIT1( SdXMLGroupShapeContext, SvXMLImportContext );
SdXMLGroupShapeContext::SdXMLGroupShapeContext(
SvXMLImport& rImport,
USHORT nPrfx, const OUString& rLocalName,
+ const uno::Reference< xml::sax::XAttributeList>& xAttrList,
uno::Reference< drawing::XShapes >& rShapes)
-: SvXMLImportContext( rImport, nPrfx, rLocalName ),
- mxShapes(rShapes)
+: SdXMLShapeContext( rImport, nPrfx, rLocalName, xAttrList, rShapes ),
+ mxShapes( rShapes )
{
+ GetImport().GetShapeImport()->pushGroupForSorting( rShapes );
}
//////////////////////////////////////////////////////////////////////////////
@@ -99,7 +101,7 @@ SvXMLImportContext* SdXMLGroupShapeContext::CreateChildContext( USHORT nPrefix,
{
SvXMLImportContext* pContext = 0L;
- // call GroupChildContext function at common ShapeImport
+ // call GroupChildContext function at common ShapeImport
pContext = GetImport().GetShapeImport()->CreateGroupChildContext(
GetImport(), nPrefix, rLocalName, xAttrList, mxShapes);
@@ -115,6 +117,7 @@ SvXMLImportContext* SdXMLGroupShapeContext::CreateChildContext( USHORT nPrefix,
void SdXMLGroupShapeContext::EndElement()
{
+ GetImport().GetShapeImport()->popGroupAndSort();
}