summaryrefslogtreecommitdiffstats
path: root/chart2/source/controller/main/ChartController_TextEdit.cxx
diff options
context:
space:
mode:
authorBjörn Milcke <bm@openoffice.org>2004-02-10 09:21:12 +0000
committerBjörn Milcke <bm@openoffice.org>2004-02-10 09:21:12 +0000
commit67d81fb06d54cd25b13603cfa5dd4629c1c09581 (patch)
tree86b156a7574200aca3bab40e7340b37e504f5fe8 /chart2/source/controller/main/ChartController_TextEdit.cxx
parent#100000#: remove ofa.ilb from dependencies (diff)
downloadcore-67d81fb06d54cd25b13603cfa5dd4629c1c09581.tar.gz
core-67d81fb06d54cd25b13603cfa5dd4629c1c09581.zip
necessary changes due to dialog restructuring
(see CWS SRC680/dialogdiet)
Diffstat (limited to 'chart2/source/controller/main/ChartController_TextEdit.cxx')
-rw-r--r--chart2/source/controller/main/ChartController_TextEdit.cxx27
1 files changed, 20 insertions, 7 deletions
diff --git a/chart2/source/controller/main/ChartController_TextEdit.cxx b/chart2/source/controller/main/ChartController_TextEdit.cxx
index fdc989e0c417..c1e32c539e75 100644
--- a/chart2/source/controller/main/ChartController_TextEdit.cxx
+++ b/chart2/source/controller/main/ChartController_TextEdit.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: ChartController_TextEdit.cxx,v $
*
- * $Revision: 1.5 $
+ * $Revision: 1.6 $
*
- * last change: $Author: bm $ $Date: 2004-01-26 09:12:08 $
+ * last change: $Author: bm $ $Date: 2004-02-10 10:21:12 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -81,6 +81,13 @@
#include <svx/svdoutl.hxx>
#endif
+#ifndef _SVX_DIALOG_HXX
+#include <svx/svxdlg.hxx>
+#endif
+#ifndef _SVX_DIALOGS_HRC
+#include <svx/dialogs.hrc>
+#endif
+
#ifndef _COM_SUN_STAR_BEANS_XPROPERTYSET_HPP_
#include <com/sun/star/beans/XPropertySet.hpp>
#endif
@@ -181,14 +188,18 @@ bool ChartController::EndTextEdit()
void SAL_CALL ChartController::executeDispatch_InsertSpecialCharacter()
{
- SvxCharacterMap aDlg( NULL, FALSE );
+ SvxAbstractDialogFactory * pFact = SvxAbstractDialogFactory::Create();
+ DBG_ASSERT( pFact, "No dialog factory" );
+ AbstractSvxCharacterMap * pDlg = pFact->CreateSvxCharacterMap( NULL, ResId( RID_SVXDLG_CHARMAP ), FALSE );
+ DBG_ASSERT( pDlg, "Couldn't create SvxCharacterMap dialog" );
+
//set fixed current font
- aDlg.SetFont( m_pDrawViewWrapper->getOutliner()->GetRefDevice()->GetFont() );
- aDlg.DisableFontSelection(); //maybe not necessary in future
+ pDlg->SetFont( m_pDrawViewWrapper->getOutliner()->GetRefDevice()->GetFont() );
+ pDlg->DisableFontSelection(); //maybe not necessary in future
- if( aDlg.Execute() == RET_OK )
+ if( pDlg->Execute() == RET_OK )
{
- String aString( aDlg.GetCharacters() );
+ String aString( pDlg->GetCharacters() );
OutlinerView* pOutlinerView = m_pDrawViewWrapper->GetTextEditOutlinerView();
SdrOutliner* pOutliner = m_pDrawViewWrapper->getOutliner();
@@ -221,6 +232,8 @@ void SAL_CALL ChartController::executeDispatch_InsertSpecialCharacter()
pOutliner->SetUpdateMode(TRUE);
pOutlinerView->ShowCursor();
}
+
+ delete pDlg;
}
//.............................................................................