diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-06-30 08:13:11 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-07-02 08:48:10 +0200 |
commit | f54143088a867c59be144f1d4d7cd6d9fe1c18f5 (patch) | |
tree | e9bc8ff4e94f8fe95e62ed6f0ede84371f449f9d /svx/source/dialog/fntctrl.cxx | |
parent | 50c63e5c2f7962e8893e2d04b0e958209432f4c9 (diff) |
loplugin:unusedmethods
Change-Id: I92665f577bfe39497905063da517a05b8008c3cc
Reviewed-on: https://gerrit.libreoffice.org/56743
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/dialog/fntctrl.cxx')
-rw-r--r-- | svx/source/dialog/fntctrl.cxx | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/svx/source/dialog/fntctrl.cxx b/svx/source/dialog/fntctrl.cxx index 0168c02d7e0c..8dc5aabe8429 100644 --- a/svx/source/dialog/fntctrl.cxx +++ b/svx/source/dialog/fntctrl.cxx @@ -2033,54 +2033,4 @@ void FontPrevWindow::SetFromItemSet(const SfxItemSet &rSet, bool bPreviewBackgro Invalidate(); } -void FontPrevWindow::SetFont( const SfxItemSet& rSet, sal_uInt16 nSlot, SvxFont& rFont ) -{ - sal_uInt16 nWhich = rSet.GetPool()->GetWhich( nSlot ); - if( ISITEMSET ) - { - const SvxFontItem& rFontItem = static_cast<const SvxFontItem&>( rSet.Get(nWhich) ); - rFont.SetFamily( rFontItem.GetFamily() ); - rFont.SetFamilyName( rFontItem.GetFamilyName() ); - rFont.SetPitch( rFontItem.GetPitch() ); - rFont.SetCharSet( rFontItem.GetCharSet() ); - rFont.SetStyleName( rFontItem.GetStyleName() ); - } -} - -void FontPrevWindow::SetFontStyle( const SfxItemSet& rSet, sal_uInt16 nPosture, sal_uInt16 nWeight, SvxFont& rFont ) -{ - sal_uInt16 nWhich = rSet.GetPool()->GetWhich( nPosture ); - if( ISITEMSET ) - { - const SvxPostureItem& rItem = static_cast<const SvxPostureItem&>( rSet.Get( nWhich ) ); - rFont.SetItalic( rItem.GetValue() != ITALIC_NONE ? ITALIC_NORMAL : ITALIC_NONE ); - } - - nWhich = rSet.GetPool()->GetWhich( nWeight ); - if( ISITEMSET ) - { - const SvxWeightItem& rItem = static_cast<const SvxWeightItem&>( rSet.Get( nWhich ) ); - rFont.SetWeight( rItem.GetValue() != WEIGHT_NORMAL ? WEIGHT_BOLD : WEIGHT_NORMAL ); - } -} - -void FontPrevWindow::SetFontWidthScale( const SfxItemSet& rSet ) -{ - sal_uInt16 nWhich = rSet.GetPool()->GetWhich( SID_ATTR_CHAR_SCALEWIDTH ); - if( ISITEMSET ) - { - const SvxCharScaleWidthItem& rItem = static_cast<const SvxCharScaleWidthItem&>( rSet.Get( nWhich ) ); - - SetFontWidthScale( rItem.GetValue() ); - } -} - -void FontPrevWindow::SetFontEscapement(sal_uInt8 nProp, sal_uInt8 nEscProp, short nEsc) -{ - setFontEscapement(GetFont(), nProp, nEscProp, nEsc); - setFontEscapement(GetCJKFont(), nProp, nEscProp, nEsc); - setFontEscapement(GetCTLFont(), nProp, nEscProp, nEsc); - Invalidate(); -} - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |