MWAWFont::Script Struct Reference

a small struct to define the script position in MWAWFont More...

#include <MWAWFont.hxx>

Public Member Functions

 Script (float delta=0, librevenge::RVNGUnit deltaUnit=librevenge::RVNG_PERCENT, int scale=100)
 constructor
 
bool isSet () const
 return true if the position is not default
 
std::string str (float fSize) const
 return a string which correspond to style:text-position
 
bool operator== (Script const &oth) const
 operator==
 
bool operator!= (Script const &oth) const
 operator!=
 
bool operator< (Script const &oth) const
 operator<
 
bool operator<= (Script const &oth) const
 operator<=
 
bool operator> (Script const &oth) const
 operator>
 
bool operator>= (Script const &oth) const
 operator>=
 
int cmp (Script const &oth) const
 small comparison function
 

Static Public Member Functions

static Script sub ()
 return a yposition which correspond to a basic subscript
 
static Script sub100 ()
 return a yposition which correspond to a basic subscript100
 
static Script super ()
 return a yposition which correspond to a basic superscript
 
static Script super100 ()
 return a yposition which correspond to a basic superscript100
 

Public Attributes

float m_delta
 the ydelta
 
librevenge::RVNGUnit m_deltaUnit
 the ydelta unit ( point or percent )
 
int m_scale
 the font scaling ( in percent )
 

Detailed Description

a small struct to define the script position in MWAWFont

Constructor & Destructor Documentation

◆ Script()

MWAWFont::Script::Script ( float  delta = 0,
librevenge::RVNGUnit  deltaUnit = librevenge::RVNG_PERCENT,
int  scale = 100 
)
inlineexplicit

constructor

Member Function Documentation

◆ cmp()

int MWAWFont::Script::cmp ( Script const &  oth) const
inline

small comparison function

Referenced by MWAWFont::cmp(), operator!=(), operator<(), operator<=(), operator==(), operator>(), and operator>=().

◆ isSet()

bool MWAWFont::Script::isSet ( ) const
inline

return true if the position is not default

◆ operator!=()

bool MWAWFont::Script::operator!= ( Script const &  oth) const
inline

operator!=

◆ operator<()

bool MWAWFont::Script::operator< ( Script const &  oth) const
inline

operator<

◆ operator<=()

bool MWAWFont::Script::operator<= ( Script const &  oth) const
inline

operator<=

◆ operator==()

bool MWAWFont::Script::operator== ( Script const &  oth) const
inline

operator==

◆ operator>()

bool MWAWFont::Script::operator> ( Script const &  oth) const
inline

operator>

◆ operator>=()

bool MWAWFont::Script::operator>= ( Script const &  oth) const
inline

operator>=

◆ str()

std::string MWAWFont::Script::str ( float  fSize) const

return a string which correspond to style:text-position

◆ sub()

static Script MWAWFont::Script::sub ( )
inlinestatic

◆ sub100()

◆ super()

◆ super100()

Member Data Documentation

◆ m_delta

float MWAWFont::Script::m_delta

the ydelta

Referenced by cmp().

◆ m_deltaUnit

librevenge::RVNGUnit MWAWFont::Script::m_deltaUnit

the ydelta unit ( point or percent )

Referenced by cmp().

◆ m_scale

int MWAWFont::Script::m_scale

the font scaling ( in percent )

Referenced by cmp().


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

Generated on Wed May 3 2023 07:18:29 for libmwaw by doxygen 1.9.6