summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-10-20 13:36:45 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-10-21 11:27:38 +0100
commitc57ba94721a152db405716753a15c870401c3a63 (patch)
tree58e260fe30ff9b866a3179ec9235760f671ce1d4 /svx
parente3ef9bebf69479ead10a10a9a25d866321970edb (diff)
drop confusing and unused single font setters
Diffstat (limited to 'svx')
-rw-r--r--svx/inc/svx/fntctrl.hxx3
-rw-r--r--svx/source/dialog/fntctrl.cxx30
2 files changed, 1 insertions, 32 deletions
diff --git a/svx/inc/svx/fntctrl.hxx b/svx/inc/svx/fntctrl.hxx
index 7adc049fcc54..2d5083337121 100644
--- a/svx/inc/svx/fntctrl.hxx
+++ b/svx/inc/svx/fntctrl.hxx
@@ -68,10 +68,7 @@ public:
// for reasons of efficiency not const
SvxFont& GetFont();
const SvxFont& GetFont() const;
- void SetFont( const SvxFont& rFont );
void SetFont( const SvxFont& rNormalFont, const SvxFont& rCJKFont, const SvxFont& rCTLFont );
- void SetCJKFont( const SvxFont& rFont );
- void SetCTLFont( const SvxFont& rFont );
SvxFont& GetCJKFont();
SvxFont& GetCTLFont();
void SetColor( const Color& rColor );
diff --git a/svx/source/dialog/fntctrl.cxx b/svx/source/dialog/fntctrl.cxx
index 2f5dcf08f9ec..4e8db6956211 100644
--- a/svx/source/dialog/fntctrl.cxx
+++ b/svx/source/dialog/fntctrl.cxx
@@ -599,16 +599,6 @@ void SvxFontPrevWindow::SetFontNameAsPreviewText()
// -----------------------------------------------------------------------
-void SvxFontPrevWindow::SetFont( const SvxFont& rOutFont )
-{
- setFont( rOutFont, pImpl->aFont );
-
- pImpl->Invalidate100PercentFontWidth();
- Invalidate();
-}
-
-// -----------------------------------------------------------------------
-
void SvxFontPrevWindow::SetFont( const SvxFont& rNormalOutFont, const SvxFont& rCJKOutFont, const SvxFont& rCTLFont )
{
setFont( rNormalOutFont, pImpl->aFont );
@@ -622,24 +612,6 @@ void SvxFontPrevWindow::SetFont( const SvxFont& rNormalOutFont, const SvxFont& r
// -----------------------------------------------------------------------
-void SvxFontPrevWindow::SetCJKFont( const SvxFont &rCJKOutFont )
-{
- setFont( rCJKOutFont, pImpl->aCJKFont );
-
- pImpl->Invalidate100PercentFontWidth();
- Invalidate();
-}
-// -----------------------------------------------------------------------------
-void SvxFontPrevWindow::SetCTLFont( const SvxFont &rCTLOutFont )
-{
- setFont( rCTLOutFont, pImpl->aCTLFont );
-
- pImpl->Invalidate100PercentFontWidth();
- Invalidate();
-}
-
-// -----------------------------------------------------------------------
-
void SvxFontPrevWindow::SetColor(const Color &rColor)
{
delete pImpl->pColor;
@@ -1457,7 +1429,7 @@ void SvxFontPrevWindow::SetFont( const SfxItemSet& rSet, sal_uInt16 nSlot, SvxFo
sal_uInt16 nWhich = rSet.GetPool()->GetWhich( nSlot );
if( ISITEMSET )
{
- const SvxFontItem& rFontItem = ( SvxFontItem& ) rSet.Get( nWhich );
+ const SvxFontItem& rFontItem = (const SvxFontItem&)rSet.Get(nWhich);
rFont.SetFamily( rFontItem.GetFamily() );
rFont.SetName( rFontItem.GetFamilyName() );
rFont.SetPitch( rFontItem.GetPitch() );