Kaydet (Commit) 6974cc9a authored tarafından Markus Mohrhard's avatar Markus Mohrhard

first part for new chart test concept

Idea:
- write the layout data to a xml file

still missing:
- xml export part
- some more properties need to be exported
- some more structure information need to be dumped
- find a way to start dumping after importing
üst 9e6b086c
......@@ -42,17 +42,41 @@
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <com/sun/star/graphic/XGraphic.hpp>
#define ENABLE_DUMP 0
//.............................................................................
namespace chart
{
//.............................................................................
class DumpHelper
{
private:
//XmlTextWriterPtr pWriter;
public:
//void writeStripe(const Stripe& rStripe);
void writeElement(const char*);
void writeAttribute(const char* pAttrName, const char* pAttrValue);
void writeAttribute(const char* pAttrName, const com::sun::star::drawing::Position3D& rPosition);
void writeAttribute(const char* pAttrName, const rtl::OUString& rName);
void writeAttribute(const char* pAttrName, const sal_Int32);
void writeAttribute(const char* pAttrName, const com::sun::star::drawing::Direction3D& rPosition);
void writeAttribute(const char* pAttrName, const com::sun::star::drawing::PointSequenceSequence& rPoints);
void endElement();
};
class Stripe;
class ShapeFactory
{
public:
ShapeFactory(::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory> xFactory)
{m_xShapeFactory = xFactory;}
ShapeFactory(::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory> xFactory):
m_xShapeFactory(xFactory),
mbDump(ENABLE_DUMP)
{
}
::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShapes >
createGroup2D(
......@@ -247,6 +271,9 @@ private:
//member:
::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory>
m_xShapeFactory;
bool mbDump;
DumpHelper maDumpHerlper;
};
//.............................................................................
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment