summaryrefslogtreecommitdiff
path: root/sd/source
diff options
context:
space:
mode:
authorFelix Zhang <fezhang@suse.com>2011-10-21 17:51:50 +0800
committerJan Holesovsky <kendy@suse.cz>2011-10-21 16:56:52 +0200
commit48e2a853b9106033094d2fd917dbf14ada5abdc0 (patch)
treef1ce8c1c053965ae21727f1aa2876c4678d3936c /sd/source
parentcbfaa4dd71b39d393524afa7438c6da4e1e68df4 (diff)
remove unused methods from sd::slidesorter
Diffstat (limited to 'sd/source')
-rw-r--r--sd/source/ui/slidesorter/cache/SlsBitmapCache.cxx9
-rw-r--r--sd/source/ui/slidesorter/cache/SlsPageCache.cxx8
-rw-r--r--sd/source/ui/slidesorter/controller/SlideSorterController.cxx9
-rw-r--r--sd/source/ui/slidesorter/controller/SlsAnimationFunction.cxx104
-rw-r--r--sd/source/ui/slidesorter/controller/SlsAnimator.cxx30
-rw-r--r--sd/source/ui/slidesorter/controller/SlsClipboard.cxx16
-rw-r--r--sd/source/ui/slidesorter/controller/SlsDragAndDropContext.cxx51
-rw-r--r--sd/source/ui/slidesorter/controller/SlsDragAndDropContext.hxx10
-rw-r--r--sd/source/ui/slidesorter/controller/SlsPageSelector.cxx13
-rw-r--r--sd/source/ui/slidesorter/controller/SlsProperties.cxx8
-rw-r--r--sd/source/ui/slidesorter/controller/SlsScrollBarManager.cxx22
-rw-r--r--sd/source/ui/slidesorter/controller/SlsSelectionCommand.cxx88
-rw-r--r--sd/source/ui/slidesorter/controller/SlsSelectionCommand.hxx98
-rw-r--r--sd/source/ui/slidesorter/controller/SlsSelectionFunction.cxx19
-rw-r--r--sd/source/ui/slidesorter/controller/SlsSlotManager.cxx8
-rw-r--r--sd/source/ui/slidesorter/inc/cache/SlsPageCache.hxx6
-rw-r--r--sd/source/ui/slidesorter/inc/controller/SlideSorterController.hxx5
-rw-r--r--sd/source/ui/slidesorter/inc/controller/SlsAnimationFunction.hxx52
-rw-r--r--sd/source/ui/slidesorter/inc/controller/SlsAnimator.hxx4
-rw-r--r--sd/source/ui/slidesorter/inc/controller/SlsClipboard.hxx5
-rw-r--r--sd/source/ui/slidesorter/inc/controller/SlsPageSelector.hxx3
-rw-r--r--sd/source/ui/slidesorter/inc/controller/SlsProperties.hxx1
-rw-r--r--sd/source/ui/slidesorter/inc/controller/SlsScrollBarManager.hxx4
-rw-r--r--sd/source/ui/slidesorter/inc/controller/SlsSelectionFunction.hxx1
-rw-r--r--sd/source/ui/slidesorter/inc/controller/SlsSlotManager.hxx2
-rw-r--r--sd/source/ui/slidesorter/inc/model/SlsVisualState.hxx8
-rw-r--r--sd/source/ui/slidesorter/inc/view/SlideSorterView.hxx3
-rw-r--r--sd/source/ui/slidesorter/inc/view/SlsButtonBar.hxx50
-rw-r--r--sd/source/ui/slidesorter/inc/view/SlsInsertionIndicatorOverlay.hxx3
-rw-r--r--sd/source/ui/slidesorter/inc/view/SlsLayouter.hxx27
-rw-r--r--sd/source/ui/slidesorter/inc/view/SlsTheme.hxx9
-rw-r--r--sd/source/ui/slidesorter/inc/view/SlsToolTip.hxx4
-rw-r--r--sd/source/ui/slidesorter/model/SlsVisualState.cxx56
-rw-r--r--sd/source/ui/slidesorter/view/SlideSorterView.cxx25
-rw-r--r--sd/source/ui/slidesorter/view/SlsButtonBar.cxx118
-rw-r--r--sd/source/ui/slidesorter/view/SlsInsertionIndicatorOverlay.cxx16
-rw-r--r--sd/source/ui/slidesorter/view/SlsLayeredDevice.cxx10
-rw-r--r--sd/source/ui/slidesorter/view/SlsLayeredDevice.hxx2
-rw-r--r--sd/source/ui/slidesorter/view/SlsLayouter.cxx74
-rw-r--r--sd/source/ui/slidesorter/view/SlsTheme.cxx95
-rw-r--r--sd/source/ui/slidesorter/view/SlsToolTip.cxx16
41 files changed, 0 insertions, 1092 deletions
diff --git a/sd/source/ui/slidesorter/cache/SlsBitmapCache.cxx b/sd/source/ui/slidesorter/cache/SlsBitmapCache.cxx
index c7635efda428..8a836944b5f8 100644
--- a/sd/source/ui/slidesorter/cache/SlsBitmapCache.cxx
+++ b/sd/source/ui/slidesorter/cache/SlsBitmapCache.cxx
@@ -74,7 +74,6 @@ public:
Bitmap GetMarkedPreview (void) const { return maMarkedPreview; }
inline void SetMarkedPreview (const Bitmap& rMarkePreview);
- bool HasMarkedPreview (void) const;
bool HasReplacement (void) const { return (mpReplacement.get() != NULL); }
inline bool HasLosslessReplacement (void) const;
@@ -685,14 +684,6 @@ inline void BitmapCache::CacheEntry::SetMarkedPreview (const Bitmap& rMarkedPrev
-bool BitmapCache::CacheEntry::HasMarkedPreview (void) const
-{
- return ! maMarkedPreview.IsEmpty();
-}
-
-
-
-
inline bool BitmapCache::CacheEntry::HasLosslessReplacement (void) const
{
return mpReplacement.get()!=NULL
diff --git a/sd/source/ui/slidesorter/cache/SlsPageCache.cxx b/sd/source/ui/slidesorter/cache/SlsPageCache.cxx
index 7fb9d956834d..a6ab5e2032f8 100644
--- a/sd/source/ui/slidesorter/cache/SlsPageCache.cxx
+++ b/sd/source/ui/slidesorter/cache/SlsPageCache.cxx
@@ -124,14 +124,6 @@ void PageCache::InvalidatePreviewBitmap (
-void PageCache::ReleasePreviewBitmap (const CacheKey aKey)
-{
- mpImplementation->ReleasePreviewBitmap(aKey);
-}
-
-
-
-
void PageCache::InvalidateCache (const bool bUpdateCache)
{
mpImplementation->InvalidateCache(bUpdateCache);
diff --git a/sd/source/ui/slidesorter/controller/SlideSorterController.cxx b/sd/source/ui/slidesorter/controller/SlideSorterController.cxx
index 0d2e49d31e97..4012a256bf67 100644
--- a/sd/source/ui/slidesorter/controller/SlideSorterController.cxx
+++ b/sd/source/ui/slidesorter/controller/SlideSorterController.cxx
@@ -37,7 +37,6 @@
#include "controller/SlsCurrentSlideManager.hxx"
#include "SlsListener.hxx"
#include "controller/SlsFocusManager.hxx"
-#include "SlsSelectionCommand.hxx"
#include "controller/SlsAnimator.hxx"
#include "controller/SlsClipboard.hxx"
#include "controller/SlsInsertionIndicatorHandler.hxx"
@@ -1035,14 +1034,6 @@ void SlideSorterController::PageNameHasChanged (int nPageIndex, const String& rs
-bool SlideSorterController::IsContextMenuOpen (void) const
-{
- return mbIsContextMenuOpen;
-}
-
-
-
-
void SlideSorterController::SetDocumentSlides (const Reference<container::XIndexAccess>& rxSlides)
{
if (mrModel.GetDocumentSlides() != rxSlides)
diff --git a/sd/source/ui/slidesorter/controller/SlsAnimationFunction.cxx b/sd/source/ui/slidesorter/controller/SlsAnimationFunction.cxx
index 517f1c6be7bd..db5dea658ae7 100644
--- a/sd/source/ui/slidesorter/controller/SlsAnimationFunction.cxx
+++ b/sd/source/ui/slidesorter/controller/SlsAnimationFunction.cxx
@@ -47,63 +47,6 @@ double AnimationFunction::Linear (const double nTime)
-double AnimationFunction::FastInSlowOut_Sine (const double nTime)
-{
- OSL_ASSERT(nTime>=0.0 && nTime<=1.0);
-
- const double nResult (sin(nTime * M_PI/2));
-
- OSL_ASSERT(nResult>=0.0 && nResult<=1.0);
- return nResult;
-}
-
-
-
-
-double AnimationFunction::FastInSlowOut_Root (const double nTime)
-{
- OSL_ASSERT(nTime>=0.0 && nTime<=1.0);
-
- const double nResult (sqrt(nTime));
-
- OSL_ASSERT(nResult>=0.0 && nResult<=1.0);
- return nResult;
-}
-
-
-
-
-double AnimationFunction::SlowInSlowOut_0to0_Sine (const double nTime)
-{
- OSL_ASSERT(nTime>=0.0 && nTime<=1.0);
-
- const double nResult (sin(nTime * M_PI));
-
- OSL_ASSERT(nResult>=0.0 && nResult<=1.0);
- return nResult;
-}
-
-
-
-
-double AnimationFunction::Vibrate_Sine (const double nTime)
-{
- return sin(nTime*M_PI*8);
-}
-
-
-
-
-Point AnimationFunction::ScalePoint (const Point& rPoint, const double nTime)
-{
- return Point(
- sal_Int32(::rtl::math::round(rPoint.X() * nTime)),
- sal_Int32(::rtl::math::round(rPoint.Y() * nTime)));
-}
-
-
-
-
double AnimationFunction::Blend (
const double nStartValue,
const double nEndValue,
@@ -115,38 +58,6 @@ double AnimationFunction::Blend (
-void AnimationFunction::ApplyVisualStateChange (
- const model::SharedPageDescriptor& rpDescriptor,
- view::SlideSorterView& rView,
- const double nTime)
-{
- if (rpDescriptor)
- {
- rpDescriptor->GetVisualState().SetVisualStateBlend(nTime);
- rView.RequestRepaint(rpDescriptor);
- }
-}
-
-
-
-
-void AnimationFunction::ApplyLocationOffsetChange (
- const model::SharedPageDescriptor& rpDescriptor,
- view::SlideSorterView& rView,
- const Point aLocationOffset)
-{
- if (rpDescriptor)
- {
- const Rectangle aOldBoundingBox(rpDescriptor->GetBoundingBox());
- rpDescriptor->GetVisualState().SetLocationOffset(aLocationOffset);
- rView.RequestRepaint(aOldBoundingBox);
- rView.RequestRepaint(rpDescriptor);
- }
-}
-
-
-
-
void AnimationFunction::ApplyButtonAlphaChange(
const model::SharedPageDescriptor& rpDescriptor,
view::SlideSorterView& rView,
@@ -168,21 +79,6 @@ void AnimationFunction::ApplyButtonAlphaChange(
AnimationBezierFunction::AnimationBezierFunction (
const double nX1,
- const double nY1,
- const double nX2,
- const double nY2)
- : mnX1(nX1),
- mnY1(nY1),
- mnX2(nX2),
- mnY2(nY2)
-{
-}
-
-
-
-
-AnimationBezierFunction::AnimationBezierFunction (
- const double nX1,
const double nY1)
: mnX1(nX1),
mnY1(nY1),
diff --git a/sd/source/ui/slidesorter/controller/SlsAnimator.cxx b/sd/source/ui/slidesorter/controller/SlsAnimator.cxx
index 6a634b15c9db..887d962c6af4 100644
--- a/sd/source/ui/slidesorter/controller/SlsAnimator.cxx
+++ b/sd/source/ui/slidesorter/controller/SlsAnimator.cxx
@@ -153,36 +153,6 @@ Animator::AnimationId Animator::AddAnimation (
-Animator::AnimationId Animator::AddInfiniteAnimation (
- const AnimationFunctor& rAnimation,
- const double nDelta)
-{
- (void)nDelta;
-
- // When the animator is already disposed then ignore this call
- // silently (well, we show an assertion, but do not throw an exception.)
- OSL_ASSERT( ! mbIsDisposed);
- if (mbIsDisposed)
- return -1;
-
- boost::shared_ptr<Animation> pAnimation (
- new Animation(
- rAnimation,
- 0,
- -1,
- maElapsedTime.getElapsedTime(),
- mnNextAnimationId++,
- FinishFunctor()));
- maAnimations.push_back(pAnimation);
-
- RequestNextFrame();
-
- return pAnimation->mnAnimationId;
-}
-
-
-
-
void Animator::RemoveAnimation (const Animator::AnimationId nId)
{
OSL_ASSERT( ! mbIsDisposed);
diff --git a/sd/source/ui/slidesorter/controller/SlsClipboard.cxx b/sd/source/ui/slidesorter/controller/SlsClipboard.cxx
index 27f378a6a928..cbc1c6eae00b 100644
--- a/sd/source/ui/slidesorter/controller/SlsClipboard.cxx
+++ b/sd/source/ui/slidesorter/controller/SlsClipboard.cxx
@@ -565,22 +565,6 @@ IMPL_LINK(Clipboard, ProcessDragFinished, void*, pUserData)
-void Clipboard::SelectPages (void)
-{
- PageSelector& rSelector (mrController.GetPageSelector());
-
- // Select the dropped pages.
- PageList::iterator iPage;
- rSelector.DeselectAllPages();
- for (iPage=maPagesToSelect.begin(); iPage!=maPagesToSelect.end(); ++iPage)
- {
- rSelector.SelectPage(*iPage);
- }
-}
-
-
-
-
sal_Int8 Clipboard::AcceptDrop (
const AcceptDropEvent& rEvent,
DropTargetHelper& rTargetHelper,
diff --git a/sd/source/ui/slidesorter/controller/SlsDragAndDropContext.cxx b/sd/source/ui/slidesorter/controller/SlsDragAndDropContext.cxx
index f89b8a85b1a5..d4b3775cf608 100644
--- a/sd/source/ui/slidesorter/controller/SlsDragAndDropContext.cxx
+++ b/sd/source/ui/slidesorter/controller/SlsDragAndDropContext.cxx
@@ -74,57 +74,6 @@ DragAndDropContext::~DragAndDropContext (void)
-void DragAndDropContext::GetPagesFromBookmarks (
- ::std::vector<const SdPage*>& rPages,
- sal_Int32& rnSelectionCount,
- DrawDocShell* pDocShell,
- const List& rBookmarks) const
-{
- if (pDocShell == NULL)
- return;
-
- const SdDrawDocument* pDocument = pDocShell->GetDoc();
- if (pDocument == NULL)
- return;
-
- for (sal_uLong nIndex=0,nCount=rBookmarks.Count(); nIndex<nCount; ++nIndex)
- {
- const String sPageName (*static_cast<String*>(rBookmarks.GetObject(nIndex)));
- sal_Bool bIsMasterPage (sal_False);
- const sal_uInt16 nPageIndex (pDocument->GetPageByName(sPageName, bIsMasterPage));
- if (nPageIndex == SDRPAGE_NOTFOUND)
- continue;
-
- const SdPage* pPage = dynamic_cast<const SdPage*>(pDocument->GetPage(nPageIndex));
- if (pPage != NULL)
- rPages.push_back(pPage);
- }
- rnSelectionCount = rBookmarks.Count();
-}
-
-
-
-
-void DragAndDropContext::GetPagesFromSelection (
- ::std::vector<const SdPage*>& rPages,
- sal_Int32& rnSelectionCount,
- model::PageEnumeration& rSelection) const
-{
- // Show a new substitution for the selected page objects.
- rnSelectionCount = 0;
-
- while (rSelection.HasMoreElements())
- {
- model::SharedPageDescriptor pDescriptor (rSelection.GetNextElement());
- if (rPages.size() < 3)
- rPages.push_back(pDescriptor->GetPage());
- ++rnSelectionCount;
- }
-}
-
-
-
-
void DragAndDropContext::Dispose (void)
{
mnInsertionIndex = -1;
diff --git a/sd/source/ui/slidesorter/controller/SlsDragAndDropContext.hxx b/sd/source/ui/slidesorter/controller/SlsDragAndDropContext.hxx
index ba505fa06c8d..1f9139af0511 100644
--- a/sd/source/ui/slidesorter/controller/SlsDragAndDropContext.hxx
+++ b/sd/source/ui/slidesorter/controller/SlsDragAndDropContext.hxx
@@ -82,16 +82,6 @@ private:
SlideSorter* mpTargetSlideSorter;
model::SharedPageDescriptor mpHitDescriptor;
sal_Int32 mnInsertionIndex;
-
- void GetPagesFromBookmarks (
- ::std::vector<const SdPage*>& rPages,
- sal_Int32& rnSelectionCount,
- DrawDocShell* pDocShell,
- const List& rBookmarks) const;
- void GetPagesFromSelection (
- ::std::vector<const SdPage*>& rPages,
- sal_Int32& rnSelectionCount,
- model::PageEnumeration& rSelection) const;
};
diff --git a/sd/source/ui/slidesorter/controller/SlsPageSelector.cxx b/sd/source/ui/slidesorter/controller/SlsPageSelector.cxx
index cfd34db8177f..bd015fecb7b1 100644
--- a/sd/source/ui/slidesorter/controller/SlsPageSelector.cxx
+++ b/sd/source/ui/slidesorter/controller/SlsPageSelector.cxx
@@ -217,19 +217,6 @@ void PageSelector::DeselectPage (
void PageSelector::DeselectPage (
- const SdPage* pPage,
- const bool bUpdateCurrentPage)
-{
- const sal_Int32 nPageIndex (mrModel.GetIndex(pPage));
- SharedPageDescriptor pDescriptor (mrModel.GetPageDescriptor(nPageIndex));
- if (pDescriptor.get()!=NULL && pDescriptor->GetPage()==pPage)
- DeselectPage(pDescriptor, bUpdateCurrentPage);
-}
-
-
-
-
-void PageSelector::DeselectPage (
const SharedPageDescriptor& rpDescriptor,
const bool bUpdateCurrentPage)
{
diff --git a/sd/source/ui/slidesorter/controller/SlsProperties.cxx b/sd/source/ui/slidesorter/controller/SlsProperties.cxx
index 88a17a8444ac..47bc79a7eb6e 100644
--- a/sd/source/ui/slidesorter/controller/SlsProperties.cxx
+++ b/sd/source/ui/slidesorter/controller/SlsProperties.cxx
@@ -257,14 +257,6 @@ bool Properties::IsOnlyPreviewTriggersMouseOver (void) const
-void Properties::SetOnlyPreviewTriggersMouseOver (const bool bFlag)
-{
- mbIsOnlyPreviewTriggersMouseOver = bFlag;
-}
-
-
-
-
bool Properties::IsHighContrastModeActive (void) const
{
return mbIsHighContrastModeActive;
diff --git a/sd/source/ui/slidesorter/controller/SlsScrollBarManager.cxx b/sd/source/ui/slidesorter/controller/SlsScrollBarManager.cxx
index 3de7eb8c3901..ed836b9f80a7 100644
--- a/sd/source/ui/slidesorter/controller/SlsScrollBarManager.cxx
+++ b/sd/source/ui/slidesorter/controller/SlsScrollBarManager.cxx
@@ -493,28 +493,6 @@ void ScrollBarManager::SetTopLeft (const Point aNewTopLeft)
-sal_Int32 ScrollBarManager::GetTop (void) const
-{
- if (mpVerticalScrollBar != NULL)
- return mpVerticalScrollBar->GetThumbPos();
- else
- return 0;
-}
-
-
-
-
-sal_Int32 ScrollBarManager::GetLeft (void) const
-{
- if (mpHorizontalScrollBar != NULL)
- return mpHorizontalScrollBar->GetThumbPos();
- else
- return 0;
-}
-
-
-
-
int ScrollBarManager::GetVerticalScrollBarWidth (void) const
{
if (mpVerticalScrollBar != NULL && mpVerticalScrollBar->IsVisible())
diff --git a/sd/source/ui/slidesorter/controller/SlsSelectionCommand.cxx b/sd/source/ui/slidesorter/controller/SlsSelectionCommand.cxx
deleted file mode 100644
index 174c3b944ab3..000000000000
--- a/sd/source/ui/slidesorter/controller/SlsSelectionCommand.cxx
+++ /dev/null
@@ -1,88 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- * <http://www.openoffice.org/license.html>
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#include "precompiled_sd.hxx"
-
-#include "SlsSelectionCommand.hxx"
-
-#include "controller/SlsCurrentSlideManager.hxx"
-#include "model/SlideSorterModel.hxx"
-#include "model/SlsPageDescriptor.hxx"
-
-#include "sdpage.hxx"
-
-namespace sd { namespace slidesorter { namespace controller {
-
-
-
-SelectionCommand::SelectionCommand (
- PageSelector& rSelector,
- const ::boost::shared_ptr<CurrentSlideManager>& rpCurrentSlideManager,
- const model::SlideSorterModel& rModel)
- : mrPageSelector(rSelector),
- mpCurrentSlideManager(rpCurrentSlideManager),
- mrModel(rModel),
- maPagesToSelect(),
- mnCurrentPageIndex(-1)
-{
-}
-
-
-
-
-void SelectionCommand::AddSlide (sal_uInt16 nPageIndex)
-{
- maPagesToSelect.push_back(nPageIndex);
-}
-
-
-
-
-void SelectionCommand::operator() (void)
-{
- OSL_ASSERT(mpCurrentSlideManager.get()!=NULL);
-
- mrPageSelector.DeselectAllPages();
-
- if (mnCurrentPageIndex >= 0)
- mpCurrentSlideManager->SwitchCurrentSlide(mnCurrentPageIndex);
-
- PageList::iterator iPage = maPagesToSelect.begin();
- PageList::iterator iEnd = maPagesToSelect.end();
- for (; iPage!=iEnd; ++iPage)
- {
- sal_Int32 nIndex (*iPage);
- if (nIndex >= 0)
- mrPageSelector.SelectPage(mrModel.GetPageDescriptor(nIndex));
- }
-}
-
-
-} } } // end of namespace sd::slidesorter::controller
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sd/source/ui/slidesorter/controller/SlsSelectionCommand.hxx b/sd/source/ui/slidesorter/controller/SlsSelectionCommand.hxx
deleted file mode 100644
index 1bc80260ad72..000000000000
--- a/sd/source/ui/slidesorter/controller/SlsSelectionCommand.hxx
+++ /dev/null
@@ -1,98 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- * <http://www.openoffice.org/license.html>
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifndef SD_SLIDESORTER_SELECTION_COMMAND_HXX
-#define SD_SLIDESORTER_SELECTION_COMMAND_HXX
-
-#include "controller/SlsPageSelector.hxx"
-#include "SlsCommand.hxx"
-#include <tools/solar.h>
-#include <com/sun/star/drawing/XDrawPage.hpp>
-
-#include <boost/shared_ptr.hpp>
-#include <vector>
-
-namespace sd { namespace slidesorter { namespace model {
-class SlideSorterModel;
-} } }
-
-
-namespace sd { namespace slidesorter { namespace controller {
-
-class CurrentSlideManager;
-class PageSelector;
-
-/** The SelectionCommand stores a list of pages that it will select on its
- execution. Furthermore it will make a page the current page. Note that
- internally pages are stored with pointers because this command is designed
- to be executed after model changes where page indices may change but
- page object identities remain.
-*/
-class SelectionCommand
- : public Command
-{
-public:
- /** Create a new command object that will on its exection use the given
- PageSelector to select a set of pages.
- */
- SelectionCommand (
- PageSelector& rSelector,
- const ::boost::shared_ptr<controller::CurrentSlideManager>& rpCurrentSlideManager,
- const model::SlideSorterModel& rModel);
-
- /** Remember the specified page to be selected when this command is
- executed.
- */
- void AddSlide (sal_uInt16 nPageIndex);
-
- /** Execute the command and select the pages added by previous calls to
- AddPages() and AddPage().
- */
- virtual void operator() (void);
-
-private:
- /// The page selector is used to select pages and set the current page.
- PageSelector& mrPageSelector;
- /// Used for setting the current slide.
- ::boost::shared_ptr<controller::CurrentSlideManager> mpCurrentSlideManager;
- /// The model is used to translate page indices into page pointers.
- const model::SlideSorterModel& mrModel;
- /// The list of pages to be selected when the command is executed.
- typedef ::std::vector<sal_Int32> PageList;
- PageList maPagesToSelect;
- /** The page that will be made the current page when the command is
- executed.
- */
- sal_Int32 mnCurrentPageIndex;
-};
-
-} } } // end of namespace sd::slidesorter::controller
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sd/source/ui/slidesorter/controller/SlsSelectionFunction.cxx b/sd/source/ui/slidesorter/controller/SlsSelectionFunction.cxx
index c52581f990a8..03d5c1610f6e 100644
--- a/sd/source/ui/slidesorter/controller/SlsSelectionFunction.cxx
+++ b/sd/source/ui/slidesorter/controller/SlsSelectionFunction.cxx
@@ -146,8 +146,6 @@ public:
const KeyEvent& rEvent,
SlideSorter& rSlideSorter);
- void SetDragMode (const InsertionIndicatorHandler::Mode eMode);
-
private:
/** Compute a numerical code that describes a mouse event and that can
be used for fast look up of the appropriate reaction.
@@ -794,15 +792,6 @@ void SelectionFunction::MouseDragged (
-void SelectionFunction::ProcessKeyEvent (const KeyEvent& rEvent)
-{
- EventDescriptor aEventDescriptor (rEvent, mrSlideSorter);
- ProcessEvent(aEventDescriptor);
-}
-
-
-
-
void SelectionFunction::ProcessEvent (EventDescriptor& rDescriptor)
{
// The call to ProcessEvent may switch to another mode handler.
@@ -1018,14 +1007,6 @@ SelectionFunction::EventDescriptor::EventDescriptor (
-void SelectionFunction::EventDescriptor::SetDragMode (const InsertionIndicatorHandler::Mode eMode)
-{
- meDragMode = eMode;
-}
-
-
-
-
sal_uInt32 SelectionFunction::EventDescriptor::EncodeMouseEvent (
const MouseEvent& rEvent) const
{
diff --git a/sd/source/ui/slidesorter/controller/SlsSlotManager.cxx b/sd/source/ui/slidesorter/controller/SlsSlotManager.cxx
index 9da4ab39e909..f3a0074b8bfa 100644
--- a/sd/source/ui/slidesorter/controller/SlsSlotManager.cxx
+++ b/sd/source/ui/slidesorter/controller/SlsSlotManager.cxx
@@ -1160,14 +1160,6 @@ void SlotManager::DuplicateSelectedSlides (SfxRequest& rRequest)
_1));
}
-void SlotManager::ExecuteCommandAsynchronously (::std::auto_ptr<Command> pCommand)
-{
- // Ownership of command is (implicitely) transferred to the queue.
- maCommandQueue.push(pCommand.get());
- pCommand.release();
- Application::PostUserEvent(LINK(this,SlotManager,UserEventCallback));
-}
-
IMPL_LINK(SlotManager, UserEventCallback, void*, EMPTYARG)
{
if ( ! maCommandQueue.empty())
diff --git a/sd/source/ui/slidesorter/inc/cache/SlsPageCache.hxx b/sd/source/ui/slidesorter/inc/cache/SlsPageCache.hxx
index 026235861e66..30396711ecb2 100644
--- a/sd/source/ui/slidesorter/inc/cache/SlsPageCache.hxx
+++ b/sd/source/ui/slidesorter/inc/cache/SlsPageCache.hxx
@@ -145,12 +145,6 @@ public:
const CacheKey aKey,
const bool bRequestPreview);
- /** Call this method when a view-object-contact object is being deleted
- and does not need (a) its current bitmap in the cache and (b) a
- requested new bitmap.
- */
- void ReleasePreviewBitmap (const CacheKey aKey);
-
/** Call this method when all preview bitmaps have to be generated anew.
This is the case when the size of the page objects on the screen has
changed or when the model has changed.
diff --git a/sd/source/ui/slidesorter/inc/controller/SlideSorterController.hxx b/sd/source/ui/slidesorter/inc/controller/SlideSorterController.hxx
index 4e7628450ca3..6ea8d8b94c39 100644
--- a/sd/source/ui/slidesorter/inc/controller/SlideSorterController.hxx
+++ b/sd/source/ui/slidesorter/inc/controller/SlideSorterController.hxx
@@ -224,11 +224,6 @@ public:
*/
void PageNameHasChanged (int nPageIndex, const String& rsOldName);
- /** Return whether a context menu has been opened by the called
- SlideSorterController object and is still open.
- */
- bool IsContextMenuOpen (void) const;
-
/** Provide the set of pages to be displayed in the slide sorter. The
GetDocumentSlides() method can be found only in the SlideSorterModel.
*/
diff --git a/sd/source/ui/slidesorter/inc/controller/SlsAnimationFunction.hxx b/sd/source/ui/slidesorter/inc/controller/SlsAnimationFunction.hxx
index fa0635990a47..c93ec65c6068 100644
--- a/sd/source/ui/slidesorter/inc/controller/SlsAnimationFunction.hxx
+++ b/sd/source/ui/slidesorter/inc/controller/SlsAnimationFunction.hxx
@@ -56,53 +56,10 @@ public:
*/
static double Linear (const double nTime);
- /** Acceleration function that maps [0,1] to [0,1]. Speed starts fast
- and ends slow following the sine function.
- */
- static double FastInSlowOut_Sine (const double nTime);
-
- /** Acceleration function that maps [0,1] to [0,1]. Speed starts fast
- and ends slow following the square root function.
- */
- static double FastInSlowOut_Root (const double nTime);
-
- /** Acceleration function that maps [0,1] to [0,0]. Speed starts slow,
- rises, drops and ends slow following the sine function.
- */
- static double SlowInSlowOut_0to0_Sine (const double nTime);
-
- /** Acceleration function that maps [0,1] to [0,0]. Speed starts slow,
- rises and drops several times and ends slow following multiple
- cycles of the the sine function.
- */
- static double Vibrate_Sine (const double nTime);
-
- /** Scale point linearly.
- */
- static Point ScalePoint (const Point& rPoint, const double nTime);
-
/** Blend two points together according to the given weight.
*/
static double Blend (const double nStartValue, const double nEndValue, const double nWeight);
- /** Apply a gradual visual state change. The kind of change, i.e. the
- previous and the new states are expected to be already set. This
- method only adjusts the blending of the visual representation from
- one state to the other.
- */
- static void ApplyVisualStateChange (
- const model::SharedPageDescriptor& rpDescriptor,
- view::SlideSorterView& rView,
- const double nTime);
-
- /** Apply a gradual change of a previously set offset to the location of
- a page object.
- */
- static void ApplyLocationOffsetChange (
- const model::SharedPageDescriptor& rpDescriptor,
- view::SlideSorterView& rView,
- const Point aLocationOffset);
-
/** Apply a gradual change the alpha value from the old value to a
new value (set prior to this call.)
*/
@@ -120,15 +77,6 @@ class AnimationBezierFunction
{
public:
/** Create a cubic bezier curve whose start and end points are given
- implicitly as P0=(0,0) and P3=(1,1).
- */
- AnimationBezierFunction (
- const double nX1,
- const double nY1,
- const double nX2,
- const double nY2);
-
- /** Create a cubic bezier curve whose start and end points are given
implicitly as P0=(0,0) and P3=(1,1). The second control point is
implicitly given as P2=(1-nY1,1-nX1).
*/
diff --git a/sd/source/ui/slidesorter/inc/controller/SlsAnimator.hxx b/sd/source/ui/slidesorter/inc/controller/SlsAnimator.hxx
index e06bc6ca6708..af18213f0b4e 100644
--- a/sd/source/ui/slidesorter/inc/controller/SlsAnimator.hxx
+++ b/sd/source/ui/slidesorter/inc/controller/SlsAnimator.hxx
@@ -88,10 +88,6 @@ public:
const sal_Int32 nDuration,
const FinishFunctor& rFinishFunctor = FinishFunctor());
- AnimationId AddInfiniteAnimation (
- const AnimationFunctor& rAnimation,
- const double nDelta);
-
/** Abort and remove an animation. In order to reduce the bookkeeping
on the caller side, it is OK to call this method with an animation
function that is not currently being animated. Such a call is
diff --git a/sd/source/ui/slidesorter/inc/controller/SlsClipboard.hxx b/sd/source/ui/slidesorter/inc/controller/SlsClipboard.hxx
index fc97dd32829a..7bd302eb52ad 100644
--- a/sd/source/ui/slidesorter/inc/controller/SlsClipboard.hxx
+++ b/sd/source/ui/slidesorter/inc/controller/SlsClipboard.hxx
@@ -144,11 +144,6 @@ private:
::Window* pWindow,
bool bDrag);
- /** Select the pages stored in the maPagesToSelect member. The list in
- the member is cleared afterwards.
- */
- void SelectPages (void);
-
/** Determine the position of where to insert the pages in the current
transferable of the sd module.
@param pWindow
diff --git a/sd/source/ui/slidesorter/inc/controller/SlsPageSelector.hxx b/sd/source/ui/slidesorter/inc/controller/SlsPageSelector.hxx
index 2aa7ee13f873..42ab15126607 100644
--- a/sd/source/ui/slidesorter/inc/controller/SlsPageSelector.hxx
+++ b/sd/source/ui/slidesorter/inc/controller/SlsPageSelector.hxx
@@ -111,9 +111,6 @@ public:
int nPageIndex,
const bool bUpdateCurrentPage = true);
void DeselectPage (
- const SdPage* pPage,
- const bool bUpdateCurrentPage = true);
- void DeselectPage (
const model::SharedPageDescriptor& rpDescriptor,
const bool bUpdateCurrentPage = true);
diff --git a/sd/source/ui/slidesorter/inc/controller/SlsProperties.hxx b/sd/source/ui/slidesorter/inc/controller/SlsProperties.hxx
index 2e9a183c36d4..990d66afdb4e 100644
--- a/sd/source/ui/slidesorter/inc/controller/SlsProperties.hxx
+++ b/sd/source/ui/slidesorter/inc/controller/SlsProperties.hxx
@@ -119,7 +119,6 @@ public:
area or the whole page object area.
*/
bool IsOnlyPreviewTriggersMouseOver (void) const;
- void SetOnlyPreviewTriggersMouseOver (const bool bFlag);
bool IsHighContrastModeActive (void) const;
diff --git a/sd/source/ui/slidesorter/inc/controller/SlsScrollBarManager.hxx b/sd/source/ui/slidesorter/inc/controller/SlsScrollBarManager.hxx
index 2894650da197..2ce505727fb8 100644
--- a/sd/source/ui/slidesorter/inc/controller/SlsScrollBarManager.hxx
+++ b/sd/source/ui/slidesorter/inc/controller/SlsScrollBarManager.hxx
@@ -139,10 +139,6 @@ public:
*/
void SetTopLeft (const Point aNewTopLeft);
- sal_Int32 GetTop (void) const;
-
- sal_Int32 GetLeft (void) const;
-
/** Return the width of the vertical scroll bar, which--when
shown--should be fixed in contrast to its height.
@return
diff --git a/sd/source/ui/slidesorter/inc/controller/SlsSelectionFunction.hxx b/sd/source/ui/slidesorter/inc/controller/SlsSelectionFunction.hxx
index 95800d10f176..9d77f1a89cef 100644
--- a/sd/source/ui/slidesorter/inc/controller/SlsSelectionFunction.hxx
+++ b/sd/source/ui/slidesorter/inc/controller/SlsSelectionFunction.hxx
@@ -182,7 +182,6 @@ private:
void GotoPage (int nIndex);
void ProcessMouseEvent (sal_uInt32 nEventType, const MouseEvent& rEvent);
- void ProcessKeyEvent (const KeyEvent& rEvent);
// What follows are a couple of helper methods that are used by
// ProcessMouseEvent().
diff --git a/sd/source/ui/slidesorter/inc/controller/SlsSlotManager.hxx b/sd/source/ui/slidesorter/inc/controller/SlsSlotManager.hxx
index c21df03ad6d4..5e5ad8a72178 100644
--- a/sd/source/ui/slidesorter/inc/controller/SlsSlotManager.hxx
+++ b/sd/source/ui/slidesorter/inc/controller/SlsSlotManager.hxx
@@ -71,8 +71,6 @@ public:
void ExecCtrl (SfxRequest& rRequest);
void GetAttrState (SfxItemSet& rSet);
- void ExecuteCommandAsynchronously (::std::auto_ptr<Command> pCommand);
-
/** Exclude or include one slide or all selected slides.
@param rpDescriptor
When the pointer is empty then apply the new state to all
diff --git a/sd/source/ui/slidesorter/inc/model/SlsVisualState.hxx b/sd/source/ui/slidesorter/inc/model/SlsVisualState.hxx
index 02187f8d9e52..bfc05fdb7ed6 100644
--- a/sd/source/ui/slidesorter/inc/model/SlsVisualState.hxx
+++ b/sd/source/ui/slidesorter/inc/model/SlsVisualState.hxx
@@ -54,23 +54,15 @@ public:
VisualState (const sal_Int32 nPageId);
~VisualState (void);
- State GetCurrentVisualState (void) const;
- State GetOldVisualState (void) const;
void SetVisualState (const State eState);
- double GetVisualStateBlend (void) const;
void SetVisualStateBlend (const double nBlend);
void UpdateVisualState (const PageDescriptor& rDescriptor);
void SetMouseOverState (const bool bIsMouseOver);
- sal_Int32 GetStateAnimationId (void) const;
- void SetStateAnimationId (const sal_Int32 nAnimationId);
-
Point GetLocationOffset (void) const;
bool SetLocationOffset (const Point& rPoint);
- sal_Int32 GetLocationAnimationId (void) const;
- void SetLocationAnimationId (const sal_Int32 nAnimationId);
double GetButtonAlpha (void) const;
void SetButtonAlpha (const double nAlpha);
diff --git a/sd/source/ui/slidesorter/inc/view/SlideSorterView.hxx b/sd/source/ui/slidesorter/inc/view/SlideSorterView.hxx
index 099f6544f861..4229665bc0f5 100644
--- a/sd/source/ui/slidesorter/inc/view/SlideSorterView.hxx
+++ b/sd/source/ui/slidesorter/inc/view/SlideSorterView.hxx
@@ -117,8 +117,6 @@ public:
virtual void ModelHasChanged (void);
- void LocalModelHasChanged(void);
-
/** This method is typically called before a model change takes place.
All references to model data are released. PostModelChange() has to
be called to complete the handling of the model change. When the
@@ -244,7 +242,6 @@ public:
class DrawLock
{
public:
- DrawLock (view::SlideSorterView& rView, const SharedSdWindow& rpWindow);
DrawLock (SlideSorter& rSlideSorter);
~DrawLock (void);
/** When the DrawLock is disposed then it will not request a repaint
diff --git a/sd/source/ui/slidesorter/inc/view/SlsButtonBar.hxx b/sd/source/ui/slidesorter/inc/view/SlsButtonBar.hxx
index 43b04215914a..6d8ce622b7bc 100644
--- a/sd/source/ui/slidesorter/inc/view/SlsButtonBar.hxx
+++ b/sd/source/ui/slidesorter/inc/view/SlsButtonBar.hxx
@@ -71,29 +71,6 @@ public:
void ResetPage (void);
- /** Return the number of buttons that are to be displayed in page
- objects which the mouse hovers over.
- @param bIsExcluded
- When this flag is <TRUE/> then return the number of
- buttons that is to be displayed for pages that are
- excluded from the slide show.
- */
- sal_Int32 GetButtonCount (const bool bIsExcluded) const;
-
- /** Return the specified button.
- @param nIndex
- Valid values lie in the range [0,GetButtonCount()).
- @param bIsExcluded
- When this flag is <TRUE/> then return a button that is to
- be displayed for pages that are excluded from the slide
- show.
- @return
- Returns an empty pointer when the given index is not valid.
- */
- ::boost::shared_ptr<Button> GetButton (
- const bool bIsExcluded,
- const sal_Int32 nIndex) const;
-
bool IsMouseOverBar (void) const;
/** Paint the specified page object. When this is not the same as the
@@ -106,8 +83,6 @@ public:
bool IsMouseOverButton (void) const;
- void RequestLayout (void);
-
/** Return the help text for the button under the mouse.
@return
When the mouse is not over a button then an empty string
@@ -221,7 +196,6 @@ public:
then <TRUE/> is returned.
*/
bool SetState (const State eState);
- State GetState (void) const;
virtual void Place (const Rectangle aButtonBarBox) = 0;
virtual void Paint (
@@ -244,7 +218,6 @@ public:
void SetActiveState (const bool bIsActive);
bool IsActive (void) const;
void SetIconSize (const IconSize eIconSize);
- IconSize GetIconSize (void) const;
/** By default a button is always enabled. Override to change this.
*/
virtual bool IsEnabled (void) const;
@@ -261,29 +234,6 @@ protected:
-class TextButton : public Button
-{
-public:
- TextButton (
- SlideSorter& rSlideSorter,
- const ::rtl::OUString& rsText,
- const ::rtl::OUString& rsHelpText);
-
- virtual void Place (const Rectangle aButtonBarBox);
- virtual void Paint (
- OutputDevice& rDevice,
- const Point aOffset,
- const double nAlpha,
- const ::boost::shared_ptr<Theme>& rpTheme) const;
- virtual Size GetSize (void) const;
- virtual Size GetSize (const IconSize eIconSize) const;
-
-private:
- const ::rtl::OUString msText;
-};
-
-
-
class ImageButton : public Button
{
public:
diff --git a/sd/source/ui/slidesorter/inc/view/SlsInsertionIndicatorOverlay.hxx b/sd/source/ui/slidesorter/inc/view/SlsInsertionIndicatorOverlay.hxx
index a7d6d8780f32..8bac58a0e767 100644
--- a/sd/source/ui/slidesorter/inc/view/SlsInsertionIndicatorOverlay.hxx
+++ b/sd/source/ui/slidesorter/inc/view/SlsInsertionIndicatorOverlay.hxx
@@ -104,9 +104,6 @@ private:
::boost::scoped_ptr<FramePainter> mpShadowPainter;
void SetPositionAndSize (const Rectangle& rBoundingBox);
- void SelectRepresentatives (
- model::PageEnumeration& rSelection,
- ::std::vector<model::SharedPageDescriptor>& rDescriptors) const;
Point PaintRepresentatives (
OutputDevice& rContent,
const Size aPreviewSize,
diff --git a/sd/source/ui/slidesorter/inc/view/SlsLayouter.hxx b/sd/source/ui/slidesorter/inc/view/SlsLayouter.hxx
index 997b8159db0b..342c3d5f23c9 100644
--- a/sd/source/ui/slidesorter/inc/view/SlsLayouter.hxx
+++ b/sd/source/ui/slidesorter/inc/view/SlsLayouter.hxx
@@ -83,26 +83,6 @@ public:
~Layouter (void);
::boost::shared_ptr<PageObjectLayouter> GetPageObjectLayouter (void) const;
- /** Set the horizontal and vertical borders in pixel coordinates between
- the enclosing window and page objects. The borders may be painted
- larger then the given values when the space for the insertion marker
- is not sufficient.
- @param nLeftBorder
- Use a negative value to indicate that the left border size
- shall not be modified. A value of 10 is the default.
- @param nRightBorder
- Use a negative value to indicate that the right border size
- shall not be modified. A value of 10 is the default.
- @param nTopBorder
- Use a negative value to indicate that the top border size
- shall not be modified. A value of 10 is the default.
- @param nBottomBorder
- Use a negative value to indicate that the bottom border size
- shall not be modified. A value of 10 is the default.
- */
- void SetBorders (sal_Int32 nLeftBorder, sal_Int32 nRightBorder,
- sal_Int32 nTopBorder, sal_Int32 nBottomBorder);
-
/** Set the interval of valid column counts. When nMinimalColumnCount
<= nMaximalColumnCount is not fullfilled then the call is ignored.
@param nMinimalColumnCount
@@ -142,19 +122,12 @@ public:
/** Change the zoom factor. This does not change the general layout
(number of columns).
*/
- void _SetZoom (double nZoomFactor);
void _SetZoom (Fraction nZoomFactor);
/** Return the number of columns.
*/
sal_Int32 GetColumnCount (void) const;
- sal_Int32 GetRowCount (void) const;
-
- sal_Int32 GetRow (const sal_Int32 nIndex) const;
-
- sal_Int32 GetColumn (const sal_Int32 nIndex) const;
-
sal_Int32 GetIndex (const sal_Int32 nRow, const sal_Int32 nColumn) const;
/** Return the scale factor that can be set at the map mode of the
diff --git a/sd/source/ui/slidesorter/inc/view/SlsTheme.hxx b/sd/source/ui/slidesorter/inc/view/SlsTheme.hxx
index fe5a437672dd..a14863f48ecd 100644
--- a/sd/source/ui/slidesorter/inc/view/SlsTheme.hxx
+++ b/sd/source/ui/slidesorter/inc/view/SlsTheme.hxx
@@ -88,7 +88,6 @@ public:
_ColorType_Size_
};
ColorData GetColor (const ColorType eType);
- void SetColor (const ColorType eType, const ColorData aColorData);
enum GradientColorType {
Gradient_NormalPage,
@@ -110,9 +109,6 @@ public:
ColorData GetGradientColor (
const GradientColorType eType,
const GradientColorClass eClass);
- sal_Int32 GetGradientOffset (
- const GradientColorType eType,
- const GradientColorClass eClass);
void SetGradient (
const GradientColorType eType,
const ColorData aBaseColor,
@@ -122,10 +118,6 @@ public:
const sal_Int32 nFillEndOffset,
const sal_Int32 nBorderStartOffset,
const sal_Int32 nBorderEndOffset);
- sal_Int32 GetGradientSaturationOverride (const GradientColorType eType);
- sal_Int32 GetGradientBrightnessOverride (const GradientColorType eType);
- void SetGradientSaturationOverride (const GradientColorType eType, const sal_Int32 nValue);
- void SetGradientBrightnessOverride (const GradientColorType eType, const sal_Int32 nValue);
enum IconType
{
@@ -181,7 +173,6 @@ public:
_IntegerValueType_Size_
};
sal_Int32 GetIntegerValue (const IntegerValueType eType) const;
- void SetIntegerValue (const IntegerValueType eType, const sal_Int32 nValue);
enum StringType
{
diff --git a/sd/source/ui/slidesorter/inc/view/SlsToolTip.hxx b/sd/source/ui/slidesorter/inc/view/SlsToolTip.hxx
index 1cef1fa117ef..a296568e844a 100644
--- a/sd/source/ui/slidesorter/inc/view/SlsToolTip.hxx
+++ b/sd/source/ui/slidesorter/inc/view/SlsToolTip.hxx
@@ -54,10 +54,6 @@ public:
*/
void SetPage (const model::SharedPageDescriptor& rpPage);
- /** Set and show the default help text.
- */
- void ShowDefaultHelpText (const ::rtl::OUString& rsHelpText);
-
/** Show a previously set default help text.
*/
void ShowDefaultHelpText (void);
diff --git a/sd/source/ui/slidesorter/model/SlsVisualState.cxx b/sd/source/ui/slidesorter/model/SlsVisualState.cxx
index 84a483712f2c..fd84d18cd439 100644
--- a/sd/source/ui/slidesorter/model/SlsVisualState.cxx
+++ b/sd/source/ui/slidesorter/model/SlsVisualState.cxx
@@ -64,22 +64,6 @@ VisualState::~VisualState (void)
-VisualState::State VisualState::GetCurrentVisualState (void) const
-{
- return meCurrentVisualState;
-}
-
-
-
-
-VisualState::State VisualState::GetOldVisualState (void) const
-{
- return meOldVisualState;
-}
-
-
-
-
void VisualState::SetVisualState (const State eState)
{
meOldVisualState = meCurrentVisualState;
@@ -90,14 +74,6 @@ void VisualState::SetVisualState (const State eState)
-double VisualState::GetVisualStateBlend (void) const
-{
- return mnVisualStateBlend;
-}
-
-
-
-
void VisualState::SetVisualStateBlend (const double nBlend)
{
mnVisualStateBlend = nBlend;
@@ -134,22 +110,6 @@ void VisualState::SetMouseOverState (const bool bIsMouseOver)
-sal_Int32 VisualState::GetStateAnimationId (void) const
-{
- return mnStateAnimationId;
-}
-
-
-
-
-void VisualState::SetStateAnimationId (const sal_Int32 nAnimationId)
-{
- mnStateAnimationId = nAnimationId;
-}
-
-
-
-
Point VisualState::GetLocationOffset (void) const
{
return maLocationOffset;
@@ -172,22 +132,6 @@ bool VisualState::SetLocationOffset (const Point& rOffset)
-sal_Int32 VisualState::GetLocationAnimationId (void) const
-{
- return mnLocationAnimationId;
-}
-
-
-
-
-void VisualState::SetLocationAnimationId (const sal_Int32 nAnimationId)
-{
- mnLocationAnimationId = nAnimationId;
-}
-
-
-
-
double VisualState::GetButtonAlpha (void) const
{
return mnButtonAlpha;
diff --git a/sd/source/ui/slidesorter/view/SlideSorterView.cxx b/sd/source/ui/slidesorter/view/SlideSorterView.cxx
index 8bbe698205a6..4d043cb26e7f 100644
--- a/sd/source/ui/slidesorter/view/SlideSorterView.cxx
+++ b/sd/source/ui/slidesorter/view/SlideSorterView.cxx
@@ -281,17 +281,6 @@ void SlideSorterView::ModelHasChanged (void)
-void SlideSorterView::LocalModelHasChanged(void)
-{
- mbModelChangedWhileModifyEnabled = false;
-
- // First call our base class.
- View::ModelHasChanged ();
-}
-
-
-
-
void SlideSorterView::PreModelChange (void)
{
// Reset the slide under the mouse. It will be re-set in PostModelChange().
@@ -1083,20 +1072,6 @@ bool SlideSorterView::SetState (
//===== SlideSorterView::DrawLock =============================================
-SlideSorterView::DrawLock::DrawLock (
- view::SlideSorterView& rView,
- const SharedSdWindow& rpWindow)
- : mrView(rView),
- mpWindow(rpWindow)
-{
- if (mrView.mnLockRedrawSmph == 0)
- mrView.maRedrawRegion.SetEmpty();
- ++mrView.mnLockRedrawSmph;
-}
-
-
-
-
SlideSorterView::DrawLock::DrawLock (SlideSorter& rSlideSorter)
: mrView(rSlideSorter.GetView()),
mpWindow(rSlideSorter.GetContentWindow())
diff --git a/sd/source/ui/slidesorter/view/SlsButtonBar.cxx b/sd/source/ui/slidesorter/view/SlsButtonBar.cxx
index 87c384f52c7f..a60fd918edeb 100644
--- a/sd/source/ui/slidesorter/view/SlsButtonBar.cxx
+++ b/sd/source/ui/slidesorter/view/SlsButtonBar.cxx
@@ -347,37 +347,6 @@ bool ButtonBar::SetPage (const model::SharedPageDescriptor& rpDescriptor)
-sal_Int32 ButtonBar::GetButtonCount (const bool bIsExcluded) const
-{
- if (bIsExcluded)
- return maExcludedButtons.size();
- else
- return maRegularButtons.size();
-}
-
-
-
-
-::boost::shared_ptr<Button> ButtonBar::GetButton (
- const bool bIsExcluded,
- const sal_Int32 nIndex) const
-{
- const ::std::vector<boost::shared_ptr<Button> >& rButtons (bIsExcluded
- ? maExcludedButtons
- : maRegularButtons);
-
- if (nIndex<0 || sal_uInt32(nIndex)>=rButtons.size())
- {
- OSL_ASSERT(nIndex<0 || sal_uInt32(nIndex)>=rButtons.size());
- return ::boost::shared_ptr<Button>();
- }
- else
- return rButtons[sal_uInt32(nIndex)];
-}
-
-
-
-
SharedButton ButtonBar::GetButtonAt (const Point aModelLocation)
{
if (IsMouseOverBar(aModelLocation))
@@ -520,14 +489,6 @@ bool ButtonBar::IsMouseOverBar (const Point aModelLocation) const
-void ButtonBar::RequestLayout (void)
-{
- maPageObjectSize = Size(0,0);
-}
-
-
-
-
void ButtonBar::LayoutButtons (const Size aPageObjectSize)
{
if (maPageObjectSize != aPageObjectSize)
@@ -1102,14 +1063,6 @@ bool Button::SetState (const State eState)
-Button::State Button::GetState (void) const
-{
- return meState;
-}
-
-
-
-
Rectangle Button::GetBoundingBox (void) const
{
if (mbIsActive)
@@ -1164,14 +1117,6 @@ void Button::SetIconSize (const IconSize eIconSize)
-Button::IconSize Button::GetIconSize (void) const
-{
- return meIconSize;
-}
-
-
-
-
bool Button::IsEnabled (void) const
{
return true;
@@ -1180,69 +1125,6 @@ bool Button::IsEnabled (void) const
-//===== TextButton ============================================================
-
-TextButton::TextButton (
- SlideSorter& rSlideSorter,
- const ::rtl::OUString& rsText,
- const ::rtl::OUString& rsHelpText)
- : Button(rSlideSorter, rsHelpText),
- msText(rsText)
-{
-}
-
-
-
-
-void TextButton::Place (const Rectangle aButtonBarBox)
-{
- maBoundingBox = aButtonBarBox;
- SetActiveState(true);
-}
-
-
-
-
-void TextButton::Paint (
- OutputDevice& rDevice,
- const Point aOffset,
- const double nAlpha,
- const ::boost::shared_ptr<Theme>& rpTheme) const
-{
- (void)nAlpha;
-
- if (mbIsActive)
- {
- // Paint text over the button background.
- if (meState == State_Normal)
- rDevice.SetTextColor(rpTheme->GetColor(Theme::Color_ButtonText));
- else
- rDevice.SetTextColor(rpTheme->GetColor(Theme::Color_ButtonTextHover));
- Rectangle aBox (maBoundingBox);
- aBox += aOffset;
- rDevice.DrawText(aBox, msText, TEXT_DRAW_CENTER | TEXT_DRAW_VCENTER);
- }
-}
-
-
-
-
-Size TextButton::GetSize (void) const
-{
- return Size();
-}
-
-
-
-
-Size TextButton::GetSize (const Button::IconSize) const
-{
- return Size();
-}
-
-
-
-
//===== ImageButon ============================================================
ImageButton::ImageButton (
diff --git a/sd/source/ui/slidesorter/view/SlsInsertionIndicatorOverlay.cxx b/sd/source/ui/slidesorter/view/SlsInsertionIndicatorOverlay.cxx
index c5a41129a0a1..d41c33fd23b0 100644
--- a/sd/source/ui/slidesorter/view/SlsInsertionIndicatorOverlay.cxx
+++ b/sd/source/ui/slidesorter/view/SlsInsertionIndicatorOverlay.cxx
@@ -177,22 +177,6 @@ void InsertionIndicatorOverlay::Create (
-void InsertionIndicatorOverlay::SelectRepresentatives (
- model::PageEnumeration& rSelection,
- ::std::vector<model::SharedPageDescriptor>& rDescriptors) const
-{
- sal_Int32 nCount (0);
- while (rSelection.HasMoreElements())
- {
- if (nCount++ >= 3)
- break;
- rDescriptors.push_back(rSelection.GetNextElement());
- }
-}
-
-
-
-
Point InsertionIndicatorOverlay::PaintRepresentatives (
OutputDevice& rContent,
const Size aPreviewSize,
diff --git a/sd/source/ui/slidesorter/view/SlsLayeredDevice.cxx b/sd/source/ui/slidesorter/view/SlsLayeredDevice.cxx
index e0976f6513e5..242aa9a9c7e6 100644
--- a/sd/source/ui/slidesorter/view/SlsLayeredDevice.cxx
+++ b/sd/source/ui/slidesorter/view/SlsLayeredDevice.cxx
@@ -261,16 +261,6 @@ void LayeredDevice::RemovePainter (
-bool LayeredDevice::HasPainter (const sal_Int32 nLayer)
-{
- return nLayer>=0
- && sal_uInt32(nLayer)<mpLayers->size()
- && (*mpLayers)[nLayer]->HasPainter();
-}
-
-
-
-
void LayeredDevice::Repaint (const Region& rRepaintRegion)
{
// Validate the contents of all layers (that have their own devices.)
diff --git a/sd/source/ui/slidesorter/view/SlsLayeredDevice.hxx b/sd/source/ui/slidesorter/view/SlsLayeredDevice.hxx
index c0d4b9fb1996..274a7bea0e1b 100644
--- a/sd/source/ui/slidesorter/view/SlsLayeredDevice.hxx
+++ b/sd/source/ui/slidesorter/view/SlsLayeredDevice.hxx
@@ -74,8 +74,6 @@ public:
const SharedILayerPainter& rPainter,
const sal_Int32 nLayer);
- bool HasPainter (const sal_Int32 nLayer);
-
bool HandleMapModeChange (void);
void Repaint (const Region& rRepaintRegion);
diff --git a/sd/source/ui/slidesorter/view/SlsLayouter.cxx b/sd/source/ui/slidesorter/view/SlsLayouter.cxx
index 66f22097993a..990e8c622894 100644
--- a/sd/source/ui/slidesorter/view/SlsLayouter.cxx
+++ b/sd/source/ui/slidesorter/view/SlsLayouter.cxx
@@ -271,9 +271,6 @@ protected:
class HorizontalImplementation : public Layouter::Implementation
{
public:
- HorizontalImplementation (
- const SharedSdWindow& rpWindow,
- const ::boost::shared_ptr<view::Theme>& rpTheme);
HorizontalImplementation (const Implementation& rImplementation);
virtual Layouter::Orientation GetOrientation (void) const;
@@ -348,25 +345,6 @@ Layouter::~Layouter (void)
-void Layouter::SetBorders (
- sal_Int32 nLeftBorder,
- sal_Int32 nRightBorder,
- sal_Int32 nTopBorder,
- sal_Int32 nBottomBorder)
-{
- if (nLeftBorder >= 0)
- mpImplementation->mnRequestedLeftBorder = nLeftBorder;
- if (nRightBorder >= 0)
- mpImplementation->mnRequestedRightBorder = nRightBorder;
- if (nTopBorder >= 0)
- mpImplementation->mnRequestedTopBorder = nTopBorder;
- if (nBottomBorder >= 0)
- mpImplementation->mnRequestedBottomBorder = nBottomBorder;
-}
-
-
-
-
void Layouter::SetColumnCount (
sal_Int32 nMinimalColumnCount,
sal_Int32 nMaximalColumnCount)
@@ -398,14 +376,6 @@ bool Layouter::Rearrange (
-void Layouter::_SetZoom (double nZoomFactor)
-{
- _SetZoom(Fraction(nZoomFactor));
-}
-
-
-
-
void Layouter::_SetZoom (Fraction nZoomFactor)
{
OSL_ASSERT(mpWindow);
@@ -427,30 +397,6 @@ sal_Int32 Layouter::GetColumnCount (void) const
-sal_Int32 Layouter::GetRowCount (void) const
-{
- return mpImplementation->mnRowCount;
-}
-
-
-
-
-sal_Int32 Layouter::GetRow (const sal_Int32 nIndex) const
-{
- return nIndex / mpImplementation->mnColumnCount;
-}
-
-
-
-
-sal_Int32 Layouter::GetColumn (const sal_Int32 nIndex) const
-{
- return nIndex % mpImplementation->mnColumnCount;
-}
-
-
-
-
sal_Int32 Layouter::GetIndex (const sal_Int32 nRow, const sal_Int32 nColumn) const
{
return mpImplementation->GetIndex(nRow,nColumn,true);
@@ -1204,16 +1150,6 @@ void Layouter::Implementation::CalculateVerticalLogicalInsertPosition (
//===== HorizontalImplementation ================================================
-HorizontalImplementation::HorizontalImplementation (
- const SharedSdWindow& rpWindow,
- const ::boost::shared_ptr<view::Theme>& rpTheme)
- : Implementation(rpWindow, rpTheme)
-{
-}
-
-
-
-
HorizontalImplementation::HorizontalImplementation (const Implementation& rImplementation)
: Implementation(rImplementation)
{
@@ -1283,16 +1219,6 @@ void HorizontalImplementation::CalculateLogicalInsertPosition (
//===== VerticalImplementation ================================================
-VerticalImplementation::VerticalImplementation (
- const SharedSdWindow& rpWindow,
- const ::boost::shared_ptr<view::Theme>& rpTheme)
- : Implementation(rpWindow, rpTheme)
-{
-}
-
-
-
-
VerticalImplementation::VerticalImplementation (const Implementation& rImplementation)
: Implementation(rImplementation)
{
diff --git a/sd/source/ui/slidesorter/view/SlsTheme.cxx b/sd/source/ui/slidesorter/view/SlsTheme.cxx
index 0fdb8b48c65a..eab9fe958740 100644
--- a/sd/source/ui/slidesorter/view/SlsTheme.cxx
+++ b/sd/source/ui/slidesorter/view/SlsTheme.cxx
@@ -313,17 +313,6 @@ ColorData Theme::GetColor (const ColorType eType)
-void Theme::SetColor (
- const ColorType eType,
- const ColorData aData)
-{
- if (eType>=0 && sal_uInt32(eType)<maColor.size())
- maColor[eType] = aData;
-}
-
-
-
-
ColorData Theme::GetGradientColor (
const GradientColorType eType,
const GradientColorClass eClass)
@@ -344,26 +333,6 @@ ColorData Theme::GetGradientColor (
-sal_Int32 Theme::GetGradientOffset (
- const GradientColorType eType,
- const GradientColorClass eClass)
-{
- GradientDescriptor& rDescriptor (GetGradient(eType));
-
- switch (eClass)
- {
- case Border1: return rDescriptor.mnBorderOffset1;
- case Border2: return rDescriptor.mnBorderOffset2;
- case Fill1: return rDescriptor.mnFillOffset1;
- case Fill2: return rDescriptor.mnFillOffset2;
- default: OSL_ASSERT(false); // fall through
- case Base: return 0;
- }
-}
-
-
-
-
void Theme::SetGradient (
const GradientColorType eType,
const ColorData aBaseColor,
@@ -398,57 +367,6 @@ void Theme::SetGradient (
-sal_Int32 Theme::GetGradientSaturationOverride (const GradientColorType eType)
-{
- GradientDescriptor& rGradient (GetGradient(eType));
- return rGradient.mnSaturationOverride;
-}
-
-
-
-
-sal_Int32 Theme::GetGradientBrightnessOverride (const GradientColorType eType)
-{
- GradientDescriptor& rGradient (GetGradient(eType));
- return rGradient.mnBrightnessOverride;
-}
-
-
-
-
-void Theme::SetGradientSaturationOverride (const GradientColorType eType, const sal_Int32 nValue)
-{
- GradientDescriptor& rGradient (GetGradient(eType));
- SetGradient(
- eType,
- rGradient.maBaseColor,
- nValue,
- rGradient.mnBrightnessOverride,
- rGradient.mnFillOffset1,
- rGradient.mnFillOffset2,
- rGradient.mnBorderOffset1,
- rGradient.mnBorderOffset2);
-}
-
-
-
-
-void Theme::SetGradientBrightnessOverride (const GradientColorType eType, const sal_Int32 nValue)
-{
- GradientDescriptor& rGradient (GetGradient(eType));
- SetGradient(eType,
- rGradient.maBaseColor,
- rGradient.mnSaturationOverride,
- nValue,
- rGradient.mnFillOffset1,
- rGradient.mnFillOffset2,
- rGradient.mnBorderOffset1,
- rGradient.mnBorderOffset2);
-}
-
-
-
-
const BitmapEx& Theme::GetIcon (const IconType eType)
{
if (eType>=0 && size_t(eType)<maIcons.size())
@@ -477,19 +395,6 @@ sal_Int32 Theme::GetIntegerValue (const IntegerValueType eType) const
-void Theme::SetIntegerValue (const IntegerValueType eType, const sal_Int32 nValue)
-{
- if (eType>=0 && size_t(eType)<maIntegerValues.size())
- maIntegerValues[eType] = nValue;
- else
- {
- OSL_ASSERT(eType>=0 && size_t(eType)<maIntegerValues.size());
- }
-}
-
-
-
-
::rtl::OUString Theme::GetString (const StringType eType) const
{
if (eType>=0 && size_t(eType)<maStrings.size())
diff --git a/sd/source/ui/slidesorter/view/SlsToolTip.cxx b/sd/source/ui/slidesorter/view/SlsToolTip.cxx
index 49b7050b7608..0d4c080016d7 100644
--- a/sd/source/ui/slidesorter/view/SlsToolTip.cxx
+++ b/sd/source/ui/slidesorter/view/SlsToolTip.cxx
@@ -104,22 +104,6 @@ void ToolTip::SetPage (const model::SharedPageDescriptor& rpDescriptor)
-void ToolTip::ShowDefaultHelpText (const ::rtl::OUString& rsHelpText)
-{
- if (msDefaultHelpText != rsHelpText)
- {
- const bool bIsVisible (Hide());
-
- msDefaultHelpText = rsHelpText;
- msCurrentHelpText = rsHelpText;
-
- Show(bIsVisible);
- }
-}
-
-
-
-
void ToolTip::ShowDefaultHelpText (void)
{
if (msCurrentHelpText != msDefaultHelpText)