Classes | Public Member Functions | Public Attributes | List of all members
StarState Class Reference

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

## Detailed Description

class to store an state: ie.

the current page, section, ... style

## Constructor & Destructor Documentation

## ◆ StarState() [1/3]

StarState::StarState | ( | StarItemPool const * | pool,
|  | StarObject & | object )

constructor

## ◆ StarState() [2/3]

StarState::StarState | ( | StarState::GlobalState const & | global | ) |
| explicit

constructor which create a copy of the global state

## ◆ StarState() [3/3]

StarState::StarState | ( | std::shared_ptr< GlobalState > & | global | ) |
| inline explicit

constructor which share the global state

## ◆ ~StarState()

StarState::~StarState | ( |  | ) |

destructor

## Member Function Documentation

## ◆ convertInPoint()

double StarState::convertInPoint | ( | double | val | ) | const
| inline

return the relative units

Referenced by StarFrameAttribute::StarFAttributeBorder::addTo(), StarFrameAttribute::StarFAttributeShadow::addTo(), StarGraphicAttribute::StarGAttributeCrop::addTo(), StarGraphicAttribute::StarGAttributeInt::addTo(), StarGraphicAttribute::StarGAttributeNamedDash::addTo(), StarGraphicAttribute::StarGAttributeNamedHatch::addTo(), and StarGraphicAttribute::StarGAttributeUInt::addTo().

## ◆ convertPointInPoint()

STOFFVec2f StarState::convertPointInPoint | ( | STOFFVec2f const & | val | ) | const
| inline

return the relative units

Referenced by StarObjectSmallGraphicInternal::SdrGraphicCircle::send(), StarObjectSmallGraphicInternal::SdrGraphicGraph::send(), StarObjectSmallGraphicInternal::SdrGraphicMeasure::send(), StarObjectSmallGraphicInternal::SdrGraphicOLE::send(), StarObjectSmallGraphicInternal::SdrGraphicPath::send(), StarObjectSmallGraphicInternal::SdrGraphicRect::send(), and StarObjectSmallGraphicInternal::SdrGraphicText::sendTextZone().

## ◆ convertVectorInPoint()

STOFFVec2f StarState::convertVectorInPoint | ( | STOFFVec2f const & | val | ) | const
| inline

return the relative units

Referenced by StarObjectSmallGraphicInternal::SdrGraphic::getState(), StarObjectSmallGraphicInternal::SdrGraphicCircle::send(), StarObjectSmallGraphicInternal::SdrGraphicGraph::send(), StarObjectSmallGraphicInternal::SdrGraphicOLE::send(), and StarObjectSmallGraphicInternal::SdrGraphicText::sendTextZone().

## ◆ reinitializeLineData()

void StarState::reinitializeLineData | ( |  | ) |

reinit the local data: break, font, content, footnote, ...

Referenced by StarObjectTextInternal::TextZone::inventoryPage(), StarObjectSmallTextInternal::Paragraph::send(), and StarObjectTextInternal::TextZone::send().

## Member Data Documentation

## ◆ m_break

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().

## ◆ m_cell

STOFFCellStyle StarState::m_cell

the cell style

Referenced by StarCellAttribute::StarCAttributeBool::addTo(), StarCellAttribute::StarCAttributeInt::addTo(), StarCellAttribute::StarCAttributeMargins::addTo(), StarCellAttribute::StarCAttributeMerge::addTo(), StarCellAttribute::StarCAttributeProtection::addTo(), StarCellAttribute::StarCAttributeUInt::addTo(), StarFrameAttribute::StarFAttributeBorder::addTo(), StarFrameAttribute::StarFAttributeBrush::addTo(), StarFrameAttribute::StarFAttributeShadow::addTo(), StarTableInternal::Table::send(), StarObjectSpreadsheet::sendCell(), and StarTableInternal::TableBox::updatePosition().

## ◆ m_content

bool StarState::m_content

flag to know if this is a content zone

Referenced by StarCharAttribute::StarCAttributeContent::addTo(), reinitializeLineData(), StarFormatManagerInternal::FormatDef::send(), StarObjectSmallTextInternal::Paragraph::send(), and StarObjectTextInternal::TextZone::send().

## ◆ m_field

std::shared_ptr<SWFieldManagerInternal::Field> StarState::m_field

the field

Referenced by StarCharAttribute::StarCAttributeField::addTo(), reinitializeLineData(), StarObjectSmallTextInternal::Paragraph::send(), and StarObjectTextInternal::TextZone::send().

## ◆ m_flyCnt

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().

## ◆ m_font

STOFFFont StarState::m_font

the font

Referenced by StarCharAttribute::StarCAttributeBool::addTo(), StarCharAttribute::StarCAttributeCharFormat::addTo(), StarCharAttribute::StarCAttributeColor::addTo(), StarCharAttribute::StarCAttributeEscapement::addTo(), StarCharAttribute::StarCAttributeFont::addTo(), StarCharAttribute::StarCAttributeFontSize::addTo(), StarCharAttribute::StarCAttributeHardBlank::addTo(), StarCharAttribute::StarCAttributeInt::addTo(), StarCharAttribute::StarCAttributeUInt::addTo(), StarCharAttribute::StarCAttributeVoid::addTo(), StarFrameAttribute::StarFAttributeBrush::addTo(), StarGraphicAttribute::StarGAttributeNamedColor::addTo(), reinitializeLineData(), StarObjectSmallTextInternal::Paragraph::send(), StarObjectTextInternal::TextZone::send(), and StarObjectSpreadsheet::sendCell().

## ◆ m_footnote

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().

## ◆ m_frame

STOFFFrameStyle StarState::m_frame

the frame style

Referenced by StarFrameAttribute::StarFAttributeAnchor::addTo(), StarFrameAttribute::StarFAttributeBool::addTo(), StarFrameAttribute::StarFAttributeBrush::addTo(), StarFrameAttribute::StarFAttributeFrameSize::addTo(), StarFrameAttribute::StarFAttributeLRSpace::addTo(), StarFrameAttribute::StarFAttributeOrientation::addTo(), StarFrameAttribute::StarFAttributeSurround::addTo(), StarItemPool::defineGraphicStyle(), StarObjectSmallGraphicInternal::SdrGraphicOLE::send(), StarObjectTextInternal::Content::send(), StarObjectTextInternal::GraphZone::send(), StarObjectTextInternal::OLEZone::send(), StarObjectTextInternal::TextZone::send(), StarTableInternal::Table::send(), StarObjectModel::sendObject(), StarTableInternal::TableBox::updatePosition(), and StarObjectSmallGraphicInternal::SdrGraphic::updateStyle().

## ◆ m_global

std::shared_ptr<GlobalState> StarState::m_global

global state

Referenced by StarAttributeItemSet::addTo(), StarCharAttribute::StarCAttributeCharFormat::addTo(), StarCharAttribute::StarCAttributeFontSize::addTo(), StarFrameAttribute::StarFAttributeFrameSize::addTo(), StarFrameAttribute::StarFAttributeLRSpace::addTo(), StarFrameAttribute::StarFAttributeULSpace::addTo(), StarGraphicAttribute::StarGAttributeNamedArrow::addTo(), StarPageAttribute::StarPAttributeBool::addTo(), StarPageAttribute::StarPAttributeColumns::addTo(), StarPageAttribute::StarPAttributeFrameHF::addTo(), StarPageAttribute::StarPAttributeItemSet::addTo(), StarPageAttribute::StarPAttributePage::addTo(), StarPageAttribute::StarPAttributePageDesc::addTo(), StarPageAttribute::StarPAttributePageHF::addTo(), StarPageAttribute::StarPAttributeUInt::addTo(), StarPageAttribute::StarPAttributeVec2i::addTo(), StarPageAttribute::StarPAttributeViewMode::addTo(), StarParagraphAttribute::StarPAttributeDrop::addTo(), StarParagraphAttribute::StarPAttributeLineSpacing::addTo(), StarParagraphAttribute::StarPAttributeNumericRuler::addTo(), StarParagraphAttribute::StarPAttributeTabStop::addTo(), convertInPoint(), convertPointInPoint(), convertVectorInPoint(), StarObjectSmallGraphicInternal::SdrGraphic::getState(), StarObjectTextInternal::TextZone::inventoryPage(), StarObjectTextInternal::Content::inventoryPages(), StarCharAttribute::StarCAttributeFootnote::send(), StarFormatManagerInternal::FormatDef::send(), StarObjectSmallGraphicInternal::SdrGraphicCaption::send(), StarObjectSmallGraphicInternal::SdrGraphicCircle::send(), StarObjectSmallGraphicInternal::SdrGraphicEdge::send(), StarObjectSmallGraphicInternal::SdrGraphicGroup::send(), StarObjectSmallGraphicInternal::SdrGraphicMeasure::send(), StarObjectSmallGraphicInternal::SdrGraphicPath::send(), StarObjectSmallGraphicInternal::SdrGraphicRect::send(), StarObjectSmallTextInternal::Paragraph::send(), StarObjectTextInternal::Content::send(), StarObjectTextInternal::FormatZone::send(), StarObjectTextInternal::TextZone::send(), StarTableInternal::Table::send(), StarTableInternal::TableBox::send(), SWFieldManagerInternal::Field::send(), StarObjectText::sendPages(), StarState(), StarObjectPageStyle::updatePageSpan(), StarObjectPageStyleInternal::PageDesc::updatePageSpan(), StarObjectPageStyle::updatePageSpans(), StarObjectSpreadsheet::updatePageSpans(), StarObjectText::updatePageSpans(), and StarObjectSmallGraphicInternal::SdrGraphicAttribute::updateStyle().

## ◆ m_graphic

STOFFGraphicStyle StarState::m_graphic

the graphic style

Referenced by StarFrameAttribute::StarFAttributeBorder::addTo(), StarFrameAttribute::StarFAttributeBrush::addTo(), StarFrameAttribute::StarFAttributeShadow::addTo(), StarGraphicAttribute::StarGAttributeBool::addTo(), StarGraphicAttribute::StarGAttributeCrop::addTo(), StarGraphicAttribute::StarGAttributeInt::addTo(), StarGraphicAttribute::StarGAttributeNamedArrow::addTo(), StarGraphicAttribute::StarGAttributeNamedBitmap::addTo(), StarGraphicAttribute::StarGAttributeNamedColor::addTo(), StarGraphicAttribute::StarGAttributeNamedDash::addTo(), StarGraphicAttribute::StarGAttributeNamedGradient::addTo(), StarGraphicAttribute::StarGAttributeNamedHatch::addTo(), StarGraphicAttribute::StarGAttributeUInt::addTo(), StarGraphicAttribute::StarGAttributeVoid::addTo(), StarItemPool::defineGraphicStyle(), StarObjectSmallGraphicInternal::SdrGraphicCaption::send(), StarObjectSmallGraphicInternal::SdrGraphicCircle::send(), StarObjectSmallGraphicInternal::SdrGraphicEdge::send(), StarObjectSmallGraphicInternal::SdrGraphicGraph::send(), StarObjectSmallGraphicInternal::SdrGraphicMeasure::send(), StarObjectSmallGraphicInternal::SdrGraphicOLE::send(), StarObjectSmallGraphicInternal::SdrGraphicPath::send(), StarObjectSmallGraphicInternal::SdrGraphicRect::send(), StarObjectTextInternal::Content::send(), StarObjectTextInternal::GraphZone::send(), StarObjectTextInternal::OLEZone::send(), StarObjectSmallGraphicInternal::SdrGraphicText::sendTextZone(), StarObjectSmallGraphicInternal::SdrGraphic::updateStyle(), and StarObjectSmallGraphicInternal::SdrGraphicAttribute::updateStyle().

## ◆ m_headerFooter

bool StarState::m_headerFooter

flag to know if this is a header/footer

Referenced by StarPageAttribute::SubDocument::parse(), and StarCharAttribute::StarCAttributeContent::send().

## ◆ m_link

librevenge::RVNGString StarState::m_link

the link url

Referenced by StarCharAttribute::StarCAttributeINetFmt::addTo(), reinitializeLineData(), StarObjectSmallTextInternal::Paragraph::send(), and StarObjectTextInternal::TextZone::send().

## ◆ m_paragraph

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::StarPAttributeAdjust::addTo(), StarParagraphAttribute::StarPAttributeBool::addTo(), StarParagraphAttribute::StarPAttributeBulletNumeric::addTo(), StarParagraphAttribute::StarPAttributeBulletSimple::addTo(), StarParagraphAttribute::StarPAttributeDrop::addTo(), StarParagraphAttribute::StarPAttributeLineSpacing::addTo(), StarParagraphAttribute::StarPAttributeTabStop::addTo(), StarParagraphAttribute::StarPAttributeUInt::addTo(), StarItemPool::defineParagraphStyle(), StarObjectSmallTextInternal::Paragraph::send(), and StarObjectTextInternal::TextZone::send().

## ◆ m_refMark

librevenge::RVNGString StarState::m_refMark

the ref mark

Referenced by StarCharAttribute::StarCAttributeRefMark::addTo(), reinitializeLineData(), StarObjectSmallTextInternal::Paragraph::send(), and StarObjectTextInternal::TextZone::send().

## ◆ m_styleName

librevenge::RVNGString StarState::m_styleName

the style name

Referenced by StarObjectTextInternal::TextZone::inventoryPage(), and StarObjectTextInternal::TextZone::send().

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

- StarState.hxx
- StarState.cxx