diff options
author | Armin Le Grand <alg@apache.org> | 2012-05-03 10:59:32 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-03-11 07:50:32 +0000 |
commit | 3137258e346a9c16b2e61747fd926a1e7d358d02 (patch) | |
tree | 02a19c5f59b7f6e4528f35ad8cc0c8785598ce8b /svx/source/sdr | |
parent | 6874c25f98dcfe5116d96a1282c4231c3f2d623a (diff) |
Resolves: #i118905# Changed EditEngine to be able to paint to overlay directly
i.e. paint to VirtualDevice as well, not only to Window.
Removed the no longer needed switch between buffered and unbuffered overlay,
this removes the flickering white block.
(cherry picked from commit 5ab32faf2426fa60f975d0b544cfd671cdc7983b)
Conflicts:
editeng/inc/editeng/outliner.hxx
editeng/source/editeng/impedit.hxx
editeng/source/editeng/impedit3.cxx
editeng/source/editeng/impedit4.cxx
svx/inc/svx/sdr/overlay/overlaymanager.hxx
svx/inc/svx/sdr/overlay/overlaymanagerbuffered.hxx
svx/inc/svx/sdrpaintwindow.hxx
svx/inc/svx/svdpagv.hxx
svx/source/sdr/overlay/overlaymanager.cxx
svx/source/svdraw/sdrpaintwindow.cxx
svx/source/svdraw/svdedxv.cxx
svx/source/svdraw/svdpagv.cxx
Change-Id: Ibf4fcba77b120187fbae2454d136d2acd74be119
Diffstat (limited to 'svx/source/sdr')
-rw-r--r-- | svx/source/sdr/overlay/overlaymanager.cxx | 34 | ||||
-rw-r--r-- | svx/source/sdr/overlay/overlaymanagerbuffered.cxx | 6 |
2 files changed, 5 insertions, 35 deletions
diff --git a/svx/source/sdr/overlay/overlaymanager.cxx b/svx/source/sdr/overlay/overlaymanager.cxx index 51bd2ec56480..bc8fde868726 100644 --- a/svx/source/sdr/overlay/overlaymanager.cxx +++ b/svx/source/sdr/overlay/overlaymanager.cxx @@ -117,9 +117,7 @@ namespace sdr return mfDiscreteOne; } - OverlayManager::OverlayManager( - OutputDevice& rOutputDevice, - OverlayManager* pOldOverlayManager) + OverlayManager::OverlayManager(OutputDevice& rOutputDevice) : Scheduler(), mnRefCount(0), rmOutputDevice(rOutputDevice), @@ -143,37 +141,11 @@ namespace sdr xProperties[0].Value <<= true; maViewInformation2D = drawinglayer::geometry::ViewInformation2D(xProperties); } - - if(pOldOverlayManager) - { - // take over OverlayObjects from given OverlayManager. Copy - // the vector of pointers - maOverlayObjects = pOldOverlayManager->maOverlayObjects; - const sal_uInt32 nSize(maOverlayObjects.size()); - - if(nSize) - { - for(OverlayObjectVector::iterator aIter(maOverlayObjects.begin()); aIter != maOverlayObjects.end(); ++aIter) - { - OSL_ENSURE(*aIter, "Corrupted OverlayObject List (!)"); - OverlayObject& rCandidate = **aIter; - - // remove from old and add to new OverlayManager - pOldOverlayManager->impApplyRemoveActions(rCandidate); - impApplyAddActions(rCandidate); - } - - pOldOverlayManager->maOverlayObjects.clear(); - } - } } - rtl::Reference<OverlayManager> OverlayManager::create( - OutputDevice& rOutputDevice, - OverlayManager* pOldOverlayManager) + rtl::Reference<OverlayManager> OverlayManager::create(OutputDevice& rOutputDevice) { - return rtl::Reference<OverlayManager>(new OverlayManager(rOutputDevice, - pOldOverlayManager)); + return rtl::Reference<OverlayManager>(new OverlayManager(rOutputDevice)); } const drawinglayer::geometry::ViewInformation2D OverlayManager::getCurrentViewInformation2D() const diff --git a/svx/source/sdr/overlay/overlaymanagerbuffered.cxx b/svx/source/sdr/overlay/overlaymanagerbuffered.cxx index 6b394bef5ebe..81b53b27bb0e 100644 --- a/svx/source/sdr/overlay/overlaymanagerbuffered.cxx +++ b/svx/source/sdr/overlay/overlaymanagerbuffered.cxx @@ -382,9 +382,8 @@ namespace sdr OverlayManagerBuffered::OverlayManagerBuffered( OutputDevice& rOutputDevice, - OverlayManager* pOldOverlayManager, bool bRefreshWithPreRendering) - : OverlayManager(rOutputDevice, pOldOverlayManager), + : OverlayManager(rOutputDevice), mbRefreshWithPreRendering(bRefreshWithPreRendering) { // Init timer @@ -394,11 +393,10 @@ namespace sdr rtl::Reference<OverlayManager> OverlayManagerBuffered::create( OutputDevice& rOutputDevice, - OverlayManager* pOldOverlayManager, bool bRefreshWithPreRendering) { return rtl::Reference<OverlayManager>(new OverlayManagerBuffered(rOutputDevice, - pOldOverlayManager, bRefreshWithPreRendering)); + bRefreshWithPreRendering)); } OverlayManagerBuffered::~OverlayManagerBuffered() |