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 DevicePoint &rLinearPos, GlyphItemFlags nFlags, DeviceCoordinate nOrigWidth, int nXOffset, int nYOffset)
 
bool IsInCluster () const
 
bool IsRTLGlyph () const
 
bool IsDiacritic () const
 
bool IsVertical () const
 
bool IsSpacing () const
 
bool AllowKashida () const
 
bool IsDropped () const
 
bool IsClusterStart () const
 
bool IsUnsafeToBreak () const
 
bool GetGlyphBoundRect (const LogicalFontInstance *, tools::Rectangle &) const
 
bool GetGlyphOutline (const LogicalFontInstance *, basegfx::B2DPolyPolygon &) const
 
void dropGlyph ()
 
sal_GlyphId glyphId () const
 
int charCount () const
 
DeviceCoordinate origWidth () const
 
int charPos () const
 
int xOffset () const
 
int yOffset () const
 
DeviceCoordinate newWidth () const
 
const DevicePointlinearPos () const
 
void setNewWidth (DeviceCoordinate width)
 
void addNewWidth (DeviceCoordinate width)
 
void setLinearPos (const DevicePoint &point)
 
void setLinearPosX (double x)
 
void adjustLinearPosX (double diff)
 
bool operator== (const GlyphItem &other) const
 
bool operator!= (const GlyphItem &other) const
 

Private Attributes

DevicePoint m_aLinearPos
 
DeviceCoordinate m_nOrigWidth
 
sal_Int32 m_nCharPos
 
sal_Int32 m_nXOffset
 
sal_Int32 m_nYOffset
 
DeviceCoordinate 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 ( int  nCharPos,
int  nCharCount,
sal_GlyphId  aGlyphId,
const DevicePoint rLinearPos,
GlyphItemFlags  nFlags,
DeviceCoordinate  nOrigWidth,
int  nXOffset,
int  nYOffset 
)
inline

Definition at line 65 of file impglyphitem.hxx.

Member Function Documentation

void GlyphItem::addNewWidth ( DeviceCoordinate  width)
inline

Definition at line 103 of file impglyphitem.hxx.

void GlyphItem::adjustLinearPosX ( double  diff)
inline

Definition at line 106 of file impglyphitem.hxx.

References Tuple2D< double >::adjustX().

bool GlyphItem::AllowKashida ( ) const
inline

Definition at line 84 of file impglyphitem.hxx.

References ALLOW_KASHIDA.

int GlyphItem::charCount ( ) const
inline

Definition at line 94 of file impglyphitem.hxx.

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

int GlyphItem::charPos ( ) const
inline
void GlyphItem::dropGlyph ( )
inline

Definition at line 130 of file impglyphitem.hxx.

References IS_DROPPED, m_nCharPos, and m_nFlags.

bool GlyphItem::GetGlyphBoundRect ( const LogicalFontInstance pFontInstance,
tools::Rectangle rRect 
) const
inline
bool GlyphItem::GetGlyphOutline ( const LogicalFontInstance pFontInstance,
basegfx::B2DPolyPolygon rPoly 
) const
inline

Definition at line 124 of file impglyphitem.hxx.

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

Referenced by SalLayout::GetOutline().

sal_GlyphId GlyphItem::glyphId ( ) const
inline
bool GlyphItem::IsClusterStart ( ) const
inline

Definition at line 86 of file impglyphitem.hxx.

References IS_CLUSTER_START.

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

bool GlyphItem::IsDiacritic ( ) const
inline

Definition at line 81 of file impglyphitem.hxx.

References IS_DIACRITIC.

bool GlyphItem::IsDropped ( ) const
inline

Definition at line 85 of file impglyphitem.hxx.

References IS_DROPPED.

bool GlyphItem::IsInCluster ( ) const
inline

Definition at line 79 of file impglyphitem.hxx.

References IS_IN_CLUSTER.

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

bool GlyphItem::IsRTLGlyph ( ) const
inline

Definition at line 80 of file impglyphitem.hxx.

References IS_RTL_GLYPH.

bool GlyphItem::IsSpacing ( ) const
inline
bool GlyphItem::IsUnsafeToBreak ( ) const
inline

Definition at line 87 of file impglyphitem.hxx.

References IS_UNSAFE_TO_BREAK.

bool GlyphItem::IsVertical ( ) const
inline

Definition at line 82 of file impglyphitem.hxx.

References IS_VERTICAL.

Referenced by vcl::PDFWriterImpl::drawLayout(), GetGlyphBoundRect(), and GetGlyphOutline().

const DevicePoint& GlyphItem::linearPos ( ) const
inline

Definition at line 100 of file impglyphitem.hxx.

DeviceCoordinate GlyphItem::newWidth ( ) const
inline
bool GlyphItem::operator!= ( const GlyphItem other) const
inline

Definition at line 115 of file impglyphitem.hxx.

bool GlyphItem::operator== ( const GlyphItem other) const
inline
DeviceCoordinate GlyphItem::origWidth ( ) const
inline

Definition at line 95 of file impglyphitem.hxx.

void GlyphItem::setLinearPos ( const DevicePoint point)
inline

Definition at line 104 of file impglyphitem.hxx.

void GlyphItem::setLinearPosX ( double  x)
inline

Definition at line 105 of file impglyphitem.hxx.

References Tuple2D< double >::setX().

void GlyphItem::setNewWidth ( DeviceCoordinate  width)
inline

Definition at line 102 of file impglyphitem.hxx.

int GlyphItem::xOffset ( ) const
inline

Definition at line 97 of file impglyphitem.hxx.

int GlyphItem::yOffset ( ) const
inline

Definition at line 98 of file impglyphitem.hxx.

Member Data Documentation

sal_GlyphId GlyphItem::m_aGlyphId
private

Definition at line 60 of file impglyphitem.hxx.

Referenced by GetGlyphBoundRect(), GetGlyphOutline(), and operator==().

DevicePoint GlyphItem::m_aLinearPos
private

Definition at line 54 of file impglyphitem.hxx.

Referenced by operator==().

sal_Int8 GlyphItem::m_nCharCount
private

Definition at line 62 of file impglyphitem.hxx.

Referenced by operator==().

sal_Int32 GlyphItem::m_nCharPos
private

Definition at line 56 of file impglyphitem.hxx.

Referenced by dropGlyph(), and operator==().

GlyphItemFlags GlyphItem::m_nFlags
private

Definition at line 61 of file impglyphitem.hxx.

Referenced by dropGlyph(), and operator==().

DeviceCoordinate GlyphItem::m_nNewWidth
private

Definition at line 59 of file impglyphitem.hxx.

Referenced by operator==().

DeviceCoordinate GlyphItem::m_nOrigWidth
private

Definition at line 55 of file impglyphitem.hxx.

Referenced by operator==().

sal_Int32 GlyphItem::m_nXOffset
private

Definition at line 57 of file impglyphitem.hxx.

Referenced by operator==().

sal_Int32 GlyphItem::m_nYOffset
private

Definition at line 58 of file impglyphitem.hxx.

Referenced by operator==().


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