summaryrefslogtreecommitdiffstats
path: root/chart2/source/controller/main/ChartController_TextEdit.cxx
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2007-09-18 13:56:36 +0000
committerVladimir Glazounov <vg@openoffice.org>2007-09-18 13:56:36 +0000
commit8aa2117bf132eeafd4fe07b3b189226f8c340962 (patch)
tree15f48375c8321b9cf0af749ae7edd3af721ec86a /chart2/source/controller/main/ChartController_TextEdit.cxx
parentINTEGRATION: CWS chart11 (1.23.2); FILE MERGED (diff)
downloadcore-8aa2117bf132eeafd4fe07b3b189226f8c340962.tar.gz
core-8aa2117bf132eeafd4fe07b3b189226f8c340962.zip
INTEGRATION: CWS chart11 (1.12.2); FILE MERGED
2007/08/10 16:37:22 iha 1.12.2.1: #i77362 additional shapes do not trigger an update - fix text edit mode problems
Diffstat (limited to 'chart2/source/controller/main/ChartController_TextEdit.cxx')
-rw-r--r--chart2/source/controller/main/ChartController_TextEdit.cxx16
1 files changed, 14 insertions, 2 deletions
diff --git a/chart2/source/controller/main/ChartController_TextEdit.cxx b/chart2/source/controller/main/ChartController_TextEdit.cxx
index 4720922250aa..d10fd33eca5d 100644
--- a/chart2/source/controller/main/ChartController_TextEdit.cxx
+++ b/chart2/source/controller/main/ChartController_TextEdit.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: ChartController_TextEdit.cxx,v $
*
- * $Revision: 1.12 $
+ * $Revision: 1.13 $
*
- * last change: $Author: rt $ $Date: 2007-07-25 08:43:49 $
+ * last change: $Author: vg $ $Date: 2007-09-18 14:56:36 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -110,6 +110,12 @@ void ChartController::StartTextEdit()
//pOutliner->SetStyleSheetPool((SfxStyleSheetPool*)pStyleSheetPool);
//pOutliner->SetDefaultLanguage( eLang );
//pOutliner->SetHyphenator( xHyphenator );
+
+ //#i77362 change notification for changes on additional shapes are missing
+ uno::Reference< beans::XPropertySet > xChartViewProps( m_xChartView, uno::UNO_QUERY );
+ if( xChartViewProps.is() )
+ xChartViewProps->setPropertyValue( C2U("SdrViewIsInEditMode"), uno::makeAny(sal_True) );
+
sal_Bool bEdit = m_pDrawViewWrapper->SdrBeginTextEdit( pTextObj
, m_pDrawViewWrapper->GetPageView()
, m_pChartWindow
@@ -138,6 +144,12 @@ void ChartController::StartTextEdit()
bool ChartController::EndTextEdit()
{
m_pDrawViewWrapper->SdrEndTextEdit();
+
+ //#i77362 change notification for changes on additional shapes are missing
+ uno::Reference< beans::XPropertySet > xChartViewProps( m_xChartView, uno::UNO_QUERY );
+ if( xChartViewProps.is() )
+ xChartViewProps->setPropertyValue( C2U("SdrViewIsInEditMode"), uno::makeAny(sal_False) );
+
SdrObject* pTextObject = m_pDrawViewWrapper->getTextEditObject();
if(!pTextObject)
return false;