summaryrefslogtreecommitdiff
path: root/sd/source
diff options
context:
space:
mode:
Diffstat (limited to 'sd/source')
-rw-r--r--sd/source/ui/animations/CategoryListBox.hxx2
-rw-r--r--sd/source/ui/animations/CustomAnimationPane.cxx83
-rw-r--r--sd/source/ui/animations/CustomAnimationPane.hxx4
-rw-r--r--sd/source/ui/inc/slideshow.hxx6
-rw-r--r--sd/source/ui/slideshow/slideshow.cxx20
-rw-r--r--sd/source/ui/slideshow/slideshowimpl.hxx3
6 files changed, 0 insertions, 118 deletions
diff --git a/sd/source/ui/animations/CategoryListBox.hxx b/sd/source/ui/animations/CategoryListBox.hxx
index f044ac4b6c2f..fa29b4abea5b 100644
--- a/sd/source/ui/animations/CategoryListBox.hxx
+++ b/sd/source/ui/animations/CategoryListBox.hxx
@@ -16,8 +16,6 @@ public:
sal_Int32 InsertCategory( const OUString& rStr, sal_Int32 nPos = LISTBOX_APPEND );
- void SetDoubleClickLink( const Link<CategoryListBox&,void>& rDoubleClickHdl ) { maDoubleClickHdl = rDoubleClickHdl; }
-
DECL_LINK_TYPED(implDoubleClickHdl, ListBox&, void);
private:
diff --git a/sd/source/ui/animations/CustomAnimationPane.cxx b/sd/source/ui/animations/CustomAnimationPane.cxx
index f7589cf09814..ac3b1ae31bc2 100644
--- a/sd/source/ui/animations/CustomAnimationPane.cxx
+++ b/sd/source/ui/animations/CustomAnimationPane.cxx
@@ -275,30 +275,6 @@ void CustomAnimationPane::dispose()
PanelLayout::dispose();
}
-PathKind CustomAnimationPane::getCreatePathKind() const
-{
- PathKind eKind = PathKind::NONE;
-
- if( mpLBAnimation->GetSelectEntryCount() == 1 )
- {
- const sal_Int32 nPos = mpLBAnimation->GetSelectEntryPos();
- if( nPos == mnCurvePathPos )
- {
- eKind = PathKind::CURVE;
- }
- else if( nPos == mnPolygonPathPos )
- {
- eKind = PathKind::POLYGON;
- }
- else if( nPos == mnFreeformPathPos )
- {
- eKind = PathKind::FREEFORM;
- }
- }
-
- return eKind;
-}
-
void CustomAnimationPane::addUndo()
{
::svl::IUndoManager* pManager = mrBase.GetDocShell()->GetUndoManager();
@@ -1768,33 +1744,6 @@ bool getTextSelection( const Any& rSelection, Reference< XShape >& xShape, std::
return false;
}
-void CustomAnimationPane::animationChange()
-{
- if( maListSelection.size() == 1 )
- {
- CustomAnimationPresetPtr* pPreset = static_cast< CustomAnimationPresetPtr* >(mpLBAnimation->GetSelectEntryData());
- const double fDuration = (*pPreset)->getDuration();
- CustomAnimationPresetPtr pDescriptor(*pPreset);
- MainSequenceRebuildGuard aGuard( mpMainSequence );
-
- // get selected effect
- EffectSequence::iterator aIter( maListSelection.begin() );
- const EffectSequence::iterator aEnd( maListSelection.end() );
- while( aIter != aEnd )
- {
- CustomAnimationEffectPtr pEffect = (*aIter++);
-
- EffectSequenceHelper* pEffectSequence = pEffect->getEffectSequence();
- if( !pEffectSequence )
- pEffectSequence = mpMainSequence.get();
-
- pEffectSequence->replace( pEffect, pDescriptor, fDuration );
- }
- onPreview(true);
- }
-
-}
-
void CustomAnimationPane::onChange()
{
bool bHasText = true;
@@ -1926,38 +1875,6 @@ void CustomAnimationPane::onChange()
SlideShow::Stop( mrBase );
}
-void CustomAnimationPane::createPath( PathKind eKind, std::vector< Any >& rTargets, double fDuration)
-{
- sal_uInt16 nSID = 0;
-
- switch( eKind )
- {
- case PathKind::CURVE: nSID = SID_DRAW_BEZIER_NOFILL; break;
- case PathKind::POLYGON: nSID = SID_DRAW_POLYGON_NOFILL; break;
- case PathKind::FREEFORM: nSID = SID_DRAW_FREELINE_NOFILL; break;
- default: break;
- }
-
- if( nSID )
- {
- DrawViewShell* pViewShell = dynamic_cast< DrawViewShell* >(
- FrameworkHelper::Instance(mrBase)->GetViewShell(FrameworkHelper::msCenterPaneURL).get());
-
- if( pViewShell )
- {
- DrawView* pView = pViewShell->GetDrawView();
- if( pView )
- pView->UnmarkAllObj();
-
- std::vector< Any > aTargets( 1, Any( fDuration ) );
- aTargets.insert( aTargets.end(), rTargets.begin(), rTargets.end() );
- Sequence< Any > aTargetSequence( comphelper::containerToSequence( aTargets ) );
- const SfxUnoAnyItem aItem( SID_ADD_MOTION_PATH, Any( aTargetSequence ) );
- pViewShell->GetViewFrame()->GetDispatcher()->Execute( nSID, SfxCallMode::ASYNCHRON, &aItem, 0 );
- }
- }
-}
-
void CustomAnimationPane::onRemove()
{
if( !maListSelection.empty() )
diff --git a/sd/source/ui/animations/CustomAnimationPane.hxx b/sd/source/ui/animations/CustomAnimationPane.hxx
index a5b4c6ee8954..04305d53dc2e 100644
--- a/sd/source/ui/animations/CustomAnimationPane.hxx
+++ b/sd/source/ui/animations/CustomAnimationPane.hxx
@@ -71,7 +71,6 @@ public:
void onSelectionChanged();
void onChangeCurrentPage();
void onChange();
- void animationChange();
void onRemove();
void onChangeStart();
void onChangeStart( sal_Int16 nNodeType );
@@ -82,7 +81,6 @@ public:
void preview( const css::uno::Reference< css::animations::XAnimationNode >& xAnimationNode );
void remove( CustomAnimationEffectPtr& pEffect );
- PathKind getCreatePathKind() const;
// Control
virtual void StateChanged( StateChangedType nStateChange ) override;
virtual void KeyInput( const KeyEvent& rKEvt ) override;
@@ -111,8 +109,6 @@ private:
void moveSelection( bool bUp );
void onPreview( bool bForcePreview );
- void createPath( PathKind eKind, std::vector< css::uno::Any >& rTargets, double fDuration );
-
STLPropertySet* createSelectionSet();
void changeSelection( STLPropertySet* pResultSet, STLPropertySet* pOldSet );
diff --git a/sd/source/ui/inc/slideshow.hxx b/sd/source/ui/inc/slideshow.hxx
index 118c71912d33..741af84d7966 100644
--- a/sd/source/ui/inc/slideshow.hxx
+++ b/sd/source/ui/inc/slideshow.hxx
@@ -165,10 +165,6 @@ public:
OutputDevice* getShowWindow(); // a.k.a. FuSlideShow::GetShowWindow()
int getAnimationMode(); // a.k.a. FuSlideShow::GetAnimationMode()
sal_Int32 getCurrentPageNumber(); // a.k.a. FuSlideShow::GetCurrentPage()
- sal_Int32 getFirstPageNumber();
- sal_Int32 getLastPageNumber();
- bool isEndless();
- bool isDrawingPossible();
// events
void resize( const Size &rSize );
@@ -178,8 +174,6 @@ public:
bool keyInput(const KeyEvent& rKEvt);
- void receiveRequest(SfxRequest& rReq);
-
bool dependsOn( ViewShellBase* pViewShellBase );
static sal_Int32 GetDisplay();
diff --git a/sd/source/ui/slideshow/slideshow.cxx b/sd/source/ui/slideshow/slideshow.cxx
index 99b27e080309..6d30a083a6a2 100644
--- a/sd/source/ui/slideshow/slideshow.cxx
+++ b/sd/source/ui/slideshow/slideshow.cxx
@@ -1020,26 +1020,6 @@ void SlideShow::pause( bool bPause )
}
}
-sal_Int32 SlideShow::getFirstPageNumber()
-{
- return mxController.is() ? mxController->getFirstSlideNumber() : 0;
-}
-
-sal_Int32 SlideShow::getLastPageNumber()
-{
- return mxController.is() ? mxController->getLastSlideNumber() : 0;
-}
-
-bool SlideShow::isEndless()
-{
- return mxController.is() && mxController->isEndless();
-}
-
-bool SlideShow::isDrawingPossible()
-{
- return mxController.is() && mxController->getUsePen();
-}
-
bool SlideShow::swipe(const CommandSwipeData& rSwipeData)
{
return mxController.is() && mxController->swipe(rSwipeData);
diff --git a/sd/source/ui/slideshow/slideshowimpl.hxx b/sd/source/ui/slideshow/slideshowimpl.hxx
index 8aa17bdcfe58..5845175a038e 100644
--- a/sd/source/ui/slideshow/slideshowimpl.hxx
+++ b/sd/source/ui/slideshow/slideshowimpl.hxx
@@ -283,9 +283,6 @@ private:
DECL_LINK_TYPED( deactivateHdl, Timer *, void );
DECL_LINK_TYPED( EventListenerHdl, VclSimpleEvent&, void );
- // helper
- void receiveRequest(SfxRequest& rReq);
-
/** called only by the slideshow view when the first paint event occurs.
This actually starts the slideshow. */
void onFirstPaint();