summaryrefslogtreecommitdiff
path: root/svx/source/init
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2007-02-12 13:49:04 +0000
committerKurt Zenker <kz@openoffice.org>2007-02-12 13:49:04 +0000
commita04a1143900f30eb6529e7a08e43885ba25a02b2 (patch)
tree3678013a6c1b11b5d35503b81d34a7566f382faf /svx/source/init
parentcd19a60f9ea815d7da5166c510b0ba9623ec9e8c (diff)
INTEGRATION: CWS vclshowstop10_SRC680 (1.7.196); FILE MERGED
2007/01/30 17:42:36 pl 1.7.196.1: #i73923# need GetSpecialCharsForEdit as C symbol
Diffstat (limited to 'svx/source/init')
-rw-r--r--svx/source/init/init.cxx26
1 files changed, 16 insertions, 10 deletions
diff --git a/svx/source/init/init.cxx b/svx/source/init/init.cxx
index ceb743b84675..7d907746b050 100644
--- a/svx/source/init/init.cxx
+++ b/svx/source/init/init.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: init.cxx,v $
*
- * $Revision: 1.7 $
+ * $Revision: 1.8 $
*
- * last change: $Author: obo $ $Date: 2006-10-12 12:51:57 $
+ * last change: $Author: kz $ $Date: 2007-02-12 14:49:04 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -46,20 +46,26 @@
#include <vcl/msgbox.hxx>
// ------------------------------------------------------------------------
-//Sonderzeichen einfuegen fuer Edits
-
-SVX_DLLPUBLIC String GetSpecialCharsForEdit(Window* pParent, const Font& rFont)
+// hook to call special character dialog for edits
+// caution: needs C-Linkage since dynamically loaded via symbol name
+extern "C"
+{
+SVX_DLLPUBLIC bool GetSpecialCharsForEdit(Window* i_pParent, const Font& i_rFont, String& o_rResult)
{
- String sRet;
+ bool bRet = false;
SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create();
if(pFact)
{
- AbstractSvxCharacterMap* aDlg = pFact->CreateSvxCharacterMap( pParent, ResId(RID_SVXDLG_CHARMAP) );
+ AbstractSvxCharacterMap* aDlg = pFact->CreateSvxCharacterMap( i_pParent, ResId(RID_SVXDLG_CHARMAP) );
aDlg->DisableFontSelection();
- aDlg->SetCharFont(rFont);
+ aDlg->SetCharFont(i_rFont);
if ( aDlg->Execute() == RET_OK )
- sRet = aDlg->GetChar();
+ {
+ o_rResult = aDlg->GetChar();
+ bRet = true;
+ }
delete aDlg;
}
- return sRet;
+ return bRet;
+}
}