summaryrefslogtreecommitdiff
path: root/svx/inc
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@novell.com>2011-06-10 15:33:22 +0100
committerMichael Meeks <michael.meeks@novell.com>2011-06-10 15:44:13 +0100
commit105350c622575c2cbf978feef983324aa9b19ff4 (patch)
tree67b2e5064671a31460e70735c28594f19ec73593 /svx/inc
parent0284352c621ef7bad07a8a947ff8f83c55f831fa (diff)
move font itemset handling down into the fontpreview widget
Diffstat (limited to 'svx/inc')
-rw-r--r--svx/inc/svx/fntctrl.hxx12
1 files changed, 10 insertions, 2 deletions
diff --git a/svx/inc/svx/fntctrl.hxx b/svx/inc/svx/fntctrl.hxx
index 215aab5e0a9d..52224e46bb6e 100644
--- a/svx/inc/svx/fntctrl.hxx
+++ b/svx/inc/svx/fntctrl.hxx
@@ -38,6 +38,7 @@
// forward ---------------------------------------------------------------
+class SfxItemSet;
class FontPrevWin_Impl;
// class SvxFontPrevWindow -----------------------------------------------
@@ -48,9 +49,12 @@ class SVX_DLLPUBLIC SvxFontPrevWindow : public Window
private:
FontPrevWin_Impl* pImpl;
- SVX_DLLPRIVATE void InitSettings( sal_Bool bForeground, sal_Bool bBackground );
+ SVX_DLLPRIVATE void InitSettings( sal_Bool bForeground, sal_Bool bBackground );
+ SVX_DLLPRIVATE void Init ();
+ SVX_DLLPRIVATE void SetFontSize( const SfxItemSet& rSet, sal_uInt16 nSlot, SvxFont& rFont );
public:
+ SvxFontPrevWindow( Window* pParent );
SvxFontPrevWindow( Window* pParent, const ResId& rId );
virtual ~SvxFontPrevWindow();
@@ -72,8 +76,9 @@ public:
void UseResourceText( sal_Bool bUse = sal_True );
void Paint( const Rectangle& );
- sal_Bool IsTwoLines() const;
+ sal_Bool IsTwoLines() const;
void SetTwoLines(sal_Bool bSet);
+ void SetNoLines(sal_Bool bSet);
void SetBrackets(sal_Unicode cStart, sal_Unicode cEnd);
@@ -83,6 +88,9 @@ public:
void SetPreviewText( const ::rtl::OUString& rString );
void SetFontNameAsPreviewText();
+
+ void SetFromItemSet( const SfxItemSet &rSet,
+ bool bPreviewBackgroundToCharacter = false );
};
#endif // #ifndef _SVX_FNTCTRL_HXX