summaryrefslogtreecommitdiff
path: root/include/oox
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2015-04-21 03:25:03 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2015-04-21 06:44:32 +0200
commit1478d2c37e57db1ee869f8ca5573b7dc7c7d6a51 (patch)
tree354afca25402041c1477dc1c89941f135a85d67a /include/oox
parent0791b8f1d35f2795ff87e21d04395b3ec8bd831d (diff)
fix TypeGroup MSO 2007 vs OOXML default values
Change-Id: I0d01e5b8d5f284ee3049debaf9fba0012dae005d
Diffstat (limited to 'include/oox')
-rw-r--r--include/oox/drawingml/chart/modelbase.hxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/oox/drawingml/chart/modelbase.hxx b/include/oox/drawingml/chart/modelbase.hxx
index 6819e512449a..0d01fc4d19b1 100644
--- a/include/oox/drawingml/chart/modelbase.hxx
+++ b/include/oox/drawingml/chart/modelbase.hxx
@@ -43,6 +43,8 @@ public:
ModelType& create() { this->reset( new ModelType ); return **this; }
template< typename Param1Type >
ModelType& create( const Param1Type& rParam1 ) { this->reset( new ModelType( rParam1 ) ); return **this; }
+ template< typename Param1Type, typename Param2Type >
+ ModelType& create( const Param1Type& rParam1, const Param2Type& rParam2 ) { this->reset( new ModelType( rParam1, rParam2 ) ); return **this; }
ModelType& getOrCreate() { if( !*this ) this->reset( new ModelType ); return **this; }
template< typename Param1Type >
@@ -62,6 +64,8 @@ public:
ModelType& create() { return append( new ModelType ); }
template< typename Param1Type >
ModelType& create( const Param1Type& rParam1 ) { return append( new ModelType( rParam1 ) ); }
+ template< typename Param1Type, typename Param2Type >
+ ModelType& create( const Param1Type& rParam1, const Param2Type& rParam2 ) { return append( new ModelType( rParam1, rParam2 ) ); }
private:
ModelType& append( ModelType* pModel ) { this->push_back( value_type( pModel ) ); return *pModel; }