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
This commit is contained in:
Kurt Zenker 2007-02-12 13:49:04 +00:00
parent cd19a60f9e
commit a04a114390

View file

@ -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"
{
String sRet;
SVX_DLLPUBLIC bool GetSpecialCharsForEdit(Window* i_pParent, const Font& i_rFont, String& o_rResult)
{
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;
}
}