diff options
author | Michael Stahl <mstahl@redhat.com> | 2012-08-20 12:31:16 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-08-20 12:42:46 +0200 |
commit | 08ab21f27f73ec9d6a8cd829a6ffbc6ceb9550e0 (patch) | |
tree | 9ba4b5a9d034fb408d66e15353cbcc47669f0414 /comphelper | |
parent | e607f5f651b14fa779a9800865afba2758286a4b (diff) |
SwXTextTable: add "TableBorder2" property
This new property is necessary because the old TableBorder cannot be
extended to contain the BorderLine2 structs without breaking
compatibility.
Change-Id: I5e22782256b29224225a9d74c818b2c47fee8526
Diffstat (limited to 'comphelper')
-rw-r--r-- | comphelper/inc/comphelper/TypeGeneration.hxx | 1 | ||||
-rw-r--r-- | comphelper/source/property/TypeGeneration.cxx | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/comphelper/inc/comphelper/TypeGeneration.hxx b/comphelper/inc/comphelper/TypeGeneration.hxx index c946916c29d3..8c99fcafbda7 100644 --- a/comphelper/inc/comphelper/TypeGeneration.hxx +++ b/comphelper/inc/comphelper/TypeGeneration.hxx @@ -67,6 +67,7 @@ namespace comphelper CPPUTYPE_PAGESTYLELAY, //getCppuType( (style::PageStyleLayout*)0 ) CPPUTYPE_VERTALIGN, //getCppuType( (style::VerticalAlignment*)0 ) CPPUTYPE_TABLEBORDER, //getCppuType( (table::TableBorder*)0 ) + CPPUTYPE_TABLEBORDER2, //getCppuType( (table::TableBorder*)0 ) CPPUTYPE_GRFCROP, //getCppuType( (text::GraphicCrop*)0 ) CPPUTYPE_SECTFILELNK, //getCppuType( (text::SectionFileLink*)0 ) CPPUTYPE_PAGENUMTYPE, //getCppuType( (const PageNumberType*)0 ) diff --git a/comphelper/source/property/TypeGeneration.cxx b/comphelper/source/property/TypeGeneration.cxx index 0273b0e14256..a6e8e172b05d 100644 --- a/comphelper/source/property/TypeGeneration.cxx +++ b/comphelper/source/property/TypeGeneration.cxx @@ -104,6 +104,7 @@ #include <com/sun/star/table/ShadowFormat.hpp> #include <com/sun/star/table/BorderLine.hpp> #include <com/sun/star/table/TableBorder.hpp> +#include <com/sun/star/table/TableBorder2.hpp> #include <com/sun/star/table/TableBorderDistances.hpp> #include <com/sun/star/container/XNameContainer.hpp> #include <com/sun/star/lang/Locale.hpp> @@ -174,6 +175,7 @@ namespace comphelper case CPPUTYPE_PAGESTYLELAY: pType = &::getCppuType( (style::PageStyleLayout*)0 ); break; case CPPUTYPE_VERTALIGN: pType = &::getCppuType( (style::VerticalAlignment*)0 ); break; case CPPUTYPE_TABLEBORDER: pType = &::getCppuType( (table::TableBorder*)0 ); break; + case CPPUTYPE_TABLEBORDER2: pType = &::getCppuType( (table::TableBorder2*)0 ); break; case CPPUTYPE_GRFCROP: pType = &::getCppuType( (text::GraphicCrop*)0 ); break; case CPPUTYPE_SECTFILELNK: pType = &::getCppuType( (text::SectionFileLink*)0 ); break; case CPPUTYPE_PAGENUMTYPE: pType = &::getCppuType( (text::PageNumberType*)0); break; |