StarObjectSpreadsheet Class Referencefinal

the main class to read a StarOffice sdc file More...

#include <StarObjectSpreadsheet.hxx>

Inheritance diagram for StarObjectSpreadsheet:
StarObject

Public Member Functions

 StarObjectSpreadsheet (StarObject const &orig, bool duplicateState)
 constructor More...
 
 ~StarObjectSpreadsheet () final
 destructor More...
 
bool parse ()
 try to parse the current object More...
 
bool send (STOFFSpreadsheetListenerPtr listener)
 try to send the spreadsheet More...
 
bool sendRow (int table, int row, STOFFSpreadsheetListenerPtr listener)
 try to send a spreadsheet row. More...
 
bool sendCell (StarObjectSpreadsheetInternal::Cell &cell, StarAttribute *attrib, int table, int numRepeated, STOFFSpreadsheetListenerPtr listener)
 try to send a cell More...
 
bool updatePageSpans (std::vector< STOFFPageSpan > &pageSpan, int &numPages)
 try to update the page span More...
 
- Public Member Functions inherited from StarObject
 StarObject (char const *passwd, std::shared_ptr< STOFFOLEParser > &oleParser, std::shared_ptr< STOFFOLEParser::OleDirectory > &directory)
 constructor More...
 
virtual ~StarObject ()
 destructor More...
 
bool parse ()
 try to parse data More...
 
STOFFDocument::Kind getDocumentKind () const
 returns the document kind More...
 
char const * getPassword () const
 returns the document password (the password given by the user) More...
 
std::shared_ptr< STOFFOLEParser::OleDirectorygetOLEDirectory ()
 returns the object directory More...
 
std::shared_ptr< StarAttributeManagergetAttributeManager ()
 returns the attribute manager More...
 
std::shared_ptr< StarFormatManagergetFormatManager ()
 returns the format manager More...
 
librevenge::RVNGPropertyList const & getMetaData () const
 returns the meta data (filled by readSfxDocumentInformation) More...
 
librevenge::RVNGString getUserNameMetaData (int i) const
 returns the ith user meta data More...
 
void cleanPools ()
 clean each pool More...
 
std::shared_ptr< StarItemPoolgetNewItemPool (StarItemPool::Type type)
 returns a new item pool for this document More...
 
std::shared_ptr< StarItemPoolfindItemPool (StarItemPool::Type type, bool isInside)
 check if a pool corresponding to a given type is opened if so returned it. More...
 
std::shared_ptr< StarItemPoolgetCurrentPool (bool onlyInside=true)
 returns the current all/inside pool More...
 
bool readPersistData (StarZone &zone, long endPos)
 try to read persist data More...
 
bool readSfxStyleSheets (STOFFInputStreamPtr input, std::string const &name)
 try to read a spreadshet style zone: SfxStyleSheets More...
 
bool readItemSet (StarZone &zone, std::vector< STOFFVec2i > const &limits, long endPos, StarItemSet &itemSet, StarItemPool *pool=nullptr, bool isDirect=false)
 try to read a list of item More...
 

Protected Member Functions

bool readCalcDocument (STOFFInputStreamPtr input, std::string const &fileName)
 try to read a spreadsheet zone: StarCalcDocument .sdc More...
 
bool readSfxStyleSheets (STOFFInputStreamPtr input, std::string const &fileName)
 try to read a spreadshet style zone: SfxStyleSheets More...
 
bool readSCTable (StarZone &zone, StarObjectSpreadsheetInternal::Table &table)
 try to read a SCTable More...
 
bool readSCColumn (StarZone &zone, StarObjectSpreadsheetInternal::Table &table, int column, long lastPos)
 try to read a SCColumn More...
 
bool readSCData (StarZone &zone, StarObjectSpreadsheetInternal::Table &table, int column)
 try to read a list of data More...
 
bool readSCChangeTrack (StarZone &zone, int version, long lastPos)
 try to read a change trak More...
 
bool readSCDBData (StarZone &zone, int version, long lastPos)
 try to read a dbData More...
 
bool readSCDBPivot (StarZone &zone, int version, long lastPos)
 try to read a dbPivot More...
 
bool readSCMatrix (StarZone &zone, int version, long lastPos)
 try to read a matrix More...
 
bool readSCQueryParam (StarZone &zone, int version, long lastPos)
 try to read a query param More...
 
bool readSCOutlineArray (StarZone &zone)
 try to read a SCOutlineArray More...
 
- Protected Member Functions inherited from StarObject
bool readPersistElements (STOFFInputStreamPtr input, std::string const &name)
 the "persist elements" small ole: the list of object More...
 
bool readSfxDocumentInformation (STOFFInputStreamPtr input, std::string const &name)
 try to read the document information : "SfxDocumentInformation" More...
 
bool readSfxPreview (STOFFInputStreamPtr input, std::string const &name)
 try to read the preview : "SfxPreview" More...
 
bool readSfxWindows (STOFFInputStreamPtr input, libstoff::DebugFile &ascii)
 try to read the windows information : "SfxWindows" More...
 
bool readStarFrameworkConfigFile (STOFFInputStreamPtr input, libstoff::DebugFile &ascii)
 try to read the "Star Framework Config File" More...
 
bool readStarFrameworkConfigItem (STOFFEntry &entry, STOFFInputStreamPtr input, libstoff::DebugFile &ascii)
 try to read an item in a "Star Framework Config File" More...
 
 StarObject (StarObject const &orig, bool duplicateState)
 copy constructor More...
 

Protected Attributes

std::shared_ptr< StarObjectSpreadsheetInternal::Statem_spreadsheetState
 the state More...
 
- Protected Attributes inherited from StarObject
char const * m_password
 the document password More...
 
std::shared_ptr< STOFFOLEParserm_oleParser
 the ole parser More...
 
std::shared_ptr< STOFFOLEParser::OleDirectorym_directory
 the directory More...
 
std::shared_ptr< StarObjectInternal::Statem_state
 the state More...
 
librevenge::RVNGPropertyList m_metaData
 the meta data More...
 

Detailed Description

the main class to read a StarOffice sdc file

Constructor & Destructor Documentation

◆ StarObjectSpreadsheet()

StarObjectSpreadsheet::StarObjectSpreadsheet ( StarObject const &  orig,
bool  duplicateState 
)

constructor

◆ ~StarObjectSpreadsheet()

StarObjectSpreadsheet::~StarObjectSpreadsheet ( )
final

destructor

Member Function Documentation

◆ parse()

bool StarObjectSpreadsheet::parse ( )

◆ readCalcDocument()

bool StarObjectSpreadsheet::readCalcDocument ( STOFFInputStreamPtr  input,
std::string const &  fileName 
)
protected

try to read a spreadsheet zone: StarCalcDocument .sdc

Referenced by parse().

◆ readSCChangeTrack()

bool StarObjectSpreadsheet::readSCChangeTrack ( StarZone zone,
int  version,
long  lastPos 
)
protected

try to read a change trak

Referenced by readCalcDocument().

◆ readSCColumn()

bool StarObjectSpreadsheet::readSCColumn ( StarZone zone,
StarObjectSpreadsheetInternal::Table table,
int  column,
long  lastPos 
)
protected

try to read a SCColumn

Referenced by readSCTable().

◆ readSCData()

bool StarObjectSpreadsheet::readSCData ( StarZone zone,
StarObjectSpreadsheetInternal::Table table,
int  column 
)
protected

try to read a list of data

Referenced by readSCColumn().

◆ readSCDBData()

bool StarObjectSpreadsheet::readSCDBData ( StarZone zone,
int  version,
long  lastPos 
)
protected

try to read a dbData

Referenced by readCalcDocument().

◆ readSCDBPivot()

bool StarObjectSpreadsheet::readSCDBPivot ( StarZone zone,
int  version,
long  lastPos 
)
protected

try to read a dbPivot

Referenced by readCalcDocument().

◆ readSCMatrix()

bool StarObjectSpreadsheet::readSCMatrix ( StarZone zone,
int  version,
long  lastPos 
)
protected

try to read a matrix

Referenced by readCalcDocument().

◆ readSCOutlineArray()

bool StarObjectSpreadsheet::readSCOutlineArray ( StarZone zone)
protected

try to read a SCOutlineArray

Referenced by readSCTable().

◆ readSCQueryParam()

bool StarObjectSpreadsheet::readSCQueryParam ( StarZone zone,
int  version,
long  lastPos 
)
protected

try to read a query param

Referenced by readCalcDocument(), and readSCDBPivot().

◆ readSCTable()

bool StarObjectSpreadsheet::readSCTable ( StarZone zone,
StarObjectSpreadsheetInternal::Table table 
)
protected

try to read a SCTable

Referenced by readCalcDocument().

◆ readSfxStyleSheets()

bool StarObjectSpreadsheet::readSfxStyleSheets ( STOFFInputStreamPtr  input,
std::string const &  fileName 
)
protected

try to read a spreadshet style zone: SfxStyleSheets

Referenced by parse().

◆ send()

bool StarObjectSpreadsheet::send ( STOFFSpreadsheetListenerPtr  listener)

try to send the spreadsheet

Referenced by StarFileManager::readOLEDirectory().

◆ sendCell()

bool StarObjectSpreadsheet::sendCell ( StarObjectSpreadsheetInternal::Cell cell,
StarAttribute attrib,
int  table,
int  numRepeated,
STOFFSpreadsheetListenerPtr  listener 
)

try to send a cell

Referenced by sendRow().

◆ sendRow()

bool StarObjectSpreadsheet::sendRow ( int  table,
int  row,
STOFFSpreadsheetListenerPtr  listener 
)

try to send a spreadsheet row.

Note
this function does not call openSheetRow,closeSheetRow

Referenced by send().

◆ updatePageSpans()

bool StarObjectSpreadsheet::updatePageSpans ( std::vector< STOFFPageSpan > &  pageSpan,
int &  numPages 
)

try to update the page span

Referenced by StarFileManager::readOLEDirectory().

Member Data Documentation

◆ m_spreadsheetState

std::shared_ptr<StarObjectSpreadsheetInternal::State> StarObjectSpreadsheet::m_spreadsheetState
protected

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

Generated on Wed Mar 15 2023 00:00:00 for libstaroffice by doxygen 1.9.1