summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-10-09 11:12:52 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-10-09 14:16:36 +0200
commit664db0d945fbb23e115eeea8377e3a4e88541da1 (patch)
tree7105b54a8a7b5d2eca45fee1b3ff7f326e99e81a /chart2
parentc11ee0f7b0e4e7bf4d1e2e5bb4309f24b917ce79 (diff)
loplugin:unusedmethods
Change-Id: Icd7a0f9909f36363b307b4fe7ee920183881afbb Reviewed-on: https://gerrit.libreoffice.org/61576 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/controller/dialogs/res_LegendPosition.cxx64
-rw-r--r--chart2/source/controller/dialogs/res_Titles.cxx22
-rw-r--r--chart2/source/controller/inc/res_LegendPosition.hxx7
-rw-r--r--chart2/source/controller/inc/res_Titles.hxx3
4 files changed, 0 insertions, 96 deletions
diff --git a/chart2/source/controller/dialogs/res_LegendPosition.cxx b/chart2/source/controller/dialogs/res_LegendPosition.cxx
index 0d6963266ec9..85750e4b6e71 100644
--- a/chart2/source/controller/dialogs/res_LegendPosition.cxx
+++ b/chart2/source/controller/dialogs/res_LegendPosition.cxx
@@ -240,17 +240,6 @@ void LegendPositionResources::SetChangeHdl( const Link<LinkParamNone*,void>& rLi
m_aChangeLink = rLink;
}
-SchLegendPositionResources::SchLegendPositionResources(weld::Builder& rBuilder)
- : m_xCC() // unused in this scenario
- , m_xCbxShow() // unused in this scenario, assumed to be visible
- , m_xRbtLeft(rBuilder.weld_radio_button("left"))
- , m_xRbtRight(rBuilder.weld_radio_button("right"))
- , m_xRbtTop(rBuilder.weld_radio_button("top"))
- , m_xRbtBottom(rBuilder.weld_radio_button("bottom"))
-{
- impl_setRadioButtonToggleHdl();
-}
-
SchLegendPositionResources::SchLegendPositionResources(weld::Builder& rBuilder,
const uno::Reference< uno::XComponentContext >& xCC)
: m_xCC(xCC)
@@ -378,54 +367,6 @@ IMPL_LINK_NOARG(SchLegendPositionResources, PositionEnableHdl, weld::ToggleButto
m_aChangeLink.Call(nullptr);
}
-void SchLegendPositionResources::initFromItemSet( const SfxItemSet& rInAttrs )
-{
- const SfxPoolItem* pPoolItem = nullptr;
- if( rInAttrs.GetItemState( SCHATTR_LEGEND_POS, true, &pPoolItem ) == SfxItemState::SET )
- {
- chart2::LegendPosition nLegendPosition = static_cast<chart2::LegendPosition>(static_cast<const SfxInt32Item*>(pPoolItem)->GetValue());
- switch( nLegendPosition )
- {
- case chart2::LegendPosition_LINE_START:
- m_xRbtLeft->set_active(true);
- break;
- case chart2::LegendPosition_PAGE_START:
- m_xRbtTop->set_active(true);
- break;
- case chart2::LegendPosition_LINE_END:
- m_xRbtRight->set_active(true);
- break;
- case chart2::LegendPosition_PAGE_END:
- m_xRbtBottom->set_active(true);
- break;
- default:
- break;
- }
- }
-
- if (m_xCbxShow && rInAttrs.GetItemState( SCHATTR_LEGEND_SHOW, true, &pPoolItem ) == SfxItemState::SET)
- {
- bool bShow = static_cast< const SfxBoolItem * >( pPoolItem )->GetValue();
- m_xCbxShow->set_active(bShow);
- }
-}
-
-void SchLegendPositionResources::writeToItemSet( SfxItemSet& rOutAttrs ) const
-{
- chart2::LegendPosition nLegendPosition = chart2::LegendPosition_CUSTOM;
- if( m_xRbtLeft->get_active() )
- nLegendPosition = chart2::LegendPosition_LINE_START;
- else if( m_xRbtTop->get_active() )
- nLegendPosition = chart2::LegendPosition_PAGE_START;
- else if( m_xRbtRight->get_active() )
- nLegendPosition = chart2::LegendPosition_LINE_END;
- else if( m_xRbtBottom->get_active() )
- nLegendPosition = chart2::LegendPosition_PAGE_END;
- rOutAttrs.Put( SfxInt32Item(SCHATTR_LEGEND_POS, static_cast<sal_Int32>(nLegendPosition) ) );
-
- rOutAttrs.Put( SfxBoolItem(SCHATTR_LEGEND_SHOW, !m_xCbxShow || m_xCbxShow->get_active()) );
-}
-
IMPL_LINK(SchLegendPositionResources, PositionChangeHdl, weld::ToggleButton&, rRadio, void )
{
//for each radio click there are coming two change events
@@ -435,11 +376,6 @@ IMPL_LINK(SchLegendPositionResources, PositionChangeHdl, weld::ToggleButton&, rR
m_aChangeLink.Call(nullptr);
}
-void SchLegendPositionResources::SetChangeHdl( const Link<LinkParamNone*,void>& rLink )
-{
- m_aChangeLink = rLink;
-}
-
} //namespace chart
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/chart2/source/controller/dialogs/res_Titles.cxx b/chart2/source/controller/dialogs/res_Titles.cxx
index 7feec41cc2d8..90d35f0da020 100644
--- a/chart2/source/controller/dialogs/res_Titles.cxx
+++ b/chart2/source/controller/dialogs/res_Titles.cxx
@@ -174,28 +174,6 @@ SchTitleResources::~SchTitleResources()
{
}
-bool SchTitleResources::IsModified()
-{
- return m_xEd_Main->get_value_changed_from_saved()
- || m_xEd_Sub->get_value_changed_from_saved()
- || m_xEd_XAxis->get_value_changed_from_saved()
- || m_xEd_YAxis->get_value_changed_from_saved()
- || m_xEd_ZAxis->get_value_changed_from_saved()
- || m_xEd_SecondaryXAxis->get_value_changed_from_saved()
- || m_xEd_SecondaryYAxis->get_value_changed_from_saved();
-}
-
-void SchTitleResources::ClearModifyFlag()
-{
- m_xEd_Main->save_value();
- m_xEd_Sub->save_value();
- m_xEd_XAxis->save_value();
- m_xEd_YAxis->save_value();
- m_xEd_ZAxis->save_value();
- m_xEd_SecondaryXAxis->save_value();
- m_xEd_SecondaryYAxis->save_value();
-}
-
void SchTitleResources::writeToResources( const TitleDialogData& rInput )
{
m_xFT_Main->set_sensitive( rInput.aPossibilityList[0] );
diff --git a/chart2/source/controller/inc/res_LegendPosition.hxx b/chart2/source/controller/inc/res_LegendPosition.hxx
index 1568781e4818..9dc6f6fef230 100644
--- a/chart2/source/controller/inc/res_LegendPosition.hxx
+++ b/chart2/source/controller/inc/res_LegendPosition.hxx
@@ -74,8 +74,6 @@ class SchLegendPositionResources final
{
public:
- //constructor without Display checkbox
- SchLegendPositionResources(weld::Builder& rBuilder);
//constructor inclusive Display checkbox
SchLegendPositionResources(weld::Builder& rBuilder, const css::uno::Reference<
css::uno::XComponentContext>& xCC );
@@ -84,11 +82,6 @@ public:
void writeToResources( const css::uno::Reference< css::frame::XModel >& xChartModel );
void writeToModel( const css::uno::Reference< css::frame::XModel >& xChartModel ) const;
- void initFromItemSet( const SfxItemSet& rInAttrs );
- void writeToItemSet( SfxItemSet& rOutAttrs ) const;
-
- void SetChangeHdl( const Link<LinkParamNone*,void>& rLink );
-
DECL_LINK(PositionEnableHdl, weld::ToggleButton&, void);
DECL_LINK(PositionChangeHdl, weld::ToggleButton&, void);
diff --git a/chart2/source/controller/inc/res_Titles.hxx b/chart2/source/controller/inc/res_Titles.hxx
index 8ba85b7ddb9a..9541a2c82ba9 100644
--- a/chart2/source/controller/inc/res_Titles.hxx
+++ b/chart2/source/controller/inc/res_Titles.hxx
@@ -70,9 +70,6 @@ public:
void writeToResources( const TitleDialogData& rInput );
void readFromResources( TitleDialogData& rOutput );
- bool IsModified();
- void ClearModifyFlag();
-
private:
std::unique_ptr<weld::Label> m_xFT_Main;
std::unique_ptr<weld::Label> m_xFT_Sub;