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 | |
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')
-rw-r--r-- | svx/source/dialog/fntctrl.cxx | 50 | ||||
-rw-r--r-- | svx/source/dialog/frmdirlbox.cxx | 7 | ||||
-rw-r--r-- | svx/source/dialog/pagectrl.cxx | 15 | ||||
-rw-r--r-- | svx/source/dialog/pagenumberlistbox.cxx | 18 | ||||
-rw-r--r-- | svx/source/dialog/relfld.cxx | 9 | ||||
-rw-r--r-- | svx/source/tbxctrls/tbcontrl.cxx | 13 |
6 files changed, 0 insertions, 112 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: */ diff --git a/svx/source/dialog/frmdirlbox.cxx b/svx/source/dialog/frmdirlbox.cxx index 11e3d8bcf46e..035d5099e874 100644 --- a/svx/source/dialog/frmdirlbox.cxx +++ b/svx/source/dialog/frmdirlbox.cxx @@ -54,13 +54,6 @@ void FrameDirectionListBox::InsertEntryValue( const OUString& rString, SvxFrameD SetEntryData( nRealPos, lclEnumToVoid( eDirection ) ); } -void FrameDirectionListBox::RemoveEntryValue( SvxFrameDirection eDirection ) -{ - sal_Int32 nPos = GetEntryPos( lclEnumToVoid( eDirection ) ); - if( nPos != LISTBOX_ENTRY_NOTFOUND ) - RemoveEntry( nPos ); -} - void FrameDirectionListBox::SelectEntryValue( SvxFrameDirection eDirection ) { sal_Int32 nPos = GetEntryPos( lclEnumToVoid( eDirection ) ); diff --git a/svx/source/dialog/pagectrl.cxx b/svx/source/dialog/pagectrl.cxx index d3fc8044231f..003b0546287c 100644 --- a/svx/source/dialog/pagectrl.cxx +++ b/svx/source/dialog/pagectrl.cxx @@ -391,21 +391,6 @@ void SvxPageWindow::drawFillAttributes(vcl::RenderContext& rRenderContext, } -void SvxPageWindow::EnableFrameDirection(bool bEnable) -{ - bFrameDirection = bEnable; -} - -void SvxPageWindow::SetFrameDirection(SvxFrameDirection nDirection) -{ - nFrameDirection = nDirection; -} - -void SvxPageWindow::ResetBackground() -{ - bResetBackground = true; -} - Size SvxPageWindow::GetOptimalSize() const { return LogicToPixel(Size(75, 46), MapMode(MapUnit::MapAppFont)); diff --git a/svx/source/dialog/pagenumberlistbox.cxx b/svx/source/dialog/pagenumberlistbox.cxx index 904d28b16d04..f42b9c1ca84b 100644 --- a/svx/source/dialog/pagenumberlistbox.cxx +++ b/svx/source/dialog/pagenumberlistbox.cxx @@ -100,22 +100,4 @@ SvxPageNumberListBox::SvxPageNumberListBox(weld::ComboBoxText* pControl) } } -void SvxPageNumberListBox::SetSelection( sal_uInt16 nPos ) -{ - int nEntryCount = m_xControl->get_count(); - int nSelPos = -1; - - for (sal_Int32 i = 0; i < nEntryCount; ++i) - { - sal_uInt16 nTmp = static_cast<sal_uInt16>(m_xControl->get_id(i).toInt32()); - - if (nTmp == nPos) - { - nSelPos = i; - break; - } - } - m_xControl->set_active(nSelPos); -} - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/dialog/relfld.cxx b/svx/source/dialog/relfld.cxx index 2b7ad87c1fa9..659dde82529c 100644 --- a/svx/source/dialog/relfld.cxx +++ b/svx/source/dialog/relfld.cxx @@ -84,15 +84,6 @@ void SvxRelativeField::Modify() } -void SvxRelativeField::EnableRelativeMode( sal_uInt16 nMin, sal_uInt16 nMax ) -{ - bRelativeMode = true; - nRelMin = nMin; - nRelMax = nMax; - SetUnit( FUNIT_CM ); -} - - void SvxRelativeField::SetRelative( bool bNewRelative ) { Selection aSelection = GetSelection(); diff --git a/svx/source/tbxctrls/tbcontrl.cxx b/svx/source/tbxctrls/tbcontrl.cxx index 84a704ba8a75..3817aa6741f8 100644 --- a/svx/source/tbxctrls/tbcontrl.cxx +++ b/svx/source/tbxctrls/tbcontrl.cxx @@ -3802,19 +3802,6 @@ void ColorListBox::createColorWindow() m_xColorWindow->SelectEntry(m_aSelectedColor); } -void ColorListBox::SelectEntry(const NamedColor& rColor) -{ - if (rColor.second.trim().isEmpty()) - { - SelectEntry(rColor.first); - return; - } - ColorWindow* pColorWindow = getColorWindow(); - pColorWindow->SelectEntry(rColor); - m_aSelectedColor = pColorWindow->GetSelectEntryColor(); - ShowPreview(m_aSelectedColor); -} - void ColorListBox::SelectEntry(const Color& rColor) { ColorWindow* pColorWindow = getColorWindow(); |