tablehandles.cxx (f6e50924) | tablehandles.cxx (1cd65da9) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 28 unchanged lines hidden (view full) --- 37#include <basegfx/polygon/b2dpolygontools.hxx> 38#include <svx/sdr/overlay/overlayobject.hxx> 39#include <svx/sdr/overlay/overlaymanager.hxx> 40#include <svx/sdrpagewindow.hxx> 41#include <svx/sdrpaintwindow.hxx> 42#include <svx/svdmrkv.hxx> 43#include <svx/svdpagv.hxx> 44#include <drawinglayer/primitive2d/polypolygonprimitive2d.hxx> | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 28 unchanged lines hidden (view full) --- 37#include <basegfx/polygon/b2dpolygontools.hxx> 38#include <svx/sdr/overlay/overlayobject.hxx> 39#include <svx/sdr/overlay/overlaymanager.hxx> 40#include <svx/sdrpagewindow.hxx> 41#include <svx/sdrpaintwindow.hxx> 42#include <svx/svdmrkv.hxx> 43#include <svx/svdpagv.hxx> 44#include <drawinglayer/primitive2d/polypolygonprimitive2d.hxx> |
45#include <svx/sdr/overlay/overlayhatchrect.hxx> | 45#include <svx/sdr/overlay/overlayrectangle.hxx> |
46#include <drawinglayer/primitive2d/hiddengeometryprimitive2d.hxx> 47 48namespace sdr { namespace table { 49 50// -------------------------------------------------------------------- 51 52class OverlayTableEdge : public sdr::overlay::OverlayObject 53{ --- 193 unchanged lines hidden (view full) --- 247 } 248 } 249 250 return aRetval; 251} 252 253// ==================================================================== 254 | 46#include <drawinglayer/primitive2d/hiddengeometryprimitive2d.hxx> 47 48namespace sdr { namespace table { 49 50// -------------------------------------------------------------------- 51 52class OverlayTableEdge : public sdr::overlay::OverlayObject 53{ --- 193 unchanged lines hidden (view full) --- 247 } 248 } 249 250 return aRetval; 251} 252 253// ==================================================================== 254 |
255TableBorderHdl::TableBorderHdl( const Rectangle& rRect ) 256: SdrHdl( rRect.TopLeft(), HDL_MOVE ) 257, maRectangle( rRect ) | 255TableBorderHdl::TableBorderHdl( 256 const Rectangle& rRect, 257 bool bAnimate) 258: SdrHdl(rRect.TopLeft(), HDL_MOVE), 259 maRectangle(rRect), 260 mbAnimate(bAnimate) |
258{ | 261{ |
259 | |
260} 261 262Pointer TableBorderHdl::GetPointer() const 263{ 264 return POINTER_MOVE; 265} 266 267// create marker for this kind --- 5 unchanged lines hidden (view full) --- 273 { 274 SdrMarkView* pView = pHdlList->GetView(); 275 SdrPageView* pPageView = pView->GetSdrPageView(); 276 277 if(pPageView) 278 { 279 for(sal_uInt32 nWindow = 0; nWindow < pPageView->PageWindowCount(); nWindow++) 280 { | 262} 263 264Pointer TableBorderHdl::GetPointer() const 265{ 266 return POINTER_MOVE; 267} 268 269// create marker for this kind --- 5 unchanged lines hidden (view full) --- 275 { 276 SdrMarkView* pView = pHdlList->GetView(); 277 SdrPageView* pPageView = pView->GetSdrPageView(); 278 279 if(pPageView) 280 { 281 for(sal_uInt32 nWindow = 0; nWindow < pPageView->PageWindowCount(); nWindow++) 282 { |
281 // const SdrPageViewWinRec& rPageViewWinRec = rPageViewWinList[b]; | |
282 const SdrPageWindow& rPageWindow = *pPageView->GetPageWindow(nWindow); 283 284 if(rPageWindow.GetPaintWindow().OutputToWindow()) 285 { 286 if(rPageWindow.GetOverlayManager()) 287 { 288 const basegfx::B2DRange aRange(vcl::unotools::b2DRectangleFromRectangle(maRectangle)); | 283 const SdrPageWindow& rPageWindow = *pPageView->GetPageWindow(nWindow); 284 285 if(rPageWindow.GetPaintWindow().OutputToWindow()) 286 { 287 if(rPageWindow.GetOverlayManager()) 288 { 289 const basegfx::B2DRange aRange(vcl::unotools::b2DRectangleFromRectangle(maRectangle)); |
289 sdr::overlay::OverlayObject* pOverlayObject = new sdr::overlay::OverlayHatchRect( | 290 const SvtOptionsDrawinglayer aSvtOptionsDrawinglayer; 291 const Color aHilightColor(aSvtOptionsDrawinglayer.getHilightColor()); 292 const double fTransparence(aSvtOptionsDrawinglayer.GetTransparentSelectionPercent() * 0.01); 293 294 sdr::overlay::OverlayObject* pOverlayObject = new sdr::overlay::OverlayRectangle( |
290 aRange.getMinimum(), 291 aRange.getMaximum(), | 295 aRange.getMinimum(), 296 aRange.getMaximum(), |
292 Color(0x80, 0x80, 0x80), | 297 aHilightColor, 298 fTransparence, |
293 6.0, 294 0.0, | 299 6.0, 300 0.0, |
295 45 * F_PI180, 296 0.0); | 301 0.0, 302 500, 303 // make animation dependent from text edit active, because for tables 304 // this handle is also used when text edit *is* active for it. This 305 // interferes too much concerning repaint stuff (at least as long as 306 // text edit is not yet on the overlay) 307 getAnimate()); |
297 298 rPageWindow.GetOverlayManager()->add(*pOverlayObject); 299 maOverlayGroup.append(*pOverlayObject); 300 } 301 } 302 } 303 } 304 } 305} 306 307////////////////////////////////////////////////////////////////////////////// 308 309} // end of namespace table 310} // end of namespace sdr | 308 309 rPageWindow.GetOverlayManager()->add(*pOverlayObject); 310 maOverlayGroup.append(*pOverlayObject); 311 } 312 } 313 } 314 } 315 } 316} 317 318////////////////////////////////////////////////////////////////////////////// 319 320} // end of namespace table 321} // end of namespace sdr |