diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2013-04-01 13:19:59 +0200 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2013-04-01 13:20:10 +0200 |
commit | 08b91c63131b7e625d2a2c489bc537dafe5c5963 (patch) | |
tree | 8e8328f03d9000310e3e71e55d8cd9e7574f459f | |
parent | 829851c290047a08e419add91bca00234c3b9ef0 (diff) |
remove unused GetCurDocViewWin
Change-Id: I7fe825cd1fb9e988eb8037e1f5dca7252c192f33
-rw-r--r-- | basctl/source/dlged/dlgedmod.cxx | 7 | ||||
-rw-r--r-- | basctl/source/inc/dlgedmod.hxx | 2 | ||||
-rw-r--r-- | reportdesign/inc/RptModel.hxx | 1 | ||||
-rw-r--r-- | reportdesign/source/core/sdr/RptModel.cxx | 6 | ||||
-rw-r--r-- | sc/inc/drwlayer.hxx | 2 | ||||
-rw-r--r-- | sc/source/core/data/drwlayer.cxx | 15 |
6 files changed, 0 insertions, 33 deletions
diff --git a/basctl/source/dlged/dlgedmod.cxx b/basctl/source/dlged/dlgedmod.cxx index 31767cc4afc0..93527d1b9761 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 62a2e53a413b..58512433336d 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 38983a0e34e9..197932b424b2 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 6908639f648a..1e7ddbfbf3a9 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 adb0c49623f8..7392a058b88a 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 695036ba8488..6b49b70d82c8 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) |