1*f6e50924SAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*f6e50924SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*f6e50924SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*f6e50924SAndrew Rist * distributed with this work for additional information 6*f6e50924SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*f6e50924SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*f6e50924SAndrew Rist * "License"); you may not use this file except in compliance 9*f6e50924SAndrew Rist * with the License. You may obtain a copy of the License at 10*f6e50924SAndrew Rist * 11*f6e50924SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*f6e50924SAndrew Rist * 13*f6e50924SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*f6e50924SAndrew Rist * software distributed under the License is distributed on an 15*f6e50924SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*f6e50924SAndrew Rist * KIND, either express or implied. See the License for the 17*f6e50924SAndrew Rist * specific language governing permissions and limitations 18*f6e50924SAndrew Rist * under the License. 19*f6e50924SAndrew Rist * 20*f6e50924SAndrew Rist *************************************************************/ 21*f6e50924SAndrew Rist 22*f6e50924SAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir // MARKER(update_precomp.py): autogen include statement, do not remove 25cdf0e10cSrcweir #include "precompiled_svx.hxx" 26cdf0e10cSrcweir #include <svx/sdr/overlay/overlaymanager.hxx> 27cdf0e10cSrcweir #include <basegfx/point/b2dpoint.hxx> 28cdf0e10cSrcweir #include <basegfx/range/b2drange.hxx> 29cdf0e10cSrcweir #include <tools/gen.hxx> 30cdf0e10cSrcweir #include <vcl/salbtype.hxx> 31cdf0e10cSrcweir #include <vcl/outdev.hxx> 32cdf0e10cSrcweir #include <vcl/window.hxx> 33cdf0e10cSrcweir #include <svx/sdr/overlay/overlayobject.hxx> 34cdf0e10cSrcweir #include <basegfx/matrix/b2dhommatrix.hxx> 35cdf0e10cSrcweir #include <drawinglayer/processor2d/baseprocessor2d.hxx> 36cdf0e10cSrcweir #include <svx/sdr/contact/objectcontacttools.hxx> 37cdf0e10cSrcweir 38cdf0e10cSrcweir ////////////////////////////////////////////////////////////////////////////// 39cdf0e10cSrcweir 40cdf0e10cSrcweir using namespace com::sun::star; 41cdf0e10cSrcweir 42cdf0e10cSrcweir ////////////////////////////////////////////////////////////////////////////// 43cdf0e10cSrcweir 44cdf0e10cSrcweir namespace sdr 45cdf0e10cSrcweir { 46cdf0e10cSrcweir namespace overlay 47cdf0e10cSrcweir { 48cdf0e10cSrcweir void OverlayManager::ImpDrawMembers(const basegfx::B2DRange& rRange, OutputDevice& rDestinationDevice) const 49cdf0e10cSrcweir { 50cdf0e10cSrcweir const sal_uInt32 nSize(maOverlayObjects.size()); 51cdf0e10cSrcweir 52cdf0e10cSrcweir if(nSize) 53cdf0e10cSrcweir { 54cdf0e10cSrcweir const sal_uInt16 nOriginalAA(rDestinationDevice.GetAntialiasing()); 55cdf0e10cSrcweir const bool bIsAntiAliasing(getDrawinglayerOpt().IsAntiAliasing()); 56cdf0e10cSrcweir 57cdf0e10cSrcweir // create processor 58cdf0e10cSrcweir drawinglayer::processor2d::BaseProcessor2D* pProcessor = ::sdr::contact::createBaseProcessor2DFromOutputDevice( 59cdf0e10cSrcweir rDestinationDevice, 60cdf0e10cSrcweir getCurrentViewInformation2D()); 61cdf0e10cSrcweir 62cdf0e10cSrcweir if(pProcessor) 63cdf0e10cSrcweir { 64cdf0e10cSrcweir for(OverlayObjectVector::const_iterator aIter(maOverlayObjects.begin()); aIter != maOverlayObjects.end(); aIter++) 65cdf0e10cSrcweir { 66cdf0e10cSrcweir OSL_ENSURE(*aIter, "Corrupted OverlayObject List (!)"); 67cdf0e10cSrcweir const OverlayObject& rCandidate = **aIter; 68cdf0e10cSrcweir 69cdf0e10cSrcweir if(rCandidate.isVisible()) 70cdf0e10cSrcweir { 71cdf0e10cSrcweir const drawinglayer::primitive2d::Primitive2DSequence& rSequence = rCandidate.getOverlayObjectPrimitive2DSequence(); 72cdf0e10cSrcweir 73cdf0e10cSrcweir if(rSequence.hasElements()) 74cdf0e10cSrcweir { 75cdf0e10cSrcweir if(rRange.overlaps(rCandidate.getBaseRange())) 76cdf0e10cSrcweir { 77cdf0e10cSrcweir if(bIsAntiAliasing && rCandidate.allowsAntiAliase()) 78cdf0e10cSrcweir { 79cdf0e10cSrcweir rDestinationDevice.SetAntialiasing(nOriginalAA | ANTIALIASING_ENABLE_B2DDRAW); 80cdf0e10cSrcweir } 81cdf0e10cSrcweir else 82cdf0e10cSrcweir { 83cdf0e10cSrcweir rDestinationDevice.SetAntialiasing(nOriginalAA & ~ANTIALIASING_ENABLE_B2DDRAW); 84cdf0e10cSrcweir } 85cdf0e10cSrcweir 86cdf0e10cSrcweir pProcessor->process(rSequence); 87cdf0e10cSrcweir } 88cdf0e10cSrcweir } 89cdf0e10cSrcweir } 90cdf0e10cSrcweir } 91cdf0e10cSrcweir 92cdf0e10cSrcweir delete pProcessor; 93cdf0e10cSrcweir } 94cdf0e10cSrcweir 95cdf0e10cSrcweir // restore AA settings 96cdf0e10cSrcweir rDestinationDevice.SetAntialiasing(nOriginalAA); 97cdf0e10cSrcweir } 98cdf0e10cSrcweir } 99cdf0e10cSrcweir 100cdf0e10cSrcweir void OverlayManager::ImpStripeDefinitionChanged() 101cdf0e10cSrcweir { 102cdf0e10cSrcweir const sal_uInt32 nSize(maOverlayObjects.size()); 103cdf0e10cSrcweir 104cdf0e10cSrcweir if(nSize) 105cdf0e10cSrcweir { 106cdf0e10cSrcweir for(OverlayObjectVector::iterator aIter(maOverlayObjects.begin()); aIter != maOverlayObjects.end(); aIter++) 107cdf0e10cSrcweir { 108cdf0e10cSrcweir OSL_ENSURE(*aIter, "Corrupted OverlayObject List (!)"); 109cdf0e10cSrcweir OverlayObject& rCandidate = **aIter; 110cdf0e10cSrcweir rCandidate.stripeDefinitionHasChanged(); 111cdf0e10cSrcweir } 112cdf0e10cSrcweir } 113cdf0e10cSrcweir } 114cdf0e10cSrcweir 115cdf0e10cSrcweir double OverlayManager::getDiscreteOne() const 116cdf0e10cSrcweir { 117cdf0e10cSrcweir if(basegfx::fTools::equalZero(mfDiscreteOne)) 118cdf0e10cSrcweir { 119cdf0e10cSrcweir const basegfx::B2DVector aDiscreteInLogic(getOutputDevice().GetInverseViewTransformation() * basegfx::B2DVector(1.0, 0.0)); 120cdf0e10cSrcweir const_cast< OverlayManager* >(this)->mfDiscreteOne = aDiscreteInLogic.getLength(); 121cdf0e10cSrcweir } 122cdf0e10cSrcweir 123cdf0e10cSrcweir return mfDiscreteOne; 124cdf0e10cSrcweir } 125cdf0e10cSrcweir 126cdf0e10cSrcweir OverlayManager::OverlayManager( 127cdf0e10cSrcweir OutputDevice& rOutputDevice, 128cdf0e10cSrcweir OverlayManager* pOldOverlayManager) 129cdf0e10cSrcweir : Scheduler(), 130cdf0e10cSrcweir rmOutputDevice(rOutputDevice), 131cdf0e10cSrcweir maOverlayObjects(), 132cdf0e10cSrcweir maStripeColorA(Color(COL_BLACK)), 133cdf0e10cSrcweir maStripeColorB(Color(COL_WHITE)), 134cdf0e10cSrcweir mnStripeLengthPixel(5), 135cdf0e10cSrcweir maDrawinglayerOpt(), 136cdf0e10cSrcweir maViewTransformation(), 137cdf0e10cSrcweir maViewInformation2D(), 138cdf0e10cSrcweir mfDiscreteOne(0.0) 139cdf0e10cSrcweir { 140cdf0e10cSrcweir // set Property 'ReducedDisplayQuality' to true to allow simpler interaction 141cdf0e10cSrcweir // visualisations 142cdf0e10cSrcweir static bool bUseReducedDisplayQualityForDrag(true); 143cdf0e10cSrcweir 144cdf0e10cSrcweir if(bUseReducedDisplayQualityForDrag) 145cdf0e10cSrcweir { 146cdf0e10cSrcweir uno::Sequence< beans::PropertyValue > xProperties(1); 147cdf0e10cSrcweir xProperties[0].Name = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("ReducedDisplayQuality")); 148cdf0e10cSrcweir xProperties[0].Value <<= true; 149cdf0e10cSrcweir maViewInformation2D = drawinglayer::geometry::ViewInformation2D(xProperties); 150cdf0e10cSrcweir } 151cdf0e10cSrcweir 152cdf0e10cSrcweir if(pOldOverlayManager) 153cdf0e10cSrcweir { 154cdf0e10cSrcweir // take over OverlayObjects from given OverlayManager. Copy 155cdf0e10cSrcweir // the vector of pointers 156cdf0e10cSrcweir maOverlayObjects = pOldOverlayManager->maOverlayObjects; 157cdf0e10cSrcweir const sal_uInt32 nSize(maOverlayObjects.size()); 158cdf0e10cSrcweir 159cdf0e10cSrcweir if(nSize) 160cdf0e10cSrcweir { 161cdf0e10cSrcweir for(OverlayObjectVector::iterator aIter(maOverlayObjects.begin()); aIter != maOverlayObjects.end(); aIter++) 162cdf0e10cSrcweir { 163cdf0e10cSrcweir OSL_ENSURE(*aIter, "Corrupted OverlayObject List (!)"); 164cdf0e10cSrcweir OverlayObject& rCandidate = **aIter; 165cdf0e10cSrcweir 166cdf0e10cSrcweir // remove from old and add to new OverlayManager 167cdf0e10cSrcweir pOldOverlayManager->impApplyRemoveActions(rCandidate); 168cdf0e10cSrcweir impApplyAddActions(rCandidate); 169cdf0e10cSrcweir } 170cdf0e10cSrcweir 171cdf0e10cSrcweir pOldOverlayManager->maOverlayObjects.clear(); 172cdf0e10cSrcweir } 173cdf0e10cSrcweir } 174cdf0e10cSrcweir } 175cdf0e10cSrcweir 176cdf0e10cSrcweir const drawinglayer::geometry::ViewInformation2D OverlayManager::getCurrentViewInformation2D() const 177cdf0e10cSrcweir { 178cdf0e10cSrcweir if(getOutputDevice().GetViewTransformation() != maViewTransformation) 179cdf0e10cSrcweir { 180cdf0e10cSrcweir basegfx::B2DRange aViewRange(maViewInformation2D.getViewport()); 181cdf0e10cSrcweir 182cdf0e10cSrcweir if(OUTDEV_WINDOW == getOutputDevice().GetOutDevType()) 183cdf0e10cSrcweir { 184cdf0e10cSrcweir const Size aOutputSizePixel(getOutputDevice().GetOutputSizePixel()); 185cdf0e10cSrcweir aViewRange = basegfx::B2DRange(0.0, 0.0, aOutputSizePixel.getWidth(), aOutputSizePixel.getHeight()); 186cdf0e10cSrcweir aViewRange.transform(getOutputDevice().GetInverseViewTransformation()); 187cdf0e10cSrcweir } 188cdf0e10cSrcweir 189cdf0e10cSrcweir OverlayManager* pThis = const_cast< OverlayManager* >(this); 190cdf0e10cSrcweir 191cdf0e10cSrcweir pThis->maViewTransformation = getOutputDevice().GetViewTransformation(); 192cdf0e10cSrcweir pThis->maViewInformation2D = drawinglayer::geometry::ViewInformation2D( 193cdf0e10cSrcweir maViewInformation2D.getObjectTransformation(), 194cdf0e10cSrcweir maViewTransformation, 195cdf0e10cSrcweir aViewRange, 196cdf0e10cSrcweir maViewInformation2D.getVisualizedPage(), 197cdf0e10cSrcweir maViewInformation2D.getViewTime(), 198cdf0e10cSrcweir maViewInformation2D.getExtendedInformationSequence()); 199cdf0e10cSrcweir pThis->mfDiscreteOne = 0.0; 200cdf0e10cSrcweir } 201cdf0e10cSrcweir 202cdf0e10cSrcweir return maViewInformation2D; 203cdf0e10cSrcweir } 204cdf0e10cSrcweir 205cdf0e10cSrcweir void OverlayManager::impApplyRemoveActions(OverlayObject& rTarget) 206cdf0e10cSrcweir { 207cdf0e10cSrcweir // handle evtl. animation 208cdf0e10cSrcweir if(rTarget.allowsAnimation()) 209cdf0e10cSrcweir { 210cdf0e10cSrcweir // remove from event chain 211cdf0e10cSrcweir RemoveEvent(&rTarget); 212cdf0e10cSrcweir } 213cdf0e10cSrcweir 214cdf0e10cSrcweir // make invisible 215cdf0e10cSrcweir invalidateRange(rTarget.getBaseRange()); 216cdf0e10cSrcweir 217cdf0e10cSrcweir // clear manager 218cdf0e10cSrcweir rTarget.mpOverlayManager = 0; 219cdf0e10cSrcweir } 220cdf0e10cSrcweir 221cdf0e10cSrcweir void OverlayManager::impApplyAddActions(OverlayObject& rTarget) 222cdf0e10cSrcweir { 223cdf0e10cSrcweir // set manager 224cdf0e10cSrcweir rTarget.mpOverlayManager = this; 225cdf0e10cSrcweir 226cdf0e10cSrcweir // make visible 227cdf0e10cSrcweir invalidateRange(rTarget.getBaseRange()); 228cdf0e10cSrcweir 229cdf0e10cSrcweir // handle evtl. animation 230cdf0e10cSrcweir if(rTarget.allowsAnimation()) 231cdf0e10cSrcweir { 232cdf0e10cSrcweir // Trigger at current time to get alive. This will do the 233cdf0e10cSrcweir // object-specific next time calculation and hand over adding 234cdf0e10cSrcweir // again to the scheduler to the animated object, too. This works for 235cdf0e10cSrcweir // a paused or non-paused animator. 236cdf0e10cSrcweir rTarget.Trigger(GetTime()); 237cdf0e10cSrcweir } 238cdf0e10cSrcweir } 239cdf0e10cSrcweir 240cdf0e10cSrcweir OverlayManager::~OverlayManager() 241cdf0e10cSrcweir { 242cdf0e10cSrcweir // The OverlayManager is not the owner of the OverlayObjects 243cdf0e10cSrcweir // and thus will not delete them, but remove them. Profit here 244cdf0e10cSrcweir // from knowing that all will be removed 245cdf0e10cSrcweir const sal_uInt32 nSize(maOverlayObjects.size()); 246cdf0e10cSrcweir 247cdf0e10cSrcweir if(nSize) 248cdf0e10cSrcweir { 249cdf0e10cSrcweir for(OverlayObjectVector::iterator aIter(maOverlayObjects.begin()); aIter != maOverlayObjects.end(); aIter++) 250cdf0e10cSrcweir { 251cdf0e10cSrcweir OSL_ENSURE(*aIter, "Corrupted OverlayObject List (!)"); 252cdf0e10cSrcweir OverlayObject& rCandidate = **aIter; 253cdf0e10cSrcweir impApplyRemoveActions(rCandidate); 254cdf0e10cSrcweir } 255cdf0e10cSrcweir 256cdf0e10cSrcweir // erase vector 257cdf0e10cSrcweir maOverlayObjects.clear(); 258cdf0e10cSrcweir } 259cdf0e10cSrcweir } 260cdf0e10cSrcweir 261cdf0e10cSrcweir void OverlayManager::completeRedraw(const Region& rRegion, OutputDevice* pPreRenderDevice) const 262cdf0e10cSrcweir { 263cdf0e10cSrcweir if(!rRegion.IsEmpty() && maOverlayObjects.size()) 264cdf0e10cSrcweir { 265cdf0e10cSrcweir // check for changed MapModes. That may influence the 266cdf0e10cSrcweir // logical size of pixel based OverlayObjects (like BitmapHandles) 267cdf0e10cSrcweir //ImpCheckMapModeChange(); 268cdf0e10cSrcweir 269cdf0e10cSrcweir // paint members 270cdf0e10cSrcweir const Rectangle aRegionBoundRect(rRegion.GetBoundRect()); 271cdf0e10cSrcweir const basegfx::B2DRange aRegionRange( 272cdf0e10cSrcweir aRegionBoundRect.Left(), aRegionBoundRect.Top(), 273cdf0e10cSrcweir aRegionBoundRect.Right(), aRegionBoundRect.Bottom()); 274cdf0e10cSrcweir 275cdf0e10cSrcweir OutputDevice& rTarget = (pPreRenderDevice) ? *pPreRenderDevice : getOutputDevice(); 276cdf0e10cSrcweir ImpDrawMembers(aRegionRange, rTarget); 277cdf0e10cSrcweir } 278cdf0e10cSrcweir } 279cdf0e10cSrcweir 280cdf0e10cSrcweir void OverlayManager::flush() 281cdf0e10cSrcweir { 282cdf0e10cSrcweir // default has nothing to do 283cdf0e10cSrcweir } 284cdf0e10cSrcweir 285cdf0e10cSrcweir // #i68597# part of content gets copied, react on it 286cdf0e10cSrcweir void OverlayManager::copyArea(const Point& /*rDestPt*/, const Point& /*rSrcPt*/, const Size& /*rSrcSize*/) 287cdf0e10cSrcweir { 288cdf0e10cSrcweir // unbuffered versions do nothing here 289cdf0e10cSrcweir } 290cdf0e10cSrcweir 291cdf0e10cSrcweir void OverlayManager::restoreBackground(const Region& /*rRegion*/) const 292cdf0e10cSrcweir { 293cdf0e10cSrcweir // unbuffered versions do nothing here 294cdf0e10cSrcweir } 295cdf0e10cSrcweir 296cdf0e10cSrcweir void OverlayManager::add(OverlayObject& rOverlayObject) 297cdf0e10cSrcweir { 298cdf0e10cSrcweir OSL_ENSURE(0 == rOverlayObject.mpOverlayManager, "OverlayObject is added twice to an OverlayManager (!)"); 299cdf0e10cSrcweir 300cdf0e10cSrcweir // add to the end of chain to preserve display order in paint 301cdf0e10cSrcweir maOverlayObjects.push_back(&rOverlayObject); 302cdf0e10cSrcweir 303cdf0e10cSrcweir // execute add actions 304cdf0e10cSrcweir impApplyAddActions(rOverlayObject); 305cdf0e10cSrcweir } 306cdf0e10cSrcweir 307cdf0e10cSrcweir void OverlayManager::remove(OverlayObject& rOverlayObject) 308cdf0e10cSrcweir { 309cdf0e10cSrcweir OSL_ENSURE(rOverlayObject.mpOverlayManager == this, "OverlayObject is removed from wrong OverlayManager (!)"); 310cdf0e10cSrcweir 311cdf0e10cSrcweir // execute remove actions 312cdf0e10cSrcweir impApplyRemoveActions(rOverlayObject); 313cdf0e10cSrcweir 314cdf0e10cSrcweir // remove from vector 315cdf0e10cSrcweir const OverlayObjectVector::iterator aFindResult = ::std::find(maOverlayObjects.begin(), maOverlayObjects.end(), &rOverlayObject); 316cdf0e10cSrcweir const bool bFound(aFindResult != maOverlayObjects.end()); 317cdf0e10cSrcweir OSL_ENSURE(bFound, "OverlayObject NOT found at OverlayManager (!)"); 318cdf0e10cSrcweir 319cdf0e10cSrcweir if(bFound) 320cdf0e10cSrcweir { 321cdf0e10cSrcweir maOverlayObjects.erase(aFindResult); 322cdf0e10cSrcweir } 323cdf0e10cSrcweir } 324cdf0e10cSrcweir 325cdf0e10cSrcweir void OverlayManager::invalidateRange(const basegfx::B2DRange& rRange) 326cdf0e10cSrcweir { 327cdf0e10cSrcweir if(OUTDEV_WINDOW == getOutputDevice().GetOutDevType()) 328cdf0e10cSrcweir { 329cdf0e10cSrcweir if(getDrawinglayerOpt().IsAntiAliasing()) 330cdf0e10cSrcweir { 331cdf0e10cSrcweir // assume AA needs one pixel more and invalidate one pixel more 332cdf0e10cSrcweir const double fDiscreteOne(getDiscreteOne()); 333cdf0e10cSrcweir const Rectangle aInvalidateRectangle( 334cdf0e10cSrcweir (sal_Int32)floor(rRange.getMinX() - fDiscreteOne), 335cdf0e10cSrcweir (sal_Int32)floor(rRange.getMinY() - fDiscreteOne), 336cdf0e10cSrcweir (sal_Int32)ceil(rRange.getMaxX() + fDiscreteOne), 337cdf0e10cSrcweir (sal_Int32)ceil(rRange.getMaxY() + fDiscreteOne)); 338cdf0e10cSrcweir 339cdf0e10cSrcweir // simply invalidate 340cdf0e10cSrcweir ((Window&)getOutputDevice()).Invalidate(aInvalidateRectangle, INVALIDATE_NOERASE); 341cdf0e10cSrcweir } 342cdf0e10cSrcweir else 343cdf0e10cSrcweir { 344cdf0e10cSrcweir // #i77674# transform to rectangle. Use floor/ceil to get all covered 345cdf0e10cSrcweir // discrete pixels, see #i75163# and OverlayManagerBuffered::invalidateRange 346cdf0e10cSrcweir const Rectangle aInvalidateRectangle( 347cdf0e10cSrcweir (sal_Int32)floor(rRange.getMinX()), (sal_Int32)floor(rRange.getMinY()), 348cdf0e10cSrcweir (sal_Int32)ceil(rRange.getMaxX()), (sal_Int32)ceil(rRange.getMaxY())); 349cdf0e10cSrcweir 350cdf0e10cSrcweir // simply invalidate 351cdf0e10cSrcweir ((Window&)getOutputDevice()).Invalidate(aInvalidateRectangle, INVALIDATE_NOERASE); 352cdf0e10cSrcweir } 353cdf0e10cSrcweir } 354cdf0e10cSrcweir } 355cdf0e10cSrcweir 356cdf0e10cSrcweir // stripe support ColA 357cdf0e10cSrcweir void OverlayManager::setStripeColorA(Color aNew) 358cdf0e10cSrcweir { 359cdf0e10cSrcweir if(aNew != maStripeColorA) 360cdf0e10cSrcweir { 361cdf0e10cSrcweir maStripeColorA = aNew; 362cdf0e10cSrcweir ImpStripeDefinitionChanged(); 363cdf0e10cSrcweir } 364cdf0e10cSrcweir } 365cdf0e10cSrcweir 366cdf0e10cSrcweir // stripe support ColB 367cdf0e10cSrcweir void OverlayManager::setStripeColorB(Color aNew) 368cdf0e10cSrcweir { 369cdf0e10cSrcweir if(aNew != maStripeColorB) 370cdf0e10cSrcweir { 371cdf0e10cSrcweir maStripeColorB = aNew; 372cdf0e10cSrcweir ImpStripeDefinitionChanged(); 373cdf0e10cSrcweir } 374cdf0e10cSrcweir } 375cdf0e10cSrcweir 376cdf0e10cSrcweir // stripe support StripeLengthPixel 377cdf0e10cSrcweir void OverlayManager::setStripeLengthPixel(sal_uInt32 nNew) 378cdf0e10cSrcweir { 379cdf0e10cSrcweir if(nNew != mnStripeLengthPixel) 380cdf0e10cSrcweir { 381cdf0e10cSrcweir mnStripeLengthPixel = nNew; 382cdf0e10cSrcweir ImpStripeDefinitionChanged(); 383cdf0e10cSrcweir } 384cdf0e10cSrcweir } 385cdf0e10cSrcweir } // end of namespace overlay 386cdf0e10cSrcweir } // end of namespace sdr 387cdf0e10cSrcweir 388cdf0e10cSrcweir ////////////////////////////////////////////////////////////////////////////// 389cdf0e10cSrcweir // eof 390