diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-01-14 10:28:40 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-01-16 13:18:29 +0100 |
commit | 99db6d8e376d594e2a4345d37637f9506d143fc9 (patch) | |
tree | c2a6200caf74e7e48692cf55ec100609d113747a /sw/inc | |
parent | f260218636430152be713a92d4dd08c3941cd6c4 (diff) |
SwRootFrm::CheckViewLayout: never center pages when doing tiled rendering
The size of the root frame is usually the max of the page frame widths,
except when the visual area is larger, in which case the root frame is
the visual area width, and page frames are centered (when there is a
single column).
When doing tiled rendering, we are not interested in the gray area
around the pages (not more than just having a gap between pages), so
never do this centering. This has two benefits:
1) When painting the tiles, we change the visual area already to always
have the given tile visible, that would undo this centering anyway, but
changing the size of the root frame causes a pointless
mass-invalidation.
2) When getting the size of the document, this way the width of the
document (root frame) will independent from the visual area, i.e. it'll
be always the same.
Change-Id: Ib0d86bbe6c7b5a83646264a2f308624179ad6982
Diffstat (limited to 'sw/inc')
-rw-r--r-- | sw/inc/viewsh.hxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sw/inc/viewsh.hxx b/sw/inc/viewsh.hxx index 574933c430e2..89ebbc69c66c 100644 --- a/sw/inc/viewsh.hxx +++ b/sw/inc/viewsh.hxx @@ -581,6 +581,10 @@ public: void registerLibreOfficeKitCallback(LibreOfficeKitCallback pCallback, void* pLibreOfficeKitData); /// Invokes the registered callback, if there are any. void libreOfficeKitCallback(int nType, const char* pPayload); + /// Set if we are doing tiled rendering. + void setTiledRendering(bool bTiledRendering); + /// Are we doing tiled rendering? + bool isTiledRendering(); SwViewShell* GetNext() { return GetNextInRing(); } |