diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-12-11 08:04:47 +0100 |
---|---|---|
committer | Ashod Nakashian <ashod.nakashian@collabora.co.uk> | 2016-07-20 01:25:50 -0400 |
commit | 03ed2c47d3396a4ff1c53205ef816fb50be67ba5 (patch) | |
tree | c639e0d0838976f353e4176a7ade48b283e6a73e /sw | |
parent | d5aa3435fa00e9190f403ad66055ea795349c215 (diff) |
sw: clean up no longer needed SwViewShell::isTiledRendering()
Change-Id: Icd719c461613f8c59cad81b256678307f69974e1
(cherry picked from commit fd205e40c58aa749fbe458d74ca0c2373a1017dc)
Diffstat (limited to 'sw')
-rw-r--r-- | sw/inc/viewsh.hxx | 2 | ||||
-rw-r--r-- | sw/source/core/view/viewsh.cxx | 19 | ||||
-rw-r--r-- | sw/source/uibase/wrtsh/wrtsh2.cxx | 1 |
3 files changed, 7 insertions, 15 deletions
diff --git a/sw/inc/viewsh.hxx b/sw/inc/viewsh.hxx index 179a6fdf33cb..c70774807406 100644 --- a/sw/inc/viewsh.hxx +++ b/sw/inc/viewsh.hxx @@ -576,8 +576,6 @@ public: void libreOfficeKitCallback(int nType, const char* pPayload) const; /// Set if we are doing tiled rendering. void setTiledRendering(bool bTiledRendering); - /// Are we doing tiled rendering? - bool isTiledRendering() const; void setOutputToWindow(bool bOutputToWindow); bool isOutputToWindow() const; diff --git a/sw/source/core/view/viewsh.cxx b/sw/source/core/view/viewsh.cxx index d93f3bd59f7a..153f4e56701f 100644 --- a/sw/source/core/view/viewsh.cxx +++ b/sw/source/core/view/viewsh.cxx @@ -132,11 +132,6 @@ void SwViewShell::setTiledRendering(bool bTiledRendering) getIDocumentDrawModelAccess().GetDrawModel()->setTiledRendering(bTiledRendering); } -bool SwViewShell::isTiledRendering() const -{ - return getIDocumentDrawModelAccess().GetDrawModel()->isTiledRendering(); -} - void SwViewShell::setOutputToWindow(bool bOutputToWindow) { mbOutputToWindow = bOutputToWindow; @@ -193,7 +188,7 @@ void SwViewShell::DLPrePaint2(const vcl::Region& rRegion) MakeDrawView(); // Prefer window; if not available, get mpOut (e.g. printer) - const bool bWindow = GetWin() && !isTiledRendering() && !isOutputToWindow(); + const bool bWindow = GetWin() && !comphelper::LibreOfficeKit::isActive() && !isOutputToWindow(); mpPrePostOutDev = bWindow ? GetWin(): GetOut(); // #i74769# use SdrPaintWindow now direct @@ -422,7 +417,7 @@ void SwViewShell::ImplEndAction( const bool bIdleEnd ) if ( bPaintsFromSystem ) PaintDesktop(*GetOut(), aRect); - if (!isTiledRendering()) + if (!comphelper::LibreOfficeKit::isActive()) pCurrentLayout->Paint( *mpOut, aRect ); else pCurrentLayout->GetCurrShell()->InvalidateWindows(aRect.SVRect()); @@ -565,7 +560,7 @@ void SwViewShell::InvalidateWindows( const SwRect &rRect ) ::RepaintPagePreview( &rSh, rRect ); // In case of tiled rendering, invalidation is wanted even if // the rectangle is outside the visual area. - else if ( rSh.VisArea().IsOver( rRect ) || rSh.isTiledRendering() ) + else if ( rSh.VisArea().IsOver( rRect ) || comphelper::LibreOfficeKit::isActive() ) rSh.GetWin()->Invalidate( rRect.SVRect() ); } } @@ -576,7 +571,7 @@ const SwRect& SwViewShell::VisArea() const { // when using the tiled rendering, consider the entire document as our // visible area - return isTiledRendering()? GetLayout()->Frame(): maVisArea; + return comphelper::LibreOfficeKit::isActive()? GetLayout()->Frame(): maVisArea; } void SwViewShell::MakeVisible( const SwRect &rRect ) @@ -1027,7 +1022,7 @@ void SwViewShell::SizeChgNotify() OUString sDisplay = rNum.GetNumStr( nVirtNum ); PageNumNotify( this, pCnt->GetPhyPageNum(), nVirtNum, sDisplay ); - if (isTiledRendering()) + if (comphelper::LibreOfficeKit::isActive()) { Size aDocSize = GetDocSize(); std::stringstream ss; @@ -1190,7 +1185,7 @@ void SwViewShell::VisPortChgd( const SwRect &rRect) // When tiled rendering, the map mode of the window is disabled, avoid // enabling it here. - if (!isTiledRendering()) + if (!comphelper::LibreOfficeKit::isActive()) { Point aPt( VisArea().Pos() ); aPt.X() = -aPt.X(); aPt.Y() = -aPt.Y(); @@ -1868,7 +1863,7 @@ void SwViewShell::PaintTile(VirtualDevice &rDevice, int contextWidth, int contex // TODO clean up SwViewShell's approach to output devices (the many of // them - mpBufferedOut, mpOut, mpWin, ...) OutputDevice *pSaveOut = mpOut; - bool bTiledRendering = isTiledRendering(); + bool bTiledRendering = comphelper::LibreOfficeKit::isActive(); setTiledRendering(true); mbInLibreOfficeKitCallback = true; mpOut = &rDevice; diff --git a/sw/source/uibase/wrtsh/wrtsh2.cxx b/sw/source/uibase/wrtsh/wrtsh2.cxx index 3a754e3280a7..46cf53b7dec4 100644 --- a/sw/source/uibase/wrtsh/wrtsh2.cxx +++ b/sw/source/uibase/wrtsh/wrtsh2.cxx @@ -63,7 +63,6 @@ #include <com/sun/star/document/XDocumentProperties.hpp> #include <com/sun/star/document/XDocumentPropertiesSupplier.hpp> -#include <xmloff/odffields.hxx> #include <memory> #include <LibreOfficeKit/LibreOfficeKitEnums.h> |