class to store an state: ie. More...
#include <StarState.hxx>
Classes | |
struct | GlobalState |
small struct use to store global data More... | |
Public Member Functions | |
StarState (StarItemPool const *pool, StarObject &object) | |
constructor | |
StarState (GlobalState const &global) | |
constructor which create a copy of the global state | |
StarState (std::shared_ptr< GlobalState > &global) | |
constructor which share the global state | |
~StarState () | |
destructor | |
void | reinitializeLineData () |
reinit the local data: break, font, content, footnote, ... | |
double | convertInPoint (double val) const |
return the relative units | |
STOFFVec2f | convertPointInPoint (STOFFVec2f const &val) const |
return the relative units | |
STOFFVec2f | convertVectorInPoint (STOFFVec2f const &val) const |
return the relative units | |
Public Attributes | |
std::shared_ptr< GlobalState > | m_global |
global state | |
librevenge::RVNGString | m_styleName |
the style name | |
int | m_break |
a page/column break: 1=columnBefore, 2=columnAfter, 3=columnBoth, 4=pageBefore, 5=pageAfter,n 6=pageBoth | |
STOFFCellStyle | m_cell |
the cell style | |
STOFFFrameStyle | m_frame |
the frame style | |
STOFFGraphicStyle | m_graphic |
the graphic style | |
STOFFParagraph | m_paragraph |
the paragraph style | |
STOFFFont | m_font |
the font | |
bool | m_content |
flag to know if this is a content zone | |
bool | m_flyCnt |
flag to know if this is a flyCnt | |
bool | m_footnote |
flag to know if this is a footnote | |
bool | m_headerFooter |
flag to know if this is a header/footer | |
librevenge::RVNGString | m_link |
the link url | |
librevenge::RVNGString | m_refMark |
the ref mark | |
std::shared_ptr< SWFieldManagerInternal::Field > | m_field |
the field | |
class to store an state: ie.
the current page, section, ... style
StarState::StarState | ( | StarItemPool const * | pool, |
StarObject & | object | ||
) |
constructor
|
explicit |
constructor which create a copy of the global state
|
inlineexplicit |
constructor which share the global state
StarState::~StarState | ( | ) |
destructor
|
inline |
return the relative units
Referenced by StarFrameAttribute::StarFAttributeBorder::addTo(), StarFrameAttribute::StarFAttributeShadow::addTo(), StarGraphicAttribute::StarGAttributeInt::addTo(), StarGraphicAttribute::StarGAttributeUInt::addTo(), StarGraphicAttribute::StarGAttributeCrop::addTo(), StarGraphicAttribute::StarGAttributeNamedDash::addTo(), and StarGraphicAttribute::StarGAttributeNamedHatch::addTo().
|
inline |
return the relative units
Referenced by StarObjectSmallGraphicInternal::SdrGraphicGraph::send(), StarObjectSmallGraphicInternal::SdrGraphicOLE::send(), StarObjectSmallGraphicInternal::SdrGraphicRect::send(), StarObjectSmallGraphicInternal::SdrGraphicCircle::send(), StarObjectSmallGraphicInternal::SdrGraphicMeasure::send(), StarObjectSmallGraphicInternal::SdrGraphicPath::send(), and StarObjectSmallGraphicInternal::SdrGraphicText::sendTextZone().
|
inline |
return the relative units
Referenced by StarObjectSmallGraphicInternal::SdrGraphic::getState(), StarObjectSmallGraphicInternal::SdrGraphicGraph::send(), StarObjectSmallGraphicInternal::SdrGraphicOLE::send(), StarObjectSmallGraphicInternal::SdrGraphicCircle::send(), and StarObjectSmallGraphicInternal::SdrGraphicText::sendTextZone().
void StarState::reinitializeLineData | ( | ) |
reinit the local data: break, font, content, footnote, ...
Referenced by StarObjectTextInternal::TextZone::inventoryPage(), StarObjectSmallTextInternal::Paragraph::send(), and StarObjectTextInternal::TextZone::send().
int StarState::m_break |
a page/column break: 1=columnBefore, 2=columnAfter, 3=columnBoth, 4=pageBefore, 5=pageAfter,n 6=pageBoth
Referenced by StarFrameAttribute::StarFAttributeUInt::addTo(), StarObjectTextInternal::TextZone::inventoryPage(), StarObjectSmallTextInternal::Paragraph::send(), and StarObjectTextInternal::TextZone::send().
STOFFCellStyle StarState::m_cell |
the cell style
Referenced by StarCellAttribute::StarCAttributeBool::addTo(), StarCellAttribute::StarCAttributeInt::addTo(), StarCellAttribute::StarCAttributeUInt::addTo(), StarCellAttribute::StarCAttributeMargins::addTo(), StarCellAttribute::StarCAttributeMerge::addTo(), StarCellAttribute::StarCAttributeProtection::addTo(), StarFrameAttribute::StarFAttributeBorder::addTo(), StarFrameAttribute::StarFAttributeBrush::addTo(), StarFrameAttribute::StarFAttributeShadow::addTo(), StarTableInternal::Table::send(), StarObjectSpreadsheet::sendCell(), and StarTableInternal::TableBox::updatePosition().
bool StarState::m_content |
flag to know if this is a content zone
Referenced by StarCharAttribute::StarCAttributeContent::addTo(), reinitializeLineData(), StarObjectSmallTextInternal::Paragraph::send(), StarObjectTextInternal::TextZone::send(), and StarFormatManagerInternal::FormatDef::send().
std::shared_ptr<SWFieldManagerInternal::Field> StarState::m_field |
bool StarState::m_flyCnt |
flag to know if this is a flyCnt
Referenced by StarCharAttribute::StarCAttributeFlyCnt::addTo(), reinitializeLineData(), StarObjectSmallTextInternal::Paragraph::send(), and StarObjectTextInternal::TextZone::send().
STOFFFont StarState::m_font |
the font
Referenced by StarCharAttribute::StarCAttributeBool::addTo(), StarCharAttribute::StarCAttributeColor::addTo(), StarCharAttribute::StarCAttributeInt::addTo(), StarCharAttribute::StarCAttributeUInt::addTo(), StarCharAttribute::StarCAttributeVoid::addTo(), StarCharAttribute::StarCAttributeEscapement::addTo(), StarCharAttribute::StarCAttributeFont::addTo(), StarCharAttribute::StarCAttributeFontSize::addTo(), StarCharAttribute::StarCAttributeCharFormat::addTo(), StarCharAttribute::StarCAttributeHardBlank::addTo(), StarFrameAttribute::StarFAttributeBrush::addTo(), StarGraphicAttribute::StarGAttributeNamedColor::addTo(), reinitializeLineData(), StarObjectSmallTextInternal::Paragraph::send(), StarObjectTextInternal::TextZone::send(), and StarObjectSpreadsheet::sendCell().
bool StarState::m_footnote |
flag to know if this is a footnote
Referenced by StarCharAttribute::StarCAttributeFootnote::addTo(), reinitializeLineData(), StarObjectSmallTextInternal::Paragraph::send(), and StarObjectTextInternal::TextZone::send().
STOFFFrameStyle StarState::m_frame |
the frame style
Referenced by StarFrameAttribute::StarFAttributeBool::addTo(), StarFrameAttribute::StarFAttributeAnchor::addTo(), StarFrameAttribute::StarFAttributeBrush::addTo(), StarFrameAttribute::StarFAttributeFrameSize::addTo(), StarFrameAttribute::StarFAttributeLRSpace::addTo(), StarFrameAttribute::StarFAttributeOrientation::addTo(), StarFrameAttribute::StarFAttributeSurround::addTo(), StarItemPool::defineGraphicStyle(), StarObjectTextInternal::GraphZone::send(), StarObjectTextInternal::OLEZone::send(), StarObjectTextInternal::TextZone::send(), StarObjectTextInternal::Content::send(), StarObjectSmallGraphicInternal::SdrGraphicOLE::send(), StarTableInternal::Table::send(), StarObjectModel::sendObject(), StarTableInternal::TableBox::updatePosition(), and StarObjectSmallGraphicInternal::SdrGraphic::updateStyle().
std::shared_ptr<GlobalState> StarState::m_global |
global state
Referenced by StarCharAttribute::StarCAttributeFontSize::addTo(), StarCharAttribute::StarCAttributeCharFormat::addTo(), StarFrameAttribute::StarFAttributeFrameSize::addTo(), StarFrameAttribute::StarFAttributeLRSpace::addTo(), StarFrameAttribute::StarFAttributeULSpace::addTo(), StarGraphicAttribute::StarGAttributeNamedArrow::addTo(), StarPageAttribute::StarPAttributeBool::addTo(), StarPageAttribute::StarPAttributeUInt::addTo(), StarPageAttribute::StarPAttributeVec2i::addTo(), StarPageAttribute::StarPAttributeColumns::addTo(), StarPageAttribute::StarPAttributeFrameHF::addTo(), StarPageAttribute::StarPAttributePage::addTo(), StarPageAttribute::StarPAttributePageDesc::addTo(), StarPageAttribute::StarPAttributePageHF::addTo(), StarPageAttribute::StarPAttributeViewMode::addTo(), StarParagraphAttribute::StarPAttributeDrop::addTo(), StarParagraphAttribute::StarPAttributeLineSpacing::addTo(), StarParagraphAttribute::StarPAttributeNumericRuler::addTo(), StarParagraphAttribute::StarPAttributeTabStop::addTo(), StarPageAttribute::StarPAttributeItemSet::addTo(), StarAttributeItemSet::addTo(), convertInPoint(), convertPointInPoint(), convertVectorInPoint(), StarObjectSmallGraphicInternal::SdrGraphic::getState(), StarObjectTextInternal::TextZone::inventoryPage(), StarObjectTextInternal::Content::inventoryPages(), StarObjectSmallTextInternal::Paragraph::send(), SWFieldManagerInternal::Field::send(), StarObjectTextInternal::FormatZone::send(), StarObjectTextInternal::TextZone::send(), StarObjectTextInternal::Content::send(), StarCharAttribute::StarCAttributeFootnote::send(), StarObjectSmallGraphicInternal::SdrGraphicGroup::send(), StarObjectSmallGraphicInternal::SdrGraphicRect::send(), StarObjectSmallGraphicInternal::SdrGraphicCaption::send(), StarObjectSmallGraphicInternal::SdrGraphicCircle::send(), StarObjectSmallGraphicInternal::SdrGraphicEdge::send(), StarObjectSmallGraphicInternal::SdrGraphicMeasure::send(), StarObjectSmallGraphicInternal::SdrGraphicPath::send(), StarTableInternal::Table::send(), StarFormatManagerInternal::FormatDef::send(), StarTableInternal::TableBox::send(), StarObjectText::sendPages(), StarState(), StarObjectPageStyle::updatePageSpan(), StarObjectPageStyleInternal::PageDesc::updatePageSpan(), StarObjectPageStyle::updatePageSpans(), StarObjectSpreadsheet::updatePageSpans(), StarObjectText::updatePageSpans(), and StarObjectSmallGraphicInternal::SdrGraphicAttribute::updateStyle().
STOFFGraphicStyle StarState::m_graphic |
the graphic style
Referenced by StarFrameAttribute::StarFAttributeBorder::addTo(), StarFrameAttribute::StarFAttributeBrush::addTo(), StarFrameAttribute::StarFAttributeShadow::addTo(), StarGraphicAttribute::StarGAttributeBool::addTo(), StarGraphicAttribute::StarGAttributeInt::addTo(), StarGraphicAttribute::StarGAttributeUInt::addTo(), StarGraphicAttribute::StarGAttributeVoid::addTo(), StarGraphicAttribute::StarGAttributeCrop::addTo(), StarGraphicAttribute::StarGAttributeNamedArrow::addTo(), StarGraphicAttribute::StarGAttributeNamedBitmap::addTo(), StarGraphicAttribute::StarGAttributeNamedColor::addTo(), StarGraphicAttribute::StarGAttributeNamedDash::addTo(), StarGraphicAttribute::StarGAttributeNamedGradient::addTo(), StarGraphicAttribute::StarGAttributeNamedHatch::addTo(), StarItemPool::defineGraphicStyle(), StarObjectTextInternal::GraphZone::send(), StarObjectTextInternal::OLEZone::send(), StarObjectTextInternal::Content::send(), StarObjectSmallGraphicInternal::SdrGraphicGraph::send(), StarObjectSmallGraphicInternal::SdrGraphicOLE::send(), StarObjectSmallGraphicInternal::SdrGraphicRect::send(), StarObjectSmallGraphicInternal::SdrGraphicCaption::send(), StarObjectSmallGraphicInternal::SdrGraphicCircle::send(), StarObjectSmallGraphicInternal::SdrGraphicEdge::send(), StarObjectSmallGraphicInternal::SdrGraphicMeasure::send(), StarObjectSmallGraphicInternal::SdrGraphicPath::send(), StarObjectSmallGraphicInternal::SdrGraphicText::sendTextZone(), StarObjectSmallGraphicInternal::SdrGraphicAttribute::updateStyle(), and StarObjectSmallGraphicInternal::SdrGraphic::updateStyle().
bool StarState::m_headerFooter |
flag to know if this is a header/footer
Referenced by StarPageAttribute::SubDocument::parse(), and StarCharAttribute::StarCAttributeContent::send().
librevenge::RVNGString StarState::m_link |
STOFFParagraph StarState::m_paragraph |
the paragraph style
Referenced by StarFrameAttribute::StarFAttributeBorder::addTo(), StarFrameAttribute::StarFAttributeBrush::addTo(), StarFrameAttribute::StarFAttributeLineNumbering::addTo(), StarFrameAttribute::StarFAttributeLRSpace::addTo(), StarFrameAttribute::StarFAttributeULSpace::addTo(), StarParagraphAttribute::StarPAttributeBool::addTo(), StarParagraphAttribute::StarPAttributeUInt::addTo(), StarParagraphAttribute::StarPAttributeAdjust::addTo(), StarParagraphAttribute::StarPAttributeBulletNumeric::addTo(), StarParagraphAttribute::StarPAttributeBulletSimple::addTo(), StarParagraphAttribute::StarPAttributeDrop::addTo(), StarParagraphAttribute::StarPAttributeLineSpacing::addTo(), StarParagraphAttribute::StarPAttributeTabStop::addTo(), StarItemPool::defineParagraphStyle(), StarObjectSmallTextInternal::Paragraph::send(), and StarObjectTextInternal::TextZone::send().
librevenge::RVNGString StarState::m_refMark |
librevenge::RVNGString StarState::m_styleName |
the style name
Referenced by StarObjectTextInternal::TextZone::inventoryPage(), and StarObjectTextInternal::TextZone::send().