LibreOffice Module drawinglayer (master) 1
Public Member Functions | Private Attributes | List of all members
drawinglayer::primitive2d::TextHierarchyEditPrimitive2D Class Referencefinal

TextHierarchyEditPrimitive2D class. More...

#include <texthierarchyprimitive2d.hxx>

Inheritance diagram for drawinglayer::primitive2d::TextHierarchyEditPrimitive2D:
[legend]
Collaboration diagram for drawinglayer::primitive2d::TextHierarchyEditPrimitive2D:
[legend]

Public Member Functions

 TextHierarchyEditPrimitive2D (Primitive2DContainer &&aContent)
 constructor More...
 
const Primitive2DContainergetContent () 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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ TextHierarchyEditPrimitive2D()

drawinglayer::primitive2d::TextHierarchyEditPrimitive2D::TextHierarchyEditPrimitive2D ( Primitive2DContainer &&  aContent)
explicit

constructor

Definition at line 139 of file texthierarchyprimitive2d.cxx.

Member Function Documentation

◆ getContent()

const Primitive2DContainer & drawinglayer::primitive2d::TextHierarchyEditPrimitive2D::getContent ( ) const
inline

data read access

Definition at line 182 of file texthierarchyprimitive2d.hxx.

◆ getPrimitive2DID()

sal_uInt32 drawinglayer::primitive2d::TextHierarchyEditPrimitive2D::getPrimitive2DID ( ) const
overridevirtual

Member Data Documentation

◆ maContent

Primitive2DContainer drawinglayer::primitive2d::TextHierarchyEditPrimitive2D::maContent
private

the content

Definition at line 175 of file texthierarchyprimitive2d.hxx.


The documentation for this class was generated from the following files: