summaryrefslogtreecommitdiff
path: root/chart2/source/controller/itemsetwrapper
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2008-02-18 14:55:34 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2008-02-18 14:55:34 +0000
commit5f6aa837701b7b02727ab7fb579e8ea29030e49c (patch)
tree425a2dc938d23fbe48e7ffcd4c8c7d20af7015ac /chart2/source/controller/itemsetwrapper
parent7de4b96e490f42216fa7ac425aa3098eea2485ab (diff)
INTEGRATION: CWS chart19 (1.12.12); FILE MERGED
2008/01/11 15:58:42 bm 1.12.12.1: #i44768# make it easier to add and modify trendlines
Diffstat (limited to 'chart2/source/controller/itemsetwrapper')
-rw-r--r--chart2/source/controller/itemsetwrapper/ItemConverter.cxx24
1 files changed, 16 insertions, 8 deletions
diff --git a/chart2/source/controller/itemsetwrapper/ItemConverter.cxx b/chart2/source/controller/itemsetwrapper/ItemConverter.cxx
index 7e46b52d2c71..70a2eae374fa 100644
--- a/chart2/source/controller/itemsetwrapper/ItemConverter.cxx
+++ b/chart2/source/controller/itemsetwrapper/ItemConverter.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: ItemConverter.cxx,v $
*
- * $Revision: 1.12 $
+ * $Revision: 1.13 $
*
- * last change: $Author: vg $ $Date: 2007-10-22 16:51:22 $
+ * last change: $Author: rt $ $Date: 2008-02-18 15:55:34 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -66,8 +66,21 @@ ItemConverter::ItemConverter(
m_rItemPool( rItemPool ),
m_bIsValid( true )
{
- if( m_xPropertySet.is())
+ resetPropertySet( m_xPropertySet );
+}
+
+ItemConverter::~ItemConverter()
+{
+ stopAllComponentListening();
+}
+
+void ItemConverter::resetPropertySet(
+ const uno::Reference< beans::XPropertySet > & xPropSet )
+{
+ if( xPropSet.is())
{
+ stopAllComponentListening();
+ m_xPropertySet = xPropSet;
m_xPropertySetInfo = m_xPropertySet->getPropertySetInfo();
uno::Reference< lang::XComponent > xComp( m_xPropertySet, uno::UNO_QUERY );
@@ -79,11 +92,6 @@ ItemConverter::ItemConverter(
}
}
-ItemConverter::~ItemConverter()
-{
- stopAllComponentListening();
-}
-
SfxItemPool & ItemConverter::GetItemPool() const
{
return m_rItemPool;