diff options
author | Armin Le Grand <alg@apache.org> | 2014-03-19 16:17:02 +0000 |
---|---|---|
committer | Armin Le Grand <alg@apache.org> | 2014-03-19 16:17:02 +0000 |
commit | b635b4fa4e42053d30ab639643d2236a20243f62 (patch) | |
tree | 657b08929ada71b91fdac54482605c67a7d14c74 /comphelper | |
parent | 4e04ad3623f2ab4693dcd50a9934fc836e190a6f (diff) |
Merge back branch alg_writerframes to trunk
Notes
Notes:
merged as: 6e61ecd09679a66060f932835622821d39e92f01
Diffstat (limited to 'comphelper')
-rw-r--r-- | comphelper/inc/comphelper/TypeGeneration.hxx | 7 | ||||
-rw-r--r-- | comphelper/source/property/TypeGeneration.cxx | 15 |
2 files changed, 22 insertions, 0 deletions
diff --git a/comphelper/inc/comphelper/TypeGeneration.hxx b/comphelper/inc/comphelper/TypeGeneration.hxx index 981ef75d7e93..78a48683bcd7 100644 --- a/comphelper/inc/comphelper/TypeGeneration.hxx +++ b/comphelper/inc/comphelper/TypeGeneration.hxx @@ -113,6 +113,13 @@ namespace comphelper CPPUTYPE_TABLEBORDERDISTANCES, //getCppuType( (table::TableBorderDistances*)0 ) CPPUTPYE_REFEMBEDDEDOBJECT, // XEmbeddedObject::static_type + //UUUU add types needed for fill style definitions in SW + CPPUTYPE_RECTANGLEPOINT, //getCppuType((drawing::RectanglePoint*)0) + CPPUTYPE_BITMAPMODE, // getCppuType((drawing::BitmapMode*)0) + CPPUTYPE_GRADIENT, // getCppuType((awt::Gradient*)0) + CPPUTYPE_HATCH, // getCppuType((drawing::Hatch*)0) + CPPUTYPE_FILLSTYLE, // getCppuType((drawing::FillStyle*)0) + CPPUTYPE_END }; COMPHELPER_DLLPUBLIC void GenerateCppuType ( diff --git a/comphelper/source/property/TypeGeneration.cxx b/comphelper/source/property/TypeGeneration.cxx index bacf2bd1a118..1b981a6687a0 100644 --- a/comphelper/source/property/TypeGeneration.cxx +++ b/comphelper/source/property/TypeGeneration.cxx @@ -131,6 +131,13 @@ #include <com/sun/star/graphic/XGraphic.hpp> #include <com/sun/star/embed/XEmbeddedObject.hpp> +//UUUU add types needed for fill style definitions in SW +#include <com/sun/star/drawing/RectanglePoint.hpp> +#include <com/sun/star/drawing/BitmapMode.hpp> +#include <com/sun/star/awt/Gradient.hpp> +#include <com/sun/star/drawing/Hatch.hpp> +#include <com/sun/star/drawing/FillStyle.hpp> + using ::rtl::OUString; using namespace ::com::sun::star; using namespace ::com::sun::star::container; @@ -228,6 +235,14 @@ namespace comphelper case CPPUTYPE_REFXGRAPHIC: pType = &::getCppuType( (Reference< graphic::XGraphic >*)0); break; case CPPUTYPE_TABLEBORDERDISTANCES: pType = &::getCppuType( (table::TableBorderDistances*)0 ); break; case CPPUTPYE_REFEMBEDDEDOBJECT: pType = &embed::XEmbeddedObject::static_type(); break; + + //UUUU add types needed for fill style definitions in SW + case CPPUTYPE_RECTANGLEPOINT: pType = &getCppuType((drawing::RectanglePoint*)0); break; + case CPPUTYPE_BITMAPMODE: pType = &getCppuType((drawing::BitmapMode*)0); break; + case CPPUTYPE_GRADIENT: pType = &getCppuType((awt::Gradient*)0); break; + case CPPUTYPE_HATCH: pType = &getCppuType((drawing::Hatch*)0); break; + case CPPUTYPE_FILLSTYLE: pType = &getCppuType((drawing::FillStyle*)0); break; + default: OSL_ASSERT( "Unknown CPPU type" ); } |