58 virtual void Invoke() final override;
86 setPreviewRenderer(
true);
113 const sal_uInt32 nVOCCount(getViewObjectContactCount());
115 for(sal_uInt32
a(0);
a < nVOCCount;
a++)
146 updateViewInformation2D(aNewViewInformation2D);
167 if(pStartPage && !rRange.
isEmpty())
205 aPageObjectTransform.
set(0, 0, aPageObjectBound.
getWidth());
206 aPageObjectTransform.
set(1, 1, aPageObjectBound.
getHeight());
207 aPageObjectTransform.
set(0, 2, aPageObjectBound.
getMinX());
208 aPageObjectTransform.
set(1, 2, aPageObjectBound.
getMinY());
215 if(mpExtractor && pPage)
220 const double fPageWidth(aPageSize.
getWidth());
221 const double fPageHeight(aPageSize.
getHeight());
226 static bool bInCreatePrimitive2D(
false);
228 if(bInCreatePrimitive2D)
231 xPageContent.resize(2);
249 bInCreatePrimitive2D =
true;
252 mpExtractor->SetStartPage(pPage);
255 mpExtractor->SetViewObjectContactRedirector(GetObjectContact().GetViewObjectContactRedirector());
258 xPageContent = mpExtractor->createPrimitive2DSequenceForPage();
262 mpExtractor->SetViewObjectContactRedirector(
nullptr);
265 bInCreatePrimitive2D =
false;
269 if(!xPageContent.empty())
273 xDrawPage, aPageObjectTransform, fPageWidth, fPageHeight, std::move(xPageContent)));
274 rVisitor.
visit(xPagePreview);
277 else if(bCreateGrayFrame)
283 aPageObjectTransform));
284 rVisitor.
visit(xFrameHit);
292 aOwnOutline.
transform(aPageObjectTransform);
297 rVisitor.
visit(xGrayFrame);
314 std::unique_ptr<PagePrimitiveExtractor> pCandidate = std::move(
mpExtractor);
318 pCandidate->SetStartPage(
nullptr);
basegfx::BColor getBColor() const
virtual void Start(bool bStartTimer=true) override
virtual const tools::Rectangle & GetLastBoundRect() const
SdrPage * GetReferencedPage() const
A SdrPage contains exactly one SdrObjList and a description of the physical page dimensions (size / m...
const sdr::contact::ViewContact & GetViewContact() const
tools::Long GetHeight() const
tools::Long GetWidth() const
constexpr tools::Long getHeight() const
constexpr tools::Long getWidth() const
void SetPriority(TaskPriority ePriority)
void set(sal_uInt16 nRow, sal_uInt16 nColumn, double fValue)
void transform(const basegfx::B2DHomMatrix &rMatrix)
bool overlaps(const Range2D &rRange) const
virtual void visit(const Primitive2DReference &)=0
const SdrPage * GetStartPage() const
ViewObjectContactOfPageObj(ObjectContact &rObjectContact, ViewContact &rViewContact)
virtual ~ViewObjectContactOfPageObj() override
virtual void createPrimitive2DSequence(const DisplayInfo &rDisplayInfo, drawinglayer::primitive2d::Primitive2DDecompositionVisitor &rVisitor) const override
std::unique_ptr< PagePrimitiveExtractor > mpExtractor
B2DPolygon createPolygonFromRect(const B2DRectangle &rRect, double fRadiusX, double fRadiusY)
B2DPolygon const & createUnitPolygon()
rtl::Reference< BasePrimitive2D > Primitive2DReference
Primitive2DReference createHiddenGeometryPrimitives2D(const basegfx::B2DHomMatrix &rMatrix)
uno::Reference< drawing::XDrawPage > GetXDrawPageForSdrPage(SdrPage *pPage) noexcept
returns a StarOffice API wrapper for the given SdrPage