summaryrefslogtreecommitdiff
path: root/sdext
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2011-10-16 01:06:33 +0200
committerJulien Nabet <serval2412@yahoo.fr>2011-10-16 01:06:33 +0200
commit9895d3169fb1a20b8e7fb0215acff71beabecdaa (patch)
treea7fa3ddc2e0909ed88c76a28ba2fc84b9d3f4c0a /sdext
parentca85f280e26b9090c06b8b2092e3dde570043e16 (diff)
Some callcatcher cleaning
Diffstat (limited to 'sdext')
-rw-r--r--sdext/source/presenter/PresenterWindowManager.cxx117
-rw-r--r--sdext/source/presenter/PresenterWindowManager.hxx10
2 files changed, 0 insertions, 127 deletions
diff --git a/sdext/source/presenter/PresenterWindowManager.cxx b/sdext/source/presenter/PresenterWindowManager.cxx
index 466e3fe9ca25..1414e6e5e5e3 100644
--- a/sdext/source/presenter/PresenterWindowManager.cxx
+++ b/sdext/source/presenter/PresenterWindowManager.cxx
@@ -242,45 +242,6 @@ void PresenterWindowManager::SetTheme (const ::boost::shared_ptr<PresenterTheme>
}
}
-
-
-
-void PresenterWindowManager::NotifyPaneCreation (
- const PresenterPaneContainer::SharedPaneDescriptor& rpDescriptor)
-{
- if (rpDescriptor.get()==NULL)
- {
- OSL_ASSERT(rpDescriptor.get()!=NULL);
- return;
- }
- if ( ! rpDescriptor->mxContentWindow.is())
- {
- OSL_ASSERT(rpDescriptor->mxContentWindow.is());
- return;
- }
-
- mbIsLayoutPending = true;
-
- Reference<awt::XWindow> xBorderWindow (rpDescriptor->mxBorderWindow);
- OSL_ASSERT(xBorderWindow.is());
- if (xBorderWindow.is() && ! rpDescriptor->mbIsSprite)
- {
- Invalidate();
-
- xBorderWindow->addWindowListener(this);
- xBorderWindow->addFocusListener(this);
-#ifndef ENABLE_PANE_RESIZING
- xBorderWindow->addMouseListener(this);
-#endif
- }
-
- UpdateWindowList();
- Layout();
-}
-
-
-
-
void PresenterWindowManager::NotifyViewCreation (const Reference<XView>& rxView)
{
PresenterPaneContainer::SharedPaneDescriptor pDescriptor (
@@ -297,32 +258,6 @@ void PresenterWindowManager::NotifyViewCreation (const Reference<XView>& rxView)
}
}
-
-
-
-void PresenterWindowManager::SetPanePosSizeRelative (
- const Reference<XResourceId>& rxPaneId,
- const double nRelativeX,
- const double nRelativeY,
- const double nRelativeWidth,
- const double nRelativeHeight)
-{
- PresenterPaneContainer::SharedPaneDescriptor pDescriptor (
- mpPaneContainer->FindPaneId(rxPaneId));
- if (pDescriptor.get() != NULL)
- {
- pDescriptor->mnLeft = nRelativeX;
- pDescriptor->mnTop = nRelativeY;
- pDescriptor->mnRight = nRelativeX + nRelativeWidth;
- pDescriptor->mnBottom = nRelativeY + nRelativeHeight;
-
- mpPaneContainer->ToTop(pDescriptor);
- }
-}
-
-
-
-
void PresenterWindowManager::SetPanePosSizeAbsolute (
const OUString& rsPaneURL,
const double nX,
@@ -661,17 +596,6 @@ void PresenterWindowManager::SetSlideSorterState (bool bIsActive)
}
}
-
-
-
-bool PresenterWindowManager::IsSlideSorterActive (void) const
-{
- return mbIsSlideSorterActive;
-}
-
-
-
-
void PresenterWindowManager::SetHelpViewState (bool bIsActive)
{
if (mbIsHelpViewActive != bIsActive)
@@ -690,17 +614,6 @@ void PresenterWindowManager::SetHelpViewState (bool bIsActive)
}
}
-
-
-
-bool PresenterWindowManager::IsHelpViewActive (void) const
-{
- return mbIsHelpViewActive;
-}
-
-
-
-
void PresenterWindowManager::SetViewMode (const ViewMode eMode)
{
switch (eMode)
@@ -1186,36 +1099,6 @@ void PresenterWindowManager::NotifyDisposing (void)
}
}
-
-
-
-void PresenterWindowManager::LayoutUnknownMode (void)
-{
- awt::Rectangle aBox = mxParentWindow->getPosSize();
-
- PresenterPaneContainer::PaneList::const_iterator iPane;
- PresenterPaneContainer::PaneList::const_iterator iEnd (mpPaneContainer->maPanes.end());
- for (iPane=mpPaneContainer->maPanes.begin(); iPane!=iEnd; ++iPane)
- {
- const PresenterPaneContainer::SharedPaneDescriptor& pDescriptor (*iPane);
- if ( ! pDescriptor->mxBorderWindow.is())
- continue;
-
- // Layout the border window.
- const sal_Int32 nX = (sal_Int32)(pDescriptor->mnLeft * aBox.Width);
- const sal_Int32 nY = (sal_Int32)(pDescriptor->mnTop * aBox.Height);
- const sal_Int32 nWidth = (sal_Int32)(pDescriptor->mnRight * aBox.Width) - nX;
- const sal_Int32 nHeight = (sal_Int32)(pDescriptor->mnBottom * aBox.Height) - nY;
-
- pDescriptor->mxBorderWindow->setPosSize(
- nX,nY,nWidth,nHeight,
- awt::PosSize::POSSIZE);
- }
-}
-
-
-
-
void PresenterWindowManager::UpdateWindowSize (const Reference<awt::XWindow>& rxBorderWindow)
{
PresenterPaneContainer::SharedPaneDescriptor pDescriptor (
diff --git a/sdext/source/presenter/PresenterWindowManager.hxx b/sdext/source/presenter/PresenterWindowManager.hxx
index 997565bf0a8c..d4e919da5c36 100644
--- a/sdext/source/presenter/PresenterWindowManager.hxx
+++ b/sdext/source/presenter/PresenterWindowManager.hxx
@@ -90,14 +90,7 @@ public:
void SetParentPane (const css::uno::Reference<css::drawing::framework::XPane>& rxPane);
void SetTheme (const ::boost::shared_ptr<PresenterTheme>& rpTheme);
- void NotifyPaneCreation (const PresenterPaneContainer::SharedPaneDescriptor& rpDescriptor);
void NotifyViewCreation (const css::uno::Reference<css::drawing::framework::XView>& rxView);
- void SetPanePosSizeRelative (
- const css::uno::Reference<css::drawing::framework::XResourceId>& rxPaneId,
- const double nRelativeX,
- const double nRelativeY,
- const double nRelativeWidth,
- const double nRelativeHeight);
void SetPanePosSizeAbsolute (
const ::rtl::OUString& rsPaneURL,
const double nX,
@@ -118,8 +111,6 @@ private:
void SetLayoutMode (const LayoutMode eMode);
LayoutMode GetLayoutMode (void) const;
- bool IsSlideSorterActive (void) const;
- bool IsHelpViewActive (void) const;
public:
enum ViewMode { VM_Standard, VM_Notes, VM_SlideOverview, VM_Help };
/** The high-level method to switch the view mode. Use this instead of
@@ -234,7 +225,6 @@ private:
void LayoutStandardMode (void);
void LayoutNotesMode (void);
- void LayoutUnknownMode (void);
void LayoutSlideSorterMode (void);
void LayoutHelpMode (void);