summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-09-16 10:32:34 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-09-21 07:30:20 +0200
commit8cb6094447041b7fbe29bd5584b5daf9babb5cad (patch)
tree7f362cee4c3b0f0c2b96a6565fad3b4c424870c8 /include
parent46588c42a546d4517b773853856b9c8f8c2e5ece (diff)
Use SfxViewFrame::Current()
Allows getting rid of vcl::ITiledRenderable::getCurrentViewShell(), which would do the same, just not implemented outside Writer. Change-Id: Id26ceca560fb9002dc2d5c740c411b9c4a149523
Diffstat (limited to 'include')
-rw-r--r--include/sfx2/lokhelper.hxx4
-rw-r--r--include/vcl/ITiledRenderable.hxx8
2 files changed, 2 insertions, 10 deletions
diff --git a/include/sfx2/lokhelper.hxx b/include/sfx2/lokhelper.hxx
index a05cd5d4b210..50516227e992 100644
--- a/include/sfx2/lokhelper.hxx
+++ b/include/sfx2/lokhelper.hxx
@@ -17,8 +17,8 @@ class SfxViewShell;
class SFX2_DLLPUBLIC SfxLokHelper
{
public:
- /// Create a new view shell for pViewShell's object shell.
- static int createView(SfxViewShell* pViewShell);
+ /// Create a new view shell from the current view frame.
+ static int createView();
/// Destroy a view shell from the global shell list.
static void destroyView(size_t nId);
/// Set a view shell as current one.
diff --git a/include/vcl/ITiledRenderable.hxx b/include/vcl/ITiledRenderable.hxx
index a31d808437af..6639745e4a2f 100644
--- a/include/vcl/ITiledRenderable.hxx
+++ b/include/vcl/ITiledRenderable.hxx
@@ -16,8 +16,6 @@
#include <tools/gen.hxx>
#include <vcl/virdev.hxx>
-class SfxViewShell;
-
namespace vcl
{
@@ -141,12 +139,6 @@ public:
* @see lok::Document::resetSelection().
*/
virtual void resetSelection() = 0;
-
- /// Get the currently active view shell of the document.
- virtual SfxViewShell* getCurrentViewShell()
- {
- return 0;
- }
};
} // namespace vcl