basctl/source/dlged/dlgedmod.cxx | 7 ------- basctl/source/inc/dlgedmod.hxx | 2 -- reportdesign/inc/RptModel.hxx | 1 - reportdesign/source/core/sdr/RptModel.cxx | 6 ------ sc/inc/drwlayer.hxx | 2 -- sc/source/core/data/drwlayer.cxx | 15 --------------- 6 files changed, 33 deletions(-)
New commits: commit 08b91c63131b7e625d2a2c489bc537dafe5c5963 Author: Thomas Arnhold <[email protected]> Date: Mon Apr 1 13:19:59 2013 +0200 remove unused GetCurDocViewWin Change-Id: I7fe825cd1fb9e988eb8037e1f5dca7252c192f33 diff --git a/basctl/source/dlged/dlgedmod.cxx b/basctl/source/dlged/dlgedmod.cxx index 31767cc..93527d1 100644 --- a/basctl/source/dlged/dlgedmod.cxx +++ b/basctl/source/dlged/dlgedmod.cxx @@ -53,13 +53,6 @@ SdrPage* DlgEdModel::AllocPage(bool bMasterPage) //---------------------------------------------------------------------------- -Window* DlgEdModel::GetCurDocViewWin() -{ - return 0; -} - -//---------------------------------------------------------------------------- - } // namespace basctl /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/basctl/source/inc/dlgedmod.hxx b/basctl/source/inc/dlgedmod.hxx index 62a2e53..5851243 100644 --- a/basctl/source/inc/dlgedmod.hxx +++ b/basctl/source/inc/dlgedmod.hxx @@ -44,8 +44,6 @@ public: virtual ~DlgEdModel(); virtual SdrPage* AllocPage(bool bMasterPage); - - virtual Window* GetCurDocViewWin(); }; } // namespace basctl diff --git a/reportdesign/inc/RptModel.hxx b/reportdesign/inc/RptModel.hxx index 38983a0..197932b 100644 --- a/reportdesign/inc/RptModel.hxx +++ b/reportdesign/inc/RptModel.hxx @@ -63,7 +63,6 @@ public: virtual void SetChanged(sal_Bool bFlg = sal_True); virtual SdrPage* AllocPage(bool bMasterPage); - virtual Window* GetCurDocViewWin(); virtual SdrPage* RemovePage(sal_uInt16 nPgNum); /** returns the numbering type that is used to format page fields in drawing shapes */ virtual SvxNumType GetPageNumType() const; diff --git a/reportdesign/source/core/sdr/RptModel.cxx b/reportdesign/source/core/sdr/RptModel.cxx index 6908639..1e7ddbf 100644 --- a/reportdesign/source/core/sdr/RptModel.cxx +++ b/reportdesign/source/core/sdr/RptModel.cxx @@ -92,12 +92,6 @@ void OReportModel::SetChanged( sal_Bool bChanged ) //---------------------------------------------------------------------------- -Window* OReportModel::GetCurDocViewWin() -{ - return 0; -} - -//---------------------------------------------------------------------------- OXUndoEnvironment& OReportModel::GetUndoEnv() { return *m_pUndoEnv; diff --git a/sc/inc/drwlayer.hxx b/sc/inc/drwlayer.hxx index adb0c49..7392a05 100644 --- a/sc/inc/drwlayer.hxx +++ b/sc/inc/drwlayer.hxx @@ -103,8 +103,6 @@ public: virtual SdrModel* AllocModel() const; virtual void SetChanged( sal_Bool bFlg = sal_True ); - virtual Window* GetCurDocViewWin(); - virtual SdrLayerID GetControlExportLayerId( const SdrObject & ) const; sal_Bool HasObjects() const; diff --git a/sc/source/core/data/drwlayer.cxx b/sc/source/core/data/drwlayer.cxx index 695036b..6b49b70 100644 --- a/sc/source/core/data/drwlayer.cxx +++ b/sc/source/core/data/drwlayer.cxx @@ -334,21 +334,6 @@ SdrModel* ScDrawLayer::AllocModel() const return new ScDrawLayer( NULL, aName ); } -Window* ScDrawLayer::GetCurDocViewWin() -{ - OSL_ENSURE( pDoc, "ScDrawLayer::GetCurDocViewWin without document" ); - if ( !pDoc ) - return NULL; - - SfxViewShell* pViewSh = SfxViewShell::Current(); - SfxObjectShell* pObjSh = pDoc->GetDocumentShell(); - - if (pViewSh && pViewSh->GetObjectShell() == pObjSh) - return pViewSh->GetWindow(); - - return NULL; -} - sal_Bool ScDrawLayer::ScAddPage( SCTAB nTab ) { if (bDrawIsInUndo) _______________________________________________ Libreoffice-commits mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
