Go to the documentation of this file.
38 #ifndef STAR_OBJECT_SPREADSHEET
39 # define STAR_OBJECT_SPREADSHEET
81 bool updatePageSpans(std::vector<STOFFPageSpan> &pageSpan,
int &numPages);
Definition: STOFFCell.hxx:57
librevenge::RVNGString m_pageStyle
the page style name
Definition: StarObjectSpreadsheet.cxx:469
std::shared_ptr< STOFFListener > STOFFListenerPtr
a smart pointer of STOFFListener
Definition: libstaroffice_internal.hxx:487
std::vector< FormulaInstruction > m_formula
the formula list of instruction
Definition: STOFFCell.hxx:324
the main class to read/.
Definition: StarFileManager.hxx:61
virtual class used to store the different attribute
Definition: StarAttribute.hxx:62
small class use to define a sheet cell content
Definition: STOFFCell.hxx:234
basic class to store an entry in a file This contained :
Definition: STOFFEntry.hxx:46
librevenge::RVNGString getString(std::vector< uint32_t > const &unicode)
transform a unicode string in a RNVGString
Definition: libstaroffice_internal.cxx:63
Type m_contentType
the content type ( by default unknown )
Definition: STOFFCell.hxx:316
int m_loadingVersion
the loading version
Definition: StarObjectSpreadsheet.cxx:465
libstoff::DebugFile & ascii()
returns the ascii file
Definition: StarZone.hxx:254
~StarObjectSpreadsheet() final
destructor
Definition: StarObjectSpreadsheet.cxx:559
bool readSCDBPivot(StarZone &zone, int version, long lastPos)
try to read a dbPivot
Definition: StarObjectSpreadsheet.cxx:2776
long m_endPos
the end of data position
Definition: StarObjectSpreadsheet.cxx:252
~Cell() override
destructor
Definition: StarObjectSpreadsheet.cxx:291
float getRowHeight(int row) const
returns the row size in point
Definition: StarObjectSpreadsheet.cxx:388
#define STOFF_DEBUG_MSG(M)
Definition: libstaroffice_internal.hxx:129
bool send(STOFFSpreadsheetListenerPtr listener)
try to send the spreadsheet
Definition: StarObjectSpreadsheet.cxx:608
the main class to read a StarOffice sdc file
Definition: StarObjectSpreadsheet.hxx:63
bool parse()
try to parse the current object
Definition: StarObjectSpreadsheet.cxx:756
std::vector< uint32_t > m_text
the text value (for C_TEXT_BASIC)
Definition: STOFFCell.hxx:322
~ScMultiRecord()
destructor
Definition: StarObjectSpreadsheet.cxx:89
~Table() override
destructor
Definition: StarObjectSpreadsheet.cxx:482
librevenge::RVNGString m_name
the table name
Definition: StarObjectSpreadsheet.cxx:467
RowContent()
constructor
Definition: StarObjectSpreadsheet.cxx:300
void setCellStyle(STOFFCellStyle const &cellStyle)
set the cell style
Definition: STOFFCell.hxx:195
long m_endContentPos
the end of the content position
Definition: StarObjectSpreadsheet.cxx:254
abstract class used to store a subdocument (with a comparison function)
Definition: STOFFSubDocument.hxx:41
StarObjectSpreadsheet(StarObject const &orig, bool duplicateState)
constructor
Definition: StarObjectSpreadsheet.cxx:553
std::shared_ptr< StarObjectSmallText > m_textZone
the text zone(if set)
Definition: StarObjectSpreadsheet.cxx:284
uint32_t m_actualRecord
the actual record
Definition: StarObjectSpreadsheet.cxx:246
long m_startPos
the start of data position
Definition: StarObjectSpreadsheet.cxx:250
void cleanPools()
clean each pool
Definition: StarObject.cxx:106
A class which defines the page properties.
Definition: STOFFPageSpan.hxx:75
std::shared_ptr< StarItemPool > getNewItemPool(StarItemPool::Type type)
returns a new item pool for this document
Definition: StarObject.cxx:142
bool openContent(std::string const &wh)
try to go to the new content positon
Definition: StarObjectSpreadsheet.cxx:176
bool readString(std::vector< uint32_t > &string, int encoding=-1) const
try to read an unicode string
Definition: StarZone.hxx:220
librevenge::RVNGString m_text
the note text
Definition: StarObjectSpreadsheet.cxx:533
Internal: the state of a StarObjectSpreadsheet.
Definition: StarObjectSpreadsheet.cxx:488
a structure used to define a cell and its format
Definition: STOFFCell.hxx:53
SubDocument(librevenge::RVNGString const &text)
Definition: StarObjectSpreadsheet.cxx:512
bool isContentOpened() const
returns true if a content is opened
Definition: StarObjectSpreadsheet.cxx:171
static int getMaxCols()
returns the maximum number of columns
Definition: StarObjectSpreadsheet.cxx:360
the class to store a color
Definition: libstaroffice_internal.hxx:189
std::shared_ptr< STOFFSpreadsheetListener > STOFFSpreadsheetListenerPtr
a smart pointer of STOFFSpreadsheetListener
Definition: libstaroffice_internal.hxx:493
void updateRowsBlocks(STOFFVec2i const &rows)
create a block of rows(if not created)
Definition: StarObjectSpreadsheet.cxx:404
Cell(STOFFVec2i pos=STOFFVec2i(0, 0))
constructor
Definition: StarObjectSpreadsheet.cxx:271
bool updatePageSpans(std::vector< STOFFPageSpan > &pageSpan, int &numPages)
try to update the page span
Definition: StarObjectSpreadsheet.cxx:569
librevenge::RVNGString m_notes[3]
the notes text, date, author
Definition: StarObjectSpreadsheet.cxx:288
class to store an state: ie.
Definition: StarState.hxx:67
long getContentLastPosition() const
returns the last content position
Definition: StarObjectSpreadsheet.cxx:215
int m_maxRow
the maximum number of row
Definition: StarObjectSpreadsheet.cxx:471
std::shared_ptr< StarObjectModel > m_model
the model
Definition: StarObjectSpreadsheet.cxx:498
std::map< STOFFVec2i, std::shared_ptr< StarAttribute > > m_colToAttributeMap
map col -> attribute
Definition: StarObjectSpreadsheet.cxx:332
the main class to read a SdrModel zone
Definition: StarObjectModel.hxx:64
bool sendCell(StarObjectSpreadsheetInternal::Cell &cell, StarAttribute *attrib, int table, int numRepeated, STOFFSpreadsheetListenerPtr listener)
try to send a cell
Definition: StarObjectSpreadsheet.cxx:722
Definition: StarEncoding.hxx:55
static STOFFInputStreamPtr decodeStream(STOFFInputStreamPtr input, uint8_t mask)
decode a zone given a mask
Definition: StarEncryption.cxx:192
bool open()
try to open a zone
Definition: StarObjectSpreadsheet.cxx:97
static void reset()
Definition: STOFFDebug.hxx:228
static std::string str()
Definition: STOFFDebug.hxx:203
bool closeContent(std::string const &wh)
try to go to the new content positon
Definition: StarObjectSpreadsheet.cxx:192
Internal: the cell of a StarObjectSpreadsheet.
Definition: StarObjectSpreadsheet.cxx:267
Internal: a table of a StarObjectSpreadsheet.
Definition: StarObjectSpreadsheet.cxx:337
std::vector< uint32_t > m_offsetList
the list of offset
Definition: StarObjectSpreadsheet.cxx:258
StarZone & m_zone
the main zone
Definition: StarObjectSpreadsheet.cxx:242
std::vector< std::shared_ptr< Table > > m_tableList
the actual table
Definition: StarObjectSpreadsheet.cxx:500
bool openSCRecord()
try to open a SC record: size (32 bytes) + size bytes
Definition: StarZone.cxx:483
int getLoadingVersion() const
returns the load version
Definition: StarObjectSpreadsheet.cxx:355
void close(std::string const &wh)
try to close a zone
Definition: StarObjectSpreadsheet.cxx:141
std::shared_ptr< STOFFInputStream > STOFFInputStreamPtr
a smart pointer of STOFFInputStream
Definition: libstaroffice_internal.hxx:485
void addTo(StarState &state) const
add to a state
Definition: StarAttribute.hxx:746
ScMultiRecord(StarZone &zone)
constructor
Definition: StarObjectSpreadsheet.cxx:75
std::shared_ptr< StarFormatManager > getFormatManager()
returns the format manager
Definition: StarObject.cxx:125
SubDocumentType
Definition: libstaroffice_internal.hxx:185
a zone in a StarOffice file
Definition: StarZone.hxx:56
~SubDocument() final
destructor
Definition: StarObjectSpreadsheet.cxx:516
Definition: StarItemPool.hxx:75
int getRecordLevel() const
returns the record level
Definition: StarZone.hxx:195
an object corresponding to an OLE directory
Definition: StarObject.hxx:64
long m_endRecordPos
the end of the record position
Definition: StarObjectSpreadsheet.cxx:256
bool readSCOutlineArray(StarZone &zone)
try to read a SCOutlineArray
Definition: StarObjectSpreadsheet.cxx:2992
StarEncoding::Encoding getEncoding() const
returns the zone encoding
Definition: StarZone.hxx:121
a class used to recreate the table structure using cell informations, ....
Definition: STOFFTable.hxx:51
Table(int loadingVers, int maxRow)
constructor
Definition: StarObjectSpreadsheet.cxx:341
librevenge::RVNGString m_pageStyle
the main page style
Definition: StarObjectSpreadsheet.cxx:504
Definition: StarItem.hxx:120
static Encoding getEncodingForId(int id)
return an encoding corresponding to an id
Definition: StarEncoding.cxx:73
ScMultiRecord & operator=(ScMultiRecord const &orig)
bool readSCQueryParam(StarZone &zone, int version, long lastPos)
try to read a query param
Definition: StarObjectSpreadsheet.cxx:2939
Definition: STOFFDebug.hxx:194
the main class to read a small StarOffice text zone
Definition: StarObjectSmallText.hxx:58
std::shared_ptr< StarItemPool > findItemPool(StarItemPool::Type type, bool isInside)
check if a pool corresponding to a given type is opened if so returned it.
Definition: StarObject.cxx:159
void setPosition(STOFFVec2i posi)
set the cell positions : 0,0 -> A1, 0,1 -> A2
Definition: STOFFCell.hxx:127
void setInput(STOFFInputStreamPtr input)
reset the current input
Definition: StarZone.cxx:75
RowContent * getRow(int row)
returns a row content
Definition: StarObjectSpreadsheet.cxx:396
bool closeSCRecord(std::string const &debugName)
try to close a record
Definition: StarZone.hxx:165
std::vector< float > getColumnWidths(std::vector< int > &repeated) const
returns the col width dimension in inch
Definition: StarObjectSpreadsheet.cxx:370
const char * getPassword() const
returns the document password (the password given by the user)
Definition: StarObject.hxx:81
STOFFCellContent m_content
the cell content
Definition: StarObjectSpreadsheet.cxx:282
Internal: the structures of a StarObjectSpreadsheet.
Definition: StarObjectSpreadsheet.cxx:69
Cell & getCell(STOFFVec2i const &pos)
returns a cell corresponding to a position
Definition: StarObjectSpreadsheet.cxx:448
friend std::ostream & operator<<(std::ostream &o, ScMultiRecord const &r)
basic operator<< ; print header data
Definition: StarObjectSpreadsheet.cxx:225
int getMaxRows() const
returns the maximum number of row
Definition: StarObjectSpreadsheet.cxx:365
Internal: the subdocument of a StarObjectSpreadsheet.
Definition: StarObjectSpreadsheet.cxx:509
void setGuiType(int type)
sets the zone GUI type
Definition: StarZone.hxx:136
STOFFDocument::Kind getDocumentKind() const
returns the document kind
Definition: StarObject.cxx:115
bool readSCColumn(StarZone &zone, StarObjectSpreadsheetInternal::Table &table, int column, long lastPos)
try to read a SCColumn
Definition: StarObjectSpreadsheet.cxx:2069
Internal: a structure use to read ScMultiRecord zone of a StarObjectSpreadsheet.
Definition: StarObjectSpreadsheet.cxx:73
bool parse()
try to parse data
Definition: StarObject.cxx:170
Definition: STOFFCell.hxx:276
std::vector< int > m_colWidthList
the columns width
Definition: StarObjectSpreadsheet.cxx:473
Cell m_badCell
a cell uses to return an empty cell
Definition: StarObjectSpreadsheet.cxx:479
std::map< STOFFVec2i, RowContent > m_rowToRowContentMap
map (min row, max row) -> rowContent
Definition: StarObjectSpreadsheet.cxx:477
Definition: STOFFCell.hxx:276
bool readSfxStyleSheets(STOFFInputStreamPtr input, std::string const &fileName)
try to read a spreadshet style zone: SfxStyleSheets
Definition: StarObjectSpreadsheet.cxx:1682
static bool readJobSetUp(StarZone &zone, bool usePrinterLen)
try to read a printer zone
Definition: StarFileManager.cxx:848
static void addPos(long)
Definition: STOFFDebug.hxx:223
static void addDelimiter(long, char)
Definition: STOFFDebug.hxx:225
bool readSCDBData(StarZone &zone, int version, long lastPos)
try to read a dbData
Definition: StarObjectSpreadsheet.cxx:2606
std::vector< librevenge::RVNGString > m_sheetNames
the sheet names
Definition: StarObjectSpreadsheet.cxx:502
Definition: STOFFCell.hxx:57
Definition: STOFFListener.hxx:59
std::shared_ptr< StarObjectSpreadsheetInternal::State > m_spreadsheetState
the state
Definition: StarObjectSpreadsheet.hxx:112
std::shared_ptr< GlobalState > m_global
global state
Definition: StarState.hxx:165
bool readSCTable(StarZone &zone, StarObjectSpreadsheetInternal::Table &table)
try to read a SCTable
Definition: StarObjectSpreadsheet.cxx:1784
Definition: STOFFDebug.hxx:210
std::shared_ptr< STOFFOLEParser::OleDirectory > getOLEDirectory()
returns the object directory
Definition: StarObject.hxx:86
std::map< int, std::shared_ptr< Cell > > m_colToCellMap
map col -> cell
Definition: StarObjectSpreadsheet.cxx:330
bool m_zoneOpened
true if a SfxRecord has been opened
Definition: StarObjectSpreadsheet.cxx:244
bool operator!=(STOFFSubDocument const &doc) const override
operator!=
Definition: StarObjectSpreadsheet.cxx:519
bool readSCChangeTrack(StarZone &zone, int version, long lastPos)
try to read a change trak
Definition: StarObjectSpreadsheet.cxx:2402
void compressItemList()
try to compress the item list and create a attribute list
Definition: StarObjectSpreadsheet.cxx:306
void setEncoding(StarEncoding::Encoding encod)
sets the zone encoding
Definition: StarZone.hxx:126
static void addNote(char const *)
Definition: STOFFDebug.hxx:224
State()
constructor
Definition: StarObjectSpreadsheet.cxx:490
Internal: structure used to store a row of a StarObjectSpreadsheet.
Definition: StarObjectSpreadsheet.cxx:296
static uint8_t getMaskToDecodeStream(uint8_t src, uint8_t dest)
retrieves a mask needed to decode a stream knowing a src and dest bytes
Definition: StarEncryption.cxx:216
void setFont(STOFFFont const &font)
set the font
Definition: STOFFCell.hxx:179
Definition: STOFFCell.hxx:276
STOFFInputStreamPtr input()
return the zone input
Definition: StarZone.hxx:247
void parse(STOFFListenerPtr &listener, libstoff::SubDocumentType type) final
the parser function
Definition: StarObjectSpreadsheet.cxx:536
STOFFVec2< int > STOFFVec2i
STOFFVec2 of int.
Definition: libstaroffice_internal.hxx:763
static bool open(std::string const &)
Definition: STOFFDebug.hxx:218
Definition: StarItemPool.hxx:75
bool readSCData(StarZone &zone, StarObjectSpreadsheetInternal::Table &table, int column)
try to read a list of data
Definition: StarObjectSpreadsheet.cxx:2195
Definition: StarItemPool.hxx:75
long getRecordLastPosition() const
returns the actual record last position
Definition: StarZone.hxx:200
std::string m_extra
extra data
Definition: StarObjectSpreadsheet.cxx:260
bool readSCMatrix(StarZone &zone, int version, long lastPos)
try to read a matrix
Definition: StarObjectSpreadsheet.cxx:2880
uint32_t m_numRecord
the number of record
Definition: StarObjectSpreadsheet.cxx:248
bool sendRow(int table, int row, STOFFSpreadsheetListenerPtr listener)
try to send a spreadsheet row.
Definition: StarObjectSpreadsheet.cxx:666
bool readCalcDocument(STOFFInputStreamPtr input, std::string const &fileName)
try to read a spreadsheet zone: StarCalcDocument .sdc
Definition: StarObjectSpreadsheet.cxx:813
std::map< STOFFVec2i, int > m_rowHeightMap
the rows heights in TWIP
Definition: StarObjectSpreadsheet.cxx:475
bool m_hasNote
flag to know if the cell has some note
Definition: StarObjectSpreadsheet.cxx:286
spreadsheet: .sdc
Definition: STOFFDocument.hxx:74
Generated on Mon Jan 20 2020 23:02:17 for libstaroffice by
doxygen 1.8.16