From 15f4c47f5bd9537979f970ad56b4a75f1a3fc9a3 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 22 Apr 2013 12:47:52 +0100 Subject: restore FontNameBox from ResId ctor removed by ecda52f6b3919950870f3ddb195d34d3baf71168 but we'll need it again soon Change-Id: I3a038c162beba7147ac7abc8bb4085b41140bf5c --- svtools/inc/svtools/ctrlbox.hxx | 1 + svtools/source/control/ctrlbox.cxx | 10 ++++++++++ 2 files changed, 11 insertions(+) (limited to 'svtools') diff --git a/svtools/inc/svtools/ctrlbox.hxx b/svtools/inc/svtools/ctrlbox.hxx index 81f0cff47255..0a8e566413f2 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 a51f14eb5d29..684a10d6722d 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); -- cgit