diff options
Diffstat (limited to 'sd/source/ui/slidesorter/shell/SlideSorter.cxx')
-rw-r--r-- | sd/source/ui/slidesorter/shell/SlideSorter.cxx | 130 |
1 files changed, 0 insertions, 130 deletions
diff --git a/sd/source/ui/slidesorter/shell/SlideSorter.cxx b/sd/source/ui/slidesorter/shell/SlideSorter.cxx index 791f9eb4e691..7d460534b426 100644 --- a/sd/source/ui/slidesorter/shell/SlideSorter.cxx +++ b/sd/source/ui/slidesorter/shell/SlideSorter.cxx @@ -69,9 +69,6 @@ private: }; } - - - //===== SlideSorter =========================================================== ::boost::shared_ptr<SlideSorter> SlideSorter::CreateSlideSorter( @@ -92,9 +89,6 @@ private: return pSlideSorter; } - - - ::boost::shared_ptr<SlideSorter> SlideSorter::CreateSlideSorter ( ViewShellBase& rBase, ViewShell* pViewShell, @@ -109,9 +103,6 @@ private: return pSlideSorter; } - - - SlideSorter::SlideSorter ( ViewShell& rViewShell, const ::boost::shared_ptr<sd::Window>& rpContentWindow, @@ -136,9 +127,6 @@ SlideSorter::SlideSorter ( { } - - - SlideSorter::SlideSorter ( ViewShellBase& rBase, ViewShell* pViewShell, @@ -161,9 +149,6 @@ SlideSorter::SlideSorter ( { } - - - void SlideSorter::Init (void) { if (mpViewShellBase != NULL) @@ -208,9 +193,6 @@ void SlideSorter::Init (void) } } - - - SlideSorter::~SlideSorter (void) { mbIsValid = false; @@ -245,78 +227,50 @@ SlideSorter::~SlideSorter (void) mpContentWindow.reset(); } - - - bool SlideSorter::IsValid (void) const { return mbIsValid; } - - - ::boost::shared_ptr<ScrollBar> SlideSorter::GetVerticalScrollBar (void) const { return mpVerticalScrollBar; } - - - - ::boost::shared_ptr<ScrollBar> SlideSorter::GetHorizontalScrollBar (void) const { return mpHorizontalScrollBar; } - - - ::boost::shared_ptr<ScrollBarBox> SlideSorter::GetScrollBarFiller (void) const { return mpScrollBarBox; } - - - model::SlideSorterModel& SlideSorter::GetModel (void) const { OSL_ASSERT(mpSlideSorterModel.get()!=NULL); return *mpSlideSorterModel; } - - - view::SlideSorterView& SlideSorter::GetView (void) const { OSL_ASSERT(mpSlideSorterView.get()!=NULL); return *mpSlideSorterView; } - - - controller::SlideSorterController& SlideSorter::GetController (void) const { OSL_ASSERT(mpSlideSorterController.get()!=NULL); return *mpSlideSorterController; } - - - Reference<frame::XController> SlideSorter::GetXController (void) const { Reference<frame::XController> xController(mxControllerWeak); return xController; } - - - void SlideSorter::Paint (const Rectangle& rRepaintArea) { GetController().Paint( @@ -324,42 +278,27 @@ void SlideSorter::Paint (const Rectangle& rRepaintArea) GetContentWindow().get()); } - - - ::SharedSdWindow SlideSorter::GetContentWindow (void) const { return mpContentWindow; } - - - ViewShellBase* SlideSorter::GetViewShellBase (void) const { return mpViewShellBase; } - - - ViewShell* SlideSorter::GetViewShell (void) const { return mpViewShell; } - - - void SlideSorter::SetupControls (::Window* ) { GetVerticalScrollBar()->Show(); mpSlideSorterController->GetScrollBarManager().LateInitialization(); } - - - void SlideSorter::SetupListeners (void) { SharedSdWindow pWindow (GetContentWindow()); @@ -387,9 +326,6 @@ void SlideSorter::SetupListeners (void) mpSlideSorterController->GetScrollBarManager().Connect(); } - - - void SlideSorter::ReleaseListeners (void) { mpSlideSorterController->GetScrollBarManager().Disconnect(); @@ -415,9 +351,6 @@ void SlideSorter::ReleaseListeners (void) WindowEventHandler)); } - - - void SlideSorter::CreateModelViewController (void) { mpSlideSorterModel.reset(CreateModel()); @@ -439,9 +372,6 @@ void SlideSorter::CreateModelViewController (void) mpSlideSorterView->Init(); } - - - model::SlideSorterModel* SlideSorter::CreateModel (void) { // Get pointers to the document. @@ -456,17 +386,11 @@ model::SlideSorterModel* SlideSorter::CreateModel (void) return NULL; } - - - view::SlideSorterView* SlideSorter::CreateView (void) { return new view::SlideSorterView (*this); } - - - controller::SlideSorterController* SlideSorter::CreateController (void) { controller::SlideSorterController* pController @@ -474,9 +398,6 @@ controller::SlideSorterController* SlideSorter::CreateController (void) return pController; } - - - void SlideSorter::ArrangeGUIElements ( const Point& rOffset, const Size& rSize) @@ -501,9 +422,6 @@ void SlideSorter::ArrangeGUIElements ( } } - - - SvBorder SlideSorter::GetBorder (void) { SvBorder aBorder; @@ -519,9 +437,6 @@ SvBorder SlideSorter::GetBorder (void) return aBorder; } - - - bool SlideSorter::RelocateToWindow (::Window* pParentWindow) { // Stop all animations for they have been started for the old window. @@ -549,9 +464,6 @@ bool SlideSorter::RelocateToWindow (::Window* pParentWindow) return true; } - - - void SlideSorter::SetCurrentFunction (const FunctionReference& rpFunction) { if (GetViewShell() != NULL) @@ -567,27 +479,18 @@ void SlideSorter::SetCurrentFunction (const FunctionReference& rpFunction) } } - - - ::boost::shared_ptr<controller::Properties> SlideSorter::GetProperties (void) const { OSL_ASSERT(mpProperties); return mpProperties; } - - - ::boost::shared_ptr<view::Theme> SlideSorter::GetTheme (void) const { OSL_ASSERT(mpTheme); return mpTheme; } - - - //===== ContentWindow ========================================================= namespace { @@ -603,91 +506,58 @@ ContentWindow::ContentWindow( SetStyle(GetStyle() | WB_NOPOINTERFOCUS); } - - - ContentWindow::~ContentWindow (void) { } - - - void ContentWindow::SetCurrentFunction (const FunctionReference& rpFunction) { mpCurrentFunction = rpFunction; } - - - void ContentWindow::Paint (const Rectangle& rRect) { mrSlideSorter.Paint(rRect); } - - - void ContentWindow::KeyInput (const KeyEvent& rEvent) { if (mpCurrentFunction.is()) mpCurrentFunction->KeyInput(rEvent); } - - - void ContentWindow::MouseMove (const MouseEvent& rEvent) { if (mpCurrentFunction.is()) mpCurrentFunction->MouseMove(rEvent); } - - - void ContentWindow::MouseButtonUp(const MouseEvent& rEvent) { if (mpCurrentFunction.is()) mpCurrentFunction->MouseButtonUp(rEvent); } - - - void ContentWindow::MouseButtonDown(const MouseEvent& rEvent) { if (mpCurrentFunction.is()) mpCurrentFunction->MouseButtonDown(rEvent); } - - - void ContentWindow::Command(const CommandEvent& rEvent) { if (mpCurrentFunction.is()) mpCurrentFunction->Command(rEvent); } - - - long ContentWindow::Notify (NotifyEvent& rEvent) { (void)rEvent; return 0; } - - } // end of anonymous namespace - - - - } } // end of namespace ::sd::slidesorter /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |