summaryrefslogtreecommitdiff
path: root/sw/inc/doc.hxx
diff options
context:
space:
mode:
authorValentin Kettner <vakevk+libreoffice@gmail.com>2014-08-15 19:09:49 +0200
committerValentin Kettner <vakevk+libreoffice@gmail.com>2014-08-19 21:57:06 +0200
commit15295ab6db7cb46ea5f155d33a08027c62fb0e41 (patch)
tree89ad8ebaee3f7821299b944c378d60a11aa20d64 /sw/inc/doc.hxx
parent5a05115ee25683b5fc7c79ab418eaeed120bd3b0 (diff)
Refactored SwDoc::GetEditShell .
Removed its output paramater as GetCurrentViewShell should be used instead and added a const version. Change-Id: Iad8b57553b6e93e3472ce8c6905d08e8d49af770
Diffstat (limited to 'sw/inc/doc.hxx')
-rw-r--r--sw/inc/doc.hxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/sw/inc/doc.hxx b/sw/inc/doc.hxx
index 4a57c9b30110..1fbb20693e1d 100644
--- a/sw/inc/doc.hxx
+++ b/sw/inc/doc.hxx
@@ -441,7 +441,7 @@ private:
const SwTxtFmtColl* pSplitColl, int nOutlineLevel = 0 );
// Update charts of given table.
- void _UpdateCharts( const SwTable& rTbl, SwViewShell& rVSh ) const;
+ void _UpdateCharts( const SwTable& rTbl, SwViewShell const & rVSh ) const;
bool _SelectNextRubyChars( SwPaM& rPam, SwRubyListEntry& rRubyEntry,
sal_uInt16 nMode );
@@ -1342,8 +1342,9 @@ public:
const SwAttrPool& GetAttrPool() const { return *mpAttrPool; }
SwAttrPool& GetAttrPool() { return *mpAttrPool; }
- // Search an EditShell or, if appropriate, a SwViewShell via layout.
- SwEditShell* GetEditShell( SwViewShell** ppSh = 0 ) const;
+ // Search for an EditShell.
+ SwEditShell const * GetEditShell() const;
+ SwEditShell* GetEditShell();
::sw::IShellCursorSupplier * GetIShellCursorSupplier();
// OLE 2.0-notification.
@@ -1410,7 +1411,7 @@ public:
// Query if URL was visited.
// Query via Doc, if only a Bookmark has been given.
// In this case the document name has to be set in front.
- bool IsVisitedURL( const OUString& rURL ) const;
+ bool IsVisitedURL( const OUString& rURL );
// Save current values for automatic registration of exceptions in Autocorrection.
void SetAutoCorrExceptWord( SwAutoCorrExceptWord* pNew );