[Libreoffice-commits] core.git: svtools/inc svtools/source
Caolán McNamara
caolanm at redhat.com
Mon Apr 22 04:52:18 PDT 2013
svtools/inc/svtools/ctrlbox.hxx | 1 +
svtools/source/control/ctrlbox.cxx | 10 ++++++++++
2 files changed, 11 insertions(+)
New commits:
commit 15f4c47f5bd9537979f970ad56b4a75f1a3fc9a3
Author: Caolán McNamara <caolanm at redhat.com>
Date: Mon Apr 22 12:47:52 2013 +0100
restore FontNameBox from ResId ctor
removed by ecda52f6b3919950870f3ddb195d34d3baf71168
but we'll need it again soon
Change-Id: I3a038c162beba7147ac7abc8bb4085b41140bf5c
diff --git a/svtools/inc/svtools/ctrlbox.hxx b/svtools/inc/svtools/ctrlbox.hxx
index 81f0cff..0a8e566 100644
--- a/svtools/inc/svtools/ctrlbox.hxx
+++ b/svtools/inc/svtools/ctrlbox.hxx
@@ -435,6 +435,7 @@ protected:
public:
FontNameBox( Window* pParent,
WinBits nWinStyle = WB_SORT );
+ FontNameBox( Window* pParent, const ResId& rResId );
virtual ~FontNameBox();
virtual void UserDraw( const UserDrawEvent& rUDEvt );
diff --git a/svtools/source/control/ctrlbox.cxx b/svtools/source/control/ctrlbox.cxx
index a51f14e..684a10d 100644
--- a/svtools/source/control/ctrlbox.cxx
+++ b/svtools/source/control/ctrlbox.cxx
@@ -1048,6 +1048,16 @@ FontNameBox::FontNameBox( Window* pParent, WinBits nWinStyle ) :
InitFontMRUEntriesFile();
}
+// -------------------------------------------------------------------
+
+FontNameBox::FontNameBox( Window* pParent, const ResId& rResId ) :
+ ComboBox( pParent, rResId )
+{
+ mpFontList = NULL;
+ mbWYSIWYG = sal_False;
+ InitFontMRUEntriesFile();
+}
+
extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeFontNameBox(Window *pParent, VclBuilder::stringmap &rMap)
{
bool bDropdown = extractDropdown(rMap);
More information about the Libreoffice-commits
mailing list