Go to the documentation of this file.
38 #ifndef BEAGLE_WKS_STRUCT_MANAGER
39 # define BEAGLE_WKS_STRUCT_MANAGER
87 bool readPicture(
int pId, librevenge::RVNGBinaryData &pict,
bool readEDTP=
true);
99 bool readFormula(
long endPos,
MWAWVec2i const &pos, std::vector<MWAWCellContent::FormulaInstruction> &formula, std::string &error);
120 if (frm.
m_id) o <<
"id=" << frm.
m_id <<
",";
124 o <<
"origin=" << frm.
m_origin <<
",";
125 o <<
"dim=" << frm.
m_dim <<
",";
126 if (frm.
m_pictId) o <<
"picId=" << std::hex << frm.
m_pictId << std::dec <<
",";
173 std::shared_ptr<BeagleWksStructManagerInternal::State>
m_state;
Definition: MWAWCell.hxx:383
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:46
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:549
MWAWVec2f m_dim
the dimension
Definition: BeagleWksStructManager.hxx:139
int m_arity
Definition: BeagleWksStructManager.cxx:663
spreadsheet
Definition: MWAWDocument.hxx:86
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:129
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:840
void addDelimiter(long pos, char c)
adds a not breaking delimiter in position pos
Definition: MWAWDebug.cxx:73
MWAWBorder m_border
the border
Definition: BeagleWksStructManager.hxx:145
Frame()
constructor
Definition: BeagleWksStructManager.hxx:104
Definition: MWAWCell.hxx:383
bool readFrame(MWAWEntry const &entry)
read the frame
Definition: BeagleWksStructManager.cxx:144
Definition: libmwaw_internal.hxx:178
small class use to define a formula instruction
Definition: MWAWCell.hxx:382
int id() const
returns the id
Definition: MWAWEntry.hxx:163
int m_id
frame id
Definition: BeagleWksStructManager.hxx:133
void setMarginBottom(const double marginBottom)
set the page bottom margin
Definition: MWAWPageSpan.hxx:206
std::map< int, BeagleWksStructManager::Frame > m_idFrameMap
the map id to frame
Definition: BeagleWksStructManager.cxx:71
bool readFormula(long endPos, MWAWVec2i const &pos, std::vector< MWAWCellContent::FormulaInstruction > &formula, std::string &error)
Definition: BeagleWksStructManager.cxx:705
MWAWVec2f m_origin
the origin ( for a page frame )
Definition: BeagleWksStructManager.hxx:137
bool getFrame(int fId, Frame &frame) const
returns a frame corresponding to an id
Definition: BeagleWksStructManager.cxx:110
int m_page
the page ( for a page frame )
Definition: BeagleWksStructManager.hxx:141
void setMarginLeft(const double marginLeft)
set the page left margin
Definition: MWAWPageSpan.hxx:191
MWAWEntry m_footer
the footer
Definition: BeagleWksStructManager.cxx:69
Definition: MWAWCell.hxx:383
bool readPicture(int pId, librevenge::RVNGBinaryData &pict, bool readEDTP=true)
read a picture (edtp or PICT resource )
Definition: BeagleWksStructManager.cxx:574
BeagleWksStructManager(MWAWParserStatePtr const &parserState)
constructor
Definition: BeagleWksStructManager.cxx:79
void setParsed(bool ok=true) const
sets the flag m_parsed to true or false
Definition: MWAWEntry.hxx:125
void addNote(char const *note)
adds a note in the file, in actual position
Definition: MWAWDebug.cxx:59
std::string m_content
the content ( if type == F_Operator or type = F_Function or type==F_Text)
Definition: MWAWCell.hxx:403
bool readFontNames(MWAWEntry const &entry)
read the font names
Definition: BeagleWksStructManager.cxx:332
BeagleWksStructManager & operator=(BeagleWksStructManager const &orig)=delete
std::shared_ptr< BeagleWksStructManagerInternal::State > m_state
the state
Definition: BeagleWksStructManager.hxx:173
Definition: MWAWCell.hxx:383
the main class to read the structure shared between different BeagleWorks files
Definition: BeagleWksStructManager.hxx:56
MWAWParserStatePtr m_parserState
the parser state
Definition: BeagleWksStructManager.hxx:170
Internal: a structure use to store a frame in a BeagleWorks files.
Definition: BeagleWksStructManager.hxx:102
void skipZone(long beginPos, long endPos)
skips the file zone defined by beginPos-endPos
Definition: MWAWDebug.hxx:113
bool dumpFile(librevenge::RVNGBinaryData &data, char const *fileName)
a debug function to store in a datafile in the current directory WARNING: this function erase the fil...
Definition: MWAWDebug.cxx:193
static const Functions s_listFunctions[]
Definition: BeagleWksStructManager.cxx:666
Type m_type
the type
Definition: MWAWCell.hxx:401
void getHeaderFooterEntries(MWAWEntry &header, MWAWEntry &footer) const
returns the header, footer entries (find by readDocumentInfo)
Definition: BeagleWksStructManager.cxx:99
MWAWInputStreamPtr rsrcInput()
return the input input
Definition: BeagleWksStructManager.cxx:131
State()
constructor
Definition: BeagleWksStructManager.cxx:57
a border
Definition: libmwaw_internal.hxx:333
Internal: the state of a BeagleWksStructManager.
Definition: BeagleWksStructManager.cxx:55
MWAWEntry m_header
the header
Definition: BeagleWksStructManager.cxx:67
long length() const
returns the length of the zone
Definition: MWAWEntry.hxx:92
double getFormWidth() const
returns the page width
Definition: MWAWPageSpan.hxx:120
Definition: BeagleWksStructManager.cxx:661
Definition: libmwaw_internal.hxx:178
std::vector< int > m_fileIdFontIdList
a list to get the correspondance between fileId and fontId
Definition: BeagleWksStructManager.cxx:65
long begin() const
returns the begin offset
Definition: MWAWEntry.hxx:82
int m_pictId
the picture id
Definition: BeagleWksStructManager.hxx:135
double m_longValue
value ( if type==F_Long )
Definition: MWAWCell.hxx:405
libmwaw::DebugFile & rsrcAscii()
a DebugFile used to write what we recognize when we parse the document in rsrc
Definition: BeagleWksStructManager.cxx:136
void setMarginTop(const double marginTop)
set the page top margin
Definition: MWAWPageSpan.hxx:201
double m_doubleValue
value ( if type==F_Double )
Definition: MWAWCell.hxx:407
MWAWInputStreamPtr getInput()
return the input input
Definition: BeagleWksStructManager.cxx:121
Definition: MWAWCell.hxx:383
bool readDocumentPreferences()
read the document preferences
Definition: BeagleWksStructManager.cxx:465
Definition: MWAWCell.hxx:383
long end() const
returns the end offset
Definition: MWAWEntry.hxx:87
libmwaw::DebugFile & ascii()
a DebugFile used to write what we recognize when we parse the document
Definition: BeagleWksStructManager.cxx:126
Definition: libmwaw_internal.hxx:178
int getFontId(int fFontId) const
returns a font id corresponding to a file id (or -3)
Definition: BeagleWksStructManager.cxx:89
Internal: the structures of a BeagleWksStructManager.
Definition: BeagleWksStructManager.cxx:50
int m_wrap
the wrapping: 0=none, 1=rectangle, 2=irregular
Definition: BeagleWksStructManager.hxx:143
~BeagleWksStructManager()
destructor
Definition: BeagleWksStructManager.cxx:85
Definition: MWAWCell.hxx:383
std::shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:555
Definition: libmwaw_internal.hxx:178
MWAWVec2i m_position[2]
cell position ( if type==F_Cell or F_CellList )
Definition: MWAWCell.hxx:409
void addPos(long pos)
adds a new position in the file
Definition: MWAWDebug.cxx:53
void setMarginRight(const double marginRight)
set the page right margin
Definition: MWAWPageSpan.hxx:196
bool valid() const
returns true if the zone length is positive
Definition: MWAWEntry.hxx:98
bool m_charAnchor
a flag to know if this is a char or a page frame
Definition: BeagleWksStructManager.hxx:131
an interface used to insert comment in a binary file, written in ascii form (if debug_with_files is n...
Definition: MWAWDebug.hxx:65
const char * m_name
Definition: BeagleWksStructManager.cxx:662
const std::map< int, Frame > & getIdFrameMap() const
returns the id to frame map
Definition: BeagleWksStructManager.cxx:105
bool readFontStyle(MWAWEntry const &entry)
read the font style ressource
Definition: BeagleWksStructManager.cxx:546
MWAWVec2b m_positionRelative[2]
relative cell position ( if type==F_Cell or F_CellList )
Definition: MWAWCell.hxx:411
bool readDocumentInfo()
read the document information ( pagespan + header/footer)
Definition: BeagleWksStructManager.cxx:382
bool readwPos(MWAWEntry const &entry)
read the windows positions ( wPos 1001 resource block )
Definition: BeagleWksStructManager.cxx:521
double getFormLength() const
returns the page length
Definition: MWAWPageSpan.hxx:115
MWAWVec2< bool > MWAWVec2b
MWAWVec2 of bool.
Definition: libmwaw_internal.hxx:834
MWAWVec2< int > MWAWVec2i
MWAWVec2 of int.
Definition: libmwaw_internal.hxx:836
std::string m_extra
extra data
Definition: BeagleWksStructManager.hxx:149
bool readCellInFormula(MWAWVec2i actPos, MWAWCellContent::FormulaInstruction &instr)
Definition: BeagleWksStructManager.cxx:627
std::stringstream DebugStream
a basic stream (if debug_with_files is not defined, does nothing)
Definition: MWAWDebug.hxx:61
int m_bordersSet
the list of border which are set in form libmwaw::LeftBit|...
Definition: BeagleWksStructManager.hxx:147
A class which defines the page properties.
Definition: MWAWPageSpan.hxx:97
friend std::ostream & operator<<(std::ostream &o, Frame const &frm)
operator<<
Definition: BeagleWksStructManager.hxx:118
Generated on Sat Jan 25 2020 05:49:57 for libmwaw by
doxygen 1.8.16