From e0881b2f8916530a18c637bb16d5cdf993f7b5d4 Mon Sep 17 00:00:00 2001 From: Artur Dorda Date: Tue, 26 Jun 2012 19:07:12 +0200 Subject: Added new class EnhancedShapeDumper handled in XShapeDumper Change-Id: Ie719eba2579998917cea030fad51f07b0bcacec4 --- .../inc/drawinglayer/EnhancedShapeDumper.hxx | 49 ++++++++++++++++++++++ drawinglayer/inc/drawinglayer/XShapeDumper.hxx | 7 +++- 2 files changed, 54 insertions(+), 2 deletions(-) create mode 100644 drawinglayer/inc/drawinglayer/EnhancedShapeDumper.hxx (limited to 'drawinglayer/inc') diff --git a/drawinglayer/inc/drawinglayer/EnhancedShapeDumper.hxx b/drawinglayer/inc/drawinglayer/EnhancedShapeDumper.hxx new file mode 100644 index 000000000000..71b0fde3600f --- /dev/null +++ b/drawinglayer/inc/drawinglayer/EnhancedShapeDumper.hxx @@ -0,0 +1,49 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * Version: MPL 1.1 / GPLv3+ / LGPLv3+ + * + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (the "License"); you may not use this file except in compliance with + * the License or as specified alternatively below. You may obtain a copy of + * the License at http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * Major Contributor(s): + * Copyright (C) 2012 Artur Dorda (initial developer) + * + * All Rights Reserved. + * + * For minor contributions see the git repository. + * + * Alternatively, the contents of this file may be used under the terms of + * either the GNU General Public License Version 3 or later (the "GPLv3+"), or + * the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"), + * in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable + * instead of those above. + */ + +#include +#include + +#ifndef EnhancedShapeDumper_hxx +#define EnhancedShapeDumper_hxx + +class DRAWINGLAYER_DLLPUBLIC EnhancedShapeDumper +{ +public: + EnhancedShapeDumper(xmlTextWriterPtr writer) + : + xmlWriter(writer) + { + + } + + +private: + xmlTextWriterPtr xmlWriter; +}; +#endif diff --git a/drawinglayer/inc/drawinglayer/XShapeDumper.hxx b/drawinglayer/inc/drawinglayer/XShapeDumper.hxx index f497e0a6b8de..544636e69d32 100644 --- a/drawinglayer/inc/drawinglayer/XShapeDumper.hxx +++ b/drawinglayer/inc/drawinglayer/XShapeDumper.hxx @@ -28,6 +28,8 @@ #include #include +#include + #include #include #include @@ -57,8 +59,8 @@ #include -#ifndef ChartViewDumper_hxx -#define ChartViewDumper_hxx +#ifndef XShapeDumper_hxx +#define XShapeDumper_hxx class DRAWINGLAYER_DLLPUBLIC XShapeDumper { @@ -193,6 +195,7 @@ private: void dumpShapeService(com::sun::star::uno::Reference< com::sun::star::beans::XPropertySet > xPropSet, xmlTextWriterPtr xmlWriter); void dumpPolyPolygonBezierDescriptorService(com::sun::star::uno::Reference< com::sun::star::beans::XPropertySet > xPropSet, xmlTextWriterPtr xmlWriter); void dumpCustomShapeService(com::sun::star::uno::Reference< com::sun::star::beans::XPropertySet > xPropSet, xmlTextWriterPtr xmlWriter); + void dumpEnhancedCustomShapeExtrusionService(com::sun::star::uno::Reference< com::sun::star::beans::XPropertySet > xPropSet, EnhancedShapeDumper enhancedDumper); }; #endif -- cgit v1.2.3