summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-04-12 12:19:04 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-04-12 14:50:16 +0200
commit3df141b2084d3abc1587ef24d2b371b779bb3d50 (patch)
tree2d24947c36901ec68ad0be2d85fd55d4542e1006 /sd
parent7811a0e581ca34f59daf4210c568f818d8c9dfdd (diff)
loplugin:unusedmethods
Change-Id: Ie90e53583484ee4f378ec92634adf3be7cd9ecbb Reviewed-on: https://gerrit.libreoffice.org/70650 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/animations/CustomAnimationPane.cxx34
-rw-r--r--sd/source/ui/animations/CustomAnimationPane.hxx3
-rw-r--r--sd/source/ui/table/TableDesignPane.hxx6
3 files changed, 5 insertions, 38 deletions
diff --git a/sd/source/ui/animations/CustomAnimationPane.cxx b/sd/source/ui/animations/CustomAnimationPane.cxx
index c5160535880d..9e34ada5d8d1 100644
--- a/sd/source/ui/animations/CustomAnimationPane.cxx
+++ b/sd/source/ui/animations/CustomAnimationPane.cxx
@@ -128,23 +128,6 @@ CustomAnimationPane::CustomAnimationPane( Window* pParent, ViewShellBase& rBase,
mnCurvePathPos( LISTBOX_ENTRY_NOTFOUND ),
mnPolygonPathPos( LISTBOX_ENTRY_NOTFOUND ),
mnFreeformPathPos( LISTBOX_ENTRY_NOTFOUND ),
- mbHorizontal( false ),
- maLateInitTimer()
-{
- initialize();
-}
-
-CustomAnimationPane::CustomAnimationPane( Window* pParent, ViewShellBase& rBase,
- const css::uno::Reference<css::frame::XFrame>& rxFrame,
- bool )
-: PanelLayout( pParent, "CustomAnimationsPanel", "modules/simpress/ui/customanimationspanelhorizontal.ui", rxFrame ),
- mrBase( rBase ),
- mpCustomAnimationPresets(nullptr),
- mnPropertyType( nPropertyTypeNone ),
- mnCurvePathPos( LISTBOX_ENTRY_NOTFOUND ),
- mnPolygonPathPos( LISTBOX_ENTRY_NOTFOUND ),
- mnFreeformPathPos( LISTBOX_ENTRY_NOTFOUND ),
- mbHorizontal( true ),
maLateInitTimer()
{
initialize();
@@ -156,8 +139,7 @@ void CustomAnimationPane::initialize()
get(mpPBAddEffect, "add_effect");
get(mpPBRemoveEffect, "remove_effect");
- if(!mbHorizontal)
- get(mpFTEffect, "effect_label");
+ get(mpFTEffect, "effect_label");
get(mpFTStart, "start_effect");
get(mpLBStart, "start_effect_list");
@@ -214,8 +196,7 @@ void CustomAnimationPane::initialize()
mpMFStartDelay->SetLoseFocusHdl(LINK( this, CustomAnimationPane, DelayLoseFocusHdl));
- if(!mbHorizontal)
- maStrModify = mpFTEffect->GetText();
+ maStrModify = mpFTEffect->GetText();
// get current controller and initialize listeners
try
@@ -257,8 +238,7 @@ void CustomAnimationPane::dispose()
mpPBAddEffect.clear();
mpPBRemoveEffect.clear();
- if(!mbHorizontal)
- mpFTEffect.clear();
+ mpFTEffect.clear();
mpFTStart.clear();
mpLBStart.clear();
mpFTProperty.clear();
@@ -555,7 +535,7 @@ void CustomAnimationPane::updateControls()
OUString aTemp( maStrModify );
- if( !mbHorizontal && !aUIName.isEmpty() )
+ if( !aUIName.isEmpty() )
{
aTemp += " " + aUIName;
mpFTEffect->SetText( aTemp );
@@ -688,8 +668,7 @@ void CustomAnimationPane::updateControls()
mpFTDuration->Enable(false);
mpCBXDuration->Enable(false);
mpCBXDuration->SetNoSelection();
- if(!mbHorizontal)
- mpFTEffect->SetText( maStrModify );
+ mpFTEffect->SetText( maStrModify );
}
bool bEnableUp = true;
@@ -885,9 +864,6 @@ void CustomAnimationPane::DataChanged (const DataChangedEvent&)
void CustomAnimationPane::UpdateLook()
{
- if( mbHorizontal )
- return;
-
Wallpaper aBackground (
::sfx2::sidebar::Theme::GetWallpaper(
::sfx2::sidebar::Theme::Paint_PanelBackground));
diff --git a/sd/source/ui/animations/CustomAnimationPane.hxx b/sd/source/ui/animations/CustomAnimationPane.hxx
index ce2211eab203..8df9d2511377 100644
--- a/sd/source/ui/animations/CustomAnimationPane.hxx
+++ b/sd/source/ui/animations/CustomAnimationPane.hxx
@@ -60,7 +60,6 @@ class CustomAnimationPane : public PanelLayout, public ICustomAnimationListContr
friend class MotionPathTag;
public:
CustomAnimationPane( vcl::Window* pParent, ViewShellBase& rBase, const css::uno::Reference<css::frame::XFrame>& rxFrame );
- CustomAnimationPane( vcl::Window* pParent, ViewShellBase& rBase, const css::uno::Reference<css::frame::XFrame>& rxFrame, bool bHorizontal );
virtual ~CustomAnimationPane() override;
virtual void dispose() override;
@@ -166,8 +165,6 @@ private:
sal_Int32 mnPolygonPathPos;
sal_Int32 mnFreeformPathPos;
- bool const mbHorizontal;
-
EffectSequence maListSelection;
css::uno::Any maViewSelection;
diff --git a/sd/source/ui/table/TableDesignPane.hxx b/sd/source/ui/table/TableDesignPane.hxx
index 5faa59fe4da4..cdc86851ea9f 100644
--- a/sd/source/ui/table/TableDesignPane.hxx
+++ b/sd/source/ui/table/TableDesignPane.hxx
@@ -105,12 +105,6 @@ public:
, aImpl(this, rBase)
{
}
- TableDesignPane( vcl::Window* pParent, ViewShellBase& rBase, bool )
- : PanelLayout(pParent, "TableDesignPanel",
- "modules/simpress/ui/tabledesignpanelhorizontal.ui", css::uno::Reference<css::frame::XFrame>())
- , aImpl(this, rBase)
- {
- }
};
}