summaryrefslogtreecommitdiffstats
path: root/svx/source/dialog
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-11-08 09:19:23 +0000
committerCaolán McNamara <caolanm@redhat.com>2011-11-08 10:01:43 +0000
commit69a8f89cb90260b2333299451f29ffcdea39d059 (patch)
tree4f7a38a625c2b32e2a26c395be4137513d9e2256 /svx/source/dialog
parentcallcatcher: some unused methods (diff)
downloadcore-69a8f89cb90260b2333299451f29ffcdea39d059.tar.gz
core-69a8f89cb90260b2333299451f29ffcdea39d059.zip
refactor SetTwoLines a little
Diffstat (limited to 'svx/source/dialog')
-rw-r--r--svx/source/dialog/fntctrl.cxx12
1 files changed, 11 insertions, 1 deletions
diff --git a/svx/source/dialog/fntctrl.cxx b/svx/source/dialog/fntctrl.cxx
index 4c795fcd8b8f..33971f81cf3d 100644
--- a/svx/source/dialog/fntctrl.cxx
+++ b/svx/source/dialog/fntctrl.cxx
@@ -760,7 +760,7 @@ void SvxFontPrevWindow::Paint( const Rectangle& )
long nStdAscent = pImpl->nAscent;
nY += nStdAscent;
- if(pImpl->bTwoLines)
+ if (IsTwoLines())
{
SvxFont aSmallFont( rFont );
Size aOldSize = pImpl->aCJKFont.GetSize();
@@ -838,6 +838,16 @@ void SvxFontPrevWindow::Paint( const Rectangle& )
}
}
+sal_Bool SvxFontPrevWindow::IsTwoLines() const
+{
+ return pImpl->bTwoLines;
+}
+
+void SvxFontPrevWindow::SetTwoLines(sal_Bool bSet)
+{
+ pImpl->bTwoLines = bSet;
+}
+
void SvxFontPrevWindow::SetNoLines(sal_Bool bSet)
{
pImpl->bNoLines = bSet;