LibreOffice Module drawinglayer (master) 1
|
TextHierarchyEditPrimitive2D class. More...
#include <texthierarchyprimitive2d.hxx>
Public Member Functions | |
TextHierarchyEditPrimitive2D (Primitive2DContainer &&aContent) | |
constructor More... | |
const Primitive2DContainer & | getContent () const |
data read access More... | |
virtual sal_uInt32 | getPrimitive2DID () const override |
provide unique ID More... | |
Public Member Functions inherited from drawinglayer::primitive2d::BasePrimitive2D | |
BasePrimitive2D () | |
virtual | ~BasePrimitive2D () override |
virtual bool | operator== (const BasePrimitive2D &rPrimitive) const |
the ==operator is mainly needed to allow testing newly-created primitives against their last incarnation which buffers/holds the made decompositions. More... | |
bool | operator!= (const BasePrimitive2D &rPrimitive) const |
virtual basegfx::B2DRange | getB2DRange (const geometry::ViewInformation2D &rViewInformation) const |
The default implementation will use getDecomposition results to create the range. More... | |
virtual sal_uInt32 | getPrimitive2DID () const =0 |
provide unique ID for fast identifying of known primitive implementations in renderers. More... | |
virtual void | get2DDecomposition (Primitive2DDecompositionVisitor &rVisitor, const geometry::ViewInformation2D &rViewInformation) const |
The default implementation will return an empty sequence. More... | |
Primitive2DContainer | getDecomposition (const css::uno::Sequence< css::beans::PropertyValue > &rViewParameters) |
The getDecomposition implementation for UNO API will use getDecomposition from this implementation. More... | |
css::geometry::RealRectangle2D | getRange (const css::uno::Sequence< css::beans::PropertyValue > &rViewParameters) |
The getRange implementation for UNO API will use getRange from this implementation. More... | |
virtual sal_Int64 | estimateUsage () |
Public Member Functions inherited from salhelper::SimpleReferenceObject | |
SimpleReferenceObject () | |
void | acquire () |
void | release () |
Private Attributes | |
Primitive2DContainer | maContent |
the content More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from salhelper::SimpleReferenceObject | |
static void * | operator new (std::size_t nSize) |
static void * | operator new (std::size_t nSize, std::nothrow_t const &rNothrow) |
static void | operator delete (void *pPtr) |
static void | operator delete (void *pPtr, std::nothrow_t const &rNothrow) |
Protected Member Functions inherited from salhelper::SimpleReferenceObject | |
virtual | ~SimpleReferenceObject () COVERITY_NOEXCEPT_FALSE |
Protected Attributes inherited from salhelper::SimpleReferenceObject | |
oslInterlockedCount | m_nCount |
TextHierarchyEditPrimitive2D class.
Primitive to encapsulate text from an active text edit; this is separate from other text data since some renderers need to suppress this output due to painting the edited text in e.g. an OutlinerEditView in the active text edit control. Deriving now from BasePrimitive2D to turn around functionality: This will decompose to nothing -> suppress. In renderers that need to visualize it (only VclMetafileProcessor2D for now), it needs to be detected and used (see there). Doing it this way around since we will potentially have many pixel renderers and only one MetafileProcessor, so it will be one action less to support (and to potentially forget about ) in these implementations.
Definition at line 171 of file texthierarchyprimitive2d.hxx.
|
explicit |
constructor
Definition at line 139 of file texthierarchyprimitive2d.cxx.
|
inline |
data read access
Definition at line 182 of file texthierarchyprimitive2d.hxx.
|
overridevirtual |
provide unique ID
Implements drawinglayer::primitive2d::BasePrimitive2D.
Definition at line 146 of file texthierarchyprimitive2d.cxx.
References PRIMITIVE2D_ID_TEXTHIERARCHYEDITPRIMITIVE2D.
|
private |
the content
Definition at line 175 of file texthierarchyprimitive2d.hxx.