LibreOffice Module vcl (master) 1
Public Member Functions | Private Attributes | List of all members
GlyphItem Class Reference

#include <impglyphitem.hxx>

Collaboration diagram for GlyphItem:
[legend]

Public Member Functions

 GlyphItem (int nCharPos, int nCharCount, sal_GlyphId aGlyphId, const basegfx::B2DPoint &rLinearPos, GlyphItemFlags nFlags, double nOrigWidth, double nXOffset, double nYOffset)
 
bool IsInCluster () const
 
bool IsRTLGlyph () const
 
bool IsVertical () const
 
bool IsSpacing () const
 
bool IsDropped () const
 
bool IsClusterStart () const
 
bool IsUnsafeToBreak () const
 
bool IsSafeToInsertKashida () const
 
bool GetGlyphBoundRect (const LogicalFontInstance *, tools::Rectangle &) const
 
bool GetGlyphOutline (const LogicalFontInstance *, basegfx::B2DPolyPolygon &) const
 
void dropGlyph ()
 
sal_GlyphId glyphId () const
 
int charCount () const
 
double origWidth () const
 
int charPos () const
 
double xOffset () const
 
double yOffset () const
 
double newWidth () const
 
const basegfx::B2DPointlinearPos () const
 
void setNewWidth (double width)
 
void addNewWidth (double width)
 
void setLinearPos (const basegfx::B2DPoint &point)
 
void setLinearPosX (double x)
 
void adjustLinearPosX (double diff)
 
bool isLayoutEquivalent (const GlyphItem &other) const
 

Private Attributes

basegfx::B2DPoint m_aLinearPos
 
double m_nOrigWidth
 
sal_Int32 m_nCharPos
 
double m_nXOffset
 
double m_nYOffset
 
double m_nNewWidth
 
sal_GlyphId m_aGlyphId
 
GlyphItemFlags m_nFlags
 
sal_Int8 m_nCharCount
 

Detailed Description

Definition at line 52 of file impglyphitem.hxx.

Constructor & Destructor Documentation

◆ GlyphItem()

GlyphItem::GlyphItem ( int  nCharPos,
int  nCharCount,
sal_GlyphId  aGlyphId,
const basegfx::B2DPoint rLinearPos,
GlyphItemFlags  nFlags,
double  nOrigWidth,
double  nXOffset,
double  nYOffset 
)
inline

Definition at line 65 of file impglyphitem.hxx.

References m_nFlags.

Member Function Documentation

◆ addNewWidth()

void GlyphItem::addNewWidth ( double  width)
inline

Definition at line 106 of file impglyphitem.hxx.

◆ adjustLinearPosX()

void GlyphItem::adjustLinearPosX ( double  diff)
inline

Definition at line 109 of file impglyphitem.hxx.

References basegfx::Tuple2D< typename TYPE >::adjustX().

◆ charCount()

int GlyphItem::charCount ( ) const
inline

Definition at line 97 of file impglyphitem.hxx.

Referenced by vcl::PDFWriterImpl::drawLayout().

◆ charPos()

int GlyphItem::charPos ( ) const
inline

◆ dropGlyph()

void GlyphItem::dropGlyph ( )
inline

Definition at line 135 of file impglyphitem.hxx.

References IS_DROPPED, m_nCharPos, and m_nFlags.

◆ GetGlyphBoundRect()

bool GlyphItem::GetGlyphBoundRect ( const LogicalFontInstance pFontInstance,
tools::Rectangle rRect 
) const
inline

◆ GetGlyphOutline()

bool GlyphItem::GetGlyphOutline ( const LogicalFontInstance pFontInstance,
basegfx::B2DPolyPolygon rPoly 
) const
inline

Definition at line 129 of file impglyphitem.hxx.

References LogicalFontInstance::GetGlyphOutline(), IsVertical(), and m_aGlyphId.

Referenced by SalLayout::GetOutline().

◆ glyphId()

sal_GlyphId GlyphItem::glyphId ( ) const
inline

Definition at line 96 of file impglyphitem.hxx.

Referenced by vcl::PDFWriterImpl::drawLayout().

◆ IsClusterStart()

bool GlyphItem::IsClusterStart ( ) const
inline

Definition at line 85 of file impglyphitem.hxx.

References IS_CLUSTER_START, and m_nFlags.

Referenced by vcl::PDFWriterImpl::drawLayout().

◆ IsDropped()

bool GlyphItem::IsDropped ( ) const
inline

Definition at line 84 of file impglyphitem.hxx.

References IS_DROPPED, and m_nFlags.

◆ IsInCluster()

bool GlyphItem::IsInCluster ( ) const
inline

Definition at line 80 of file impglyphitem.hxx.

References IS_IN_CLUSTER, and m_nFlags.

Referenced by vcl::PDFWriterImpl::drawLayout().

◆ isLayoutEquivalent()

bool GlyphItem::isLayoutEquivalent ( const GlyphItem other) const
inline

◆ IsRTLGlyph()

bool GlyphItem::IsRTLGlyph ( ) const
inline

Definition at line 81 of file impglyphitem.hxx.

References IS_RTL_GLYPH, and m_nFlags.

◆ IsSafeToInsertKashida()

bool GlyphItem::IsSafeToInsertKashida ( ) const
inline

Definition at line 87 of file impglyphitem.hxx.

References IS_SAFE_TO_INSERT_KASHIDA, and m_nFlags.

◆ IsSpacing()

bool GlyphItem::IsSpacing ( ) const
inline

◆ IsUnsafeToBreak()

bool GlyphItem::IsUnsafeToBreak ( ) const
inline

Definition at line 86 of file impglyphitem.hxx.

References IS_UNSAFE_TO_BREAK, and m_nFlags.

◆ IsVertical()

bool GlyphItem::IsVertical ( ) const
inline

◆ linearPos()

const basegfx::B2DPoint & GlyphItem::linearPos ( ) const
inline

Definition at line 103 of file impglyphitem.hxx.

◆ newWidth()

double GlyphItem::newWidth ( ) const
inline

◆ origWidth()

double GlyphItem::origWidth ( ) const
inline

◆ setLinearPos()

void GlyphItem::setLinearPos ( const basegfx::B2DPoint point)
inline

Definition at line 107 of file impglyphitem.hxx.

References point().

◆ setLinearPosX()

void GlyphItem::setLinearPosX ( double  x)
inline

Definition at line 108 of file impglyphitem.hxx.

References basegfx::Tuple2D< typename TYPE >::setX(), and x.

◆ setNewWidth()

void GlyphItem::setNewWidth ( double  width)
inline

Definition at line 105 of file impglyphitem.hxx.

◆ xOffset()

double GlyphItem::xOffset ( ) const
inline

Definition at line 100 of file impglyphitem.hxx.

◆ yOffset()

double GlyphItem::yOffset ( ) const
inline

Definition at line 101 of file impglyphitem.hxx.

Member Data Documentation

◆ m_aGlyphId

sal_GlyphId GlyphItem::m_aGlyphId
private

Definition at line 60 of file impglyphitem.hxx.

Referenced by GetGlyphBoundRect(), GetGlyphOutline(), and isLayoutEquivalent().

◆ m_aLinearPos

basegfx::B2DPoint GlyphItem::m_aLinearPos
private

Definition at line 54 of file impglyphitem.hxx.

Referenced by isLayoutEquivalent().

◆ m_nCharCount

sal_Int8 GlyphItem::m_nCharCount
private

Definition at line 62 of file impglyphitem.hxx.

Referenced by isLayoutEquivalent().

◆ m_nCharPos

sal_Int32 GlyphItem::m_nCharPos
private

Definition at line 56 of file impglyphitem.hxx.

Referenced by dropGlyph(), and isLayoutEquivalent().

◆ m_nFlags

GlyphItemFlags GlyphItem::m_nFlags
private

Definition at line 61 of file impglyphitem.hxx.

Referenced by dropGlyph(), and isLayoutEquivalent().

◆ m_nNewWidth

double GlyphItem::m_nNewWidth
private

Definition at line 59 of file impglyphitem.hxx.

Referenced by isLayoutEquivalent().

◆ m_nOrigWidth

double GlyphItem::m_nOrigWidth
private

Definition at line 55 of file impglyphitem.hxx.

Referenced by isLayoutEquivalent().

◆ m_nXOffset

double GlyphItem::m_nXOffset
private

Definition at line 57 of file impglyphitem.hxx.

Referenced by isLayoutEquivalent().

◆ m_nYOffset

double GlyphItem::m_nYOffset
private

Definition at line 58 of file impglyphitem.hxx.

Referenced by isLayoutEquivalent().


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