diff options
author | Andrzej Hunt <andrzej.hunt@collabora.com> | 2014-07-29 13:28:49 +0200 |
---|---|---|
committer | Andrzej Hunt <andrzej.hunt@collabora.com> | 2014-07-30 12:44:03 +0200 |
commit | dd032c3f3b6d6d3142b86860b02efd47c27504cc (patch) | |
tree | 5cba9555006ba3596aae3ca5b1465f0dbb65daeb /include | |
parent | a965dfd7ea87a5aba4e4aefa21049159e56579cf (diff) |
ITiledRenderable: provide default implementations for some methods.
Writer doesn't understand the concept of parts at the moment, it
makes most sense to keep these dummy implementations central.
Change-Id: Iafbd89864b753ba2bed28a05b0f59df85f364feb
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/ITiledRenderable.hxx | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/include/vcl/ITiledRenderable.hxx b/include/vcl/ITiledRenderable.hxx index a872713c7a7f..a57053ecac7f 100644 --- a/include/vcl/ITiledRenderable.hxx +++ b/include/vcl/ITiledRenderable.hxx @@ -47,18 +47,27 @@ public: * Set the document "part", i.e. slide for a slideshow, and * tab for a spreadsheet. */ - virtual void setPart( int nPart ) = 0; + virtual void setPart( int nPart ) + { + (void) nPart; + } /** * Get the number of parts -- see setPart for further details. */ - virtual int getParts() = 0; + virtual int getParts() + { + return 1; + } /** * Get the currently displayed/selected part -- see setPart for further * details. */ - virtual int getPart() = 0; + virtual int getPart() + { + return 0; + } /** * Get the name of the currently displayed part, i.e. sheet in a spreadsheet |