/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * This file incorporates work covered by the following license notice: * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright * ownership. The ASF licenses this file to you under the Apache * License, Version 2.0 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
namespace com::sun::star::drawing
{ class XDrawPage;
}
namespace com::sun::star::uno
{ template <class interface_type> class Reference; template <typename> class Sequence;
}
namespace drawinglayer::geometry
{ /** ViewInformation2D class
This class holds all view-relevant information for a 2d geometry. The most used data is for convenience offered directly using basegfx tooling classes.
*/ class DRAWINGLAYERCORE_DLLPUBLIC ViewInformation2D
{ public: typedef o3tl::cow_wrapper<ImpViewInformation2D, o3tl::ThreadSafeRefCountingPolicy> ImplType;
private: /// pointer to private implementation class
ImplType mpViewInformation2D;
public: /** Constructor: Create a ViewInformation2D
@param rObjectTransformation The Transformation from Object to World coordinates (normally logic coordinates).
@param rViewTransformation The Transformation from World to View coordinates (normally logic coordinates to discrete units, e.g. pixels).
@param rViewport The visible part of the view in World coordinates. If empty (getViewport().isEmpty()) everything is visible. The data is in World coordinates.
@param rxDrawPage The currently displayed page. This information is needed e.g. due to existing PageNumber fields which need to be interpreted.
@param fViewTime The time the view is defined for. Default is 0.0. This parameter is used e.g. for animated objects
@param bReducedDisplayQuality Support reduced DisplayQuality, PropertyName is 'ReducedDisplayQuality'. This is used e.g. to allow to lower display quality for OverlayPrimitives and may lead to simpler decompositions in the local create2DDecomposition implementations of the primitives
@param bUseAntiAliasing Determine if to use AntiAliasing on target pixel device
@param bPixelSnapHairline Determine if to use PixelSnapHairline on target pixel device
*/ /// default (empty) constructor
ViewInformation2D();
/// On-demand prepared Object to View transformation and its inverse for convenience const basegfx::B2DHomMatrix& getObjectToViewTransformation() const; const basegfx::B2DHomMatrix& getInverseObjectToViewTransformation() const;
/// On-demand prepared Viewport in discrete units for convenience /// Empty viewport means everything is visible. const basegfx::B2DRange& getDiscreteViewport() const;
/// Support reduced DisplayQuality, PropertyName is 'ReducedDisplayQuality'. bool getReducedDisplayQuality() const; void setReducedDisplayQuality(bool bNew);
/// Determine if to use AntiAliasing on target pixel device, PropertyName is 'UseAntiAliasing' bool getUseAntiAliasing() const; void setUseAntiAliasing(bool bNew);
/// Determine if to use PixelSnapHairline on target pixel device, PropertyName is 'PixelSnapHairline' bool getPixelSnapHairline() const; void setPixelSnapHairline(bool bNew);
Color getAutoColor() const; void setAutoColor(Color aNew);
/// claim that in the view processed a TextEdit is active bool getTextEditActive() const; void setTextEditActive(bool bNew);
/// claim that the view processed is an EditView visualization bool getEditViewActive() const; void setEditViewActive(bool bNew);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.