Commit 152b2d8f authored by Elen.Subbotina's avatar Elen.Subbotina Committed by Alexander Trofimov

XlsFile2 - картинки

git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@63801 954022d7-b5bf-4e40-9824-e11837661b57
parent 089d4c7f
...@@ -11,11 +11,10 @@ class BopPopCustomPiesIndices : public BiffStructure ...@@ -11,11 +11,10 @@ class BopPopCustomPiesIndices : public BiffStructure
public: public:
BiffStructurePtr clone(); BiffStructurePtr clone();
//virtual void toXML(MSXML2::IXMLDOMElementPtr xml_tag);
//virtual const bool fromXML(MSXML2::IXMLDOMElementPtr xml_tag){return false;}
virtual void load(CFRecord& record); virtual void load(CFRecord& record);
virtual void store(CFRecord& record){} virtual void store(CFRecord& record){}
static const ElementType type = typeBopPopCustomPiesIndices;
//----------------------------- //-----------------------------
std::vector<unsigned short> pie_indices; std::vector<unsigned short> pie_indices;
}; };
......
...@@ -17,6 +17,7 @@ public: ...@@ -17,6 +17,7 @@ public:
virtual void load(CFRecord& record) {}; virtual void load(CFRecord& record) {};
virtual void store(CFRecord& record){}; virtual void store(CFRecord& record){};
static const ElementType type = typeIXFCellMulBlankSpecial;
//----------------------------- //-----------------------------
unsigned short common_ixfe; unsigned short common_ixfe;
std::vector<unsigned short> rgixfe; std::vector<unsigned short> rgixfe;
......
...@@ -11,14 +11,12 @@ class RGISeriesListSpecial : public BiffStructure ...@@ -11,14 +11,12 @@ class RGISeriesListSpecial : public BiffStructure
public: public:
BiffStructurePtr clone(); BiffStructurePtr clone();
//virtual void toXML(MSXML2::IXMLDOMElementPtr xml_tag);
//virtual const bool fromXML(MSXML2::IXMLDOMElementPtr xml_tag);
virtual void load(CFRecord& record); virtual void load(CFRecord& record);
virtual void store(CFRecord& record); virtual void store(CFRecord& record);
static const ElementType type = typeRGISeriesListSpecial; static const ElementType type = typeRGISeriesListSpecial;
//----------------------------- //-----------------------------
std::vector<unsigned short> series; std::vector<unsigned short> series;
}; };
......
...@@ -16,12 +16,12 @@ public: ...@@ -16,12 +16,12 @@ public:
AF12Criteria(); AF12Criteria();
~AF12Criteria(); ~AF12Criteria();
virtual void load(CFRecord& record); virtual void load(CFRecord& record);
virtual void store(CFRecord& record); virtual void store(CFRecord& record);
public: static const ElementType type = typeAF12Criteria;
AFDOper doper; AFDOper doper;
XLUnicodeStringNoCch str; XLUnicodeStringNoCch str;
BIFF_BSTR _str; BIFF_BSTR _str;
......
...@@ -17,16 +17,15 @@ public: ...@@ -17,16 +17,15 @@ public:
AFDOper(bool bAutoFilter); AFDOper(bool bAutoFilter);
~AFDOper(); ~AFDOper();
virtual void load(CFRecord& record); virtual void load(CFRecord& record);
virtual void store(CFRecord& record); virtual void store(CFRecord& record);
static const ElementType type = typeAFDOper;
BIFF_BYTE vt; BIFF_BYTE vt;
BIFF_BYTE grbitSign; BIFF_BYTE grbitSign;
AFDOperStr vtValue; AFDOperStr vtValue;
public:
bool m_bAutoFilter; bool m_bAutoFilter;
}; };
......
...@@ -17,7 +17,8 @@ public: ...@@ -17,7 +17,8 @@ public:
virtual void load(CFRecord& record); virtual void load(CFRecord& record);
virtual void store(CFRecord& record); virtual void store(CFRecord& record);
public: static const ElementType type = typeAFDOperRk;
BIFF_DWORD rk; BIFF_DWORD rk;
}; };
......
...@@ -17,6 +17,7 @@ public: ...@@ -17,6 +17,7 @@ public:
AFDOperStr(bool bAutoFilter); AFDOperStr(bool bAutoFilter);
~AFDOperStr(); ~AFDOperStr();
static const ElementType type = typeAFDOperStr;
virtual void load(CFRecord& record); virtual void load(CFRecord& record);
...@@ -25,7 +26,6 @@ public: ...@@ -25,7 +26,6 @@ public:
BIFF_BYTE cch; BIFF_BYTE cch;
BIFF_BYTE fCompare; BIFF_BYTE fCompare;
public:
bool m_bAutoFilter; bool m_bAutoFilter;
}; };
......
...@@ -13,13 +13,12 @@ class AddinUdf : public BiffStructure ...@@ -13,13 +13,12 @@ class AddinUdf : public BiffStructure
BASE_STRUCTURE_DEFINE_CLASS_NAME(AddinUdf) BASE_STRUCTURE_DEFINE_CLASS_NAME(AddinUdf)
public: public:
BiffStructurePtr clone(); BiffStructurePtr clone();
virtual void load(CFRecord& record); virtual void load(CFRecord& record);
virtual void store(CFRecord& record); virtual void store(CFRecord& record);
private: static const ElementType type = typeAddinUdf;
ShortXLUnicodeString udfName; ShortXLUnicodeString udfName;
}; };
......
...@@ -13,8 +13,8 @@ class AntiMoniker : public XLS::BiffStructure ...@@ -13,8 +13,8 @@ class AntiMoniker : public XLS::BiffStructure
public: public:
XLS::BiffStructurePtr clone(); XLS::BiffStructurePtr clone();
static const XLS::ElementType type = XLS::typeAntiMoniker;
virtual void load(XLS::CFRecord& record); virtual void load(XLS::CFRecord& record);
virtual void store(XLS::CFRecord& record); virtual void store(XLS::CFRecord& record);
......
...@@ -14,6 +14,7 @@ class Bes : public BiffStructure ...@@ -14,6 +14,7 @@ class Bes : public BiffStructure
public: public:
BiffStructurePtr clone(); BiffStructurePtr clone();
static const ElementType type = typeBes;
virtual void load(CFRecord& record); virtual void load(CFRecord& record);
......
...@@ -17,6 +17,7 @@ public: ...@@ -17,6 +17,7 @@ public:
{ {
attrib_name = name_init; attrib_name = name_init;
} }
static const ElementType type = typeBiffAttribute;
_CP_OPT(std::wstring) attrib_name; _CP_OPT(std::wstring) attrib_name;
}; };
......
...@@ -37,8 +37,7 @@ public: ...@@ -37,8 +37,7 @@ public:
virtual void load(CFRecord& record) = 0; virtual void load(CFRecord& record) = 0;
virtual void store(CFRecord& record) = 0; virtual void store(CFRecord& record) = 0;
static const ElementType type = typeBiffStructure; virtual ElementType get_type() = 0;
virtual ElementType get_type() const { return type; }
virtual int serialize(std::wostream & _stream) virtual int serialize(std::wostream & _stream)
{ {
...@@ -54,7 +53,8 @@ public: ...@@ -54,7 +53,8 @@ public:
#define BASE_STRUCTURE_DEFINE_CLASS_NAME(class_name)\ #define BASE_STRUCTURE_DEFINE_CLASS_NAME(class_name)\
public: \ public: \
const std::wstring & getClassName() const { static std::wstring str(L# class_name); return str; }; const std::wstring & getClassName() const { static std::wstring str(L# class_name); return str; };\
virtual XLS::ElementType get_type() { return type; }
......
...@@ -13,12 +13,12 @@ class BookExt_Conditional11 : public BiffStructure ...@@ -13,12 +13,12 @@ class BookExt_Conditional11 : public BiffStructure
public: public:
BiffStructurePtr clone(); BiffStructurePtr clone();
static const ElementType type = typeBookExt_Conditional11;
virtual void load(CFRecord& record); virtual void load(CFRecord& record);
virtual void store(CFRecord& record); virtual void store(CFRecord& record);
private:
bool fBuggedUserAboutSolution; bool fBuggedUserAboutSolution;
bool fShowInkAnnotation; bool fShowInkAnnotation;
}; };
......
...@@ -13,12 +13,11 @@ class BookExt_Conditional12 : public BiffStructure ...@@ -13,12 +13,11 @@ class BookExt_Conditional12 : public BiffStructure
public: public:
BiffStructurePtr clone(); BiffStructurePtr clone();
static const ElementType type = typeBookExt_Conditional12;
virtual void load(CFRecord& record); virtual void load(CFRecord& record);
virtual void store(CFRecord& record); virtual void store(CFRecord& record);
private:
bool fPublishedBookItems; bool fPublishedBookItems;
bool fShowPivotChartFilter; bool fShowPivotChartFilter;
}; };
......
...@@ -13,7 +13,7 @@ class BuiltInStyle : public BiffStructure ...@@ -13,7 +13,7 @@ class BuiltInStyle : public BiffStructure
public: public:
BiffStructurePtr clone(); BiffStructurePtr clone();
static const ElementType type = typeBuiltInStyle;
virtual void load(CFRecord& record); virtual void load(CFRecord& record);
virtual void store(CFRecord& record); virtual void store(CFRecord& record);
......
...@@ -17,12 +17,11 @@ public: ...@@ -17,12 +17,11 @@ public:
CFColor(CFRecord& record); CFColor(CFRecord& record);
BiffStructurePtr clone(); BiffStructurePtr clone();
//virtual void toXML(BiffStructurePtr & parent); static const ElementType type = typeCFColor;
//virtual const bool fromXML(BiffStructurePtr & parent);
virtual void load(CFRecord& record); virtual void load(CFRecord& record);
virtual void store(CFRecord& record); virtual void store(CFRecord& record);
private:
XColorType xclrType; XColorType xclrType;
ColorICV icv; ColorICV icv;
LongRGBA rgb; LongRGBA rgb;
......
...@@ -15,12 +15,11 @@ class CFExNonCF12 : public BiffStructure ...@@ -15,12 +15,11 @@ class CFExNonCF12 : public BiffStructure
public: public:
BiffStructurePtr clone(); BiffStructurePtr clone();
static const ElementType type = typeCFExNonCF12;
virtual void load(CFRecord& record); virtual void load(CFRecord& record);
virtual void store(CFRecord& record); virtual void store(CFRecord& record);
private:
unsigned short icf; unsigned short icf;
unsigned char cp; unsigned char cp;
unsigned char icfTemplate; unsigned char icfTemplate;
......
...@@ -100,7 +100,8 @@ public: ...@@ -100,7 +100,8 @@ public:
virtual void load(CFRecord& record); virtual void load(CFRecord& record);
virtual void store(CFRecord& record); virtual void store(CFRecord& record);
private: static const ElementType type = typeCFExTemplateParams;
union union
{ {
CFExFilterParams filter; CFExFilterParams filter;
......
...@@ -15,12 +15,12 @@ class CFMStateItem : public BiffStructure ...@@ -15,12 +15,12 @@ class CFMStateItem : public BiffStructure
public: public:
BiffStructurePtr clone(); BiffStructurePtr clone();
static const ElementType type = typeCFMStateItem;
virtual void load(CFRecord& record); virtual void load(CFRecord& record);
virtual void store(CFRecord& record); virtual void store(CFRecord& record);
private:
CFVO cfvo; CFVO cfvo;
Boolean<unsigned char> fEqual; Boolean<unsigned char> fEqual;
}; };
......
...@@ -14,7 +14,7 @@ class CFMultistate : public BiffStructure ...@@ -14,7 +14,7 @@ class CFMultistate : public BiffStructure
public: public:
BiffStructurePtr clone(); BiffStructurePtr clone();
static const ElementType type = typeCFMultistate;
virtual void load(CFRecord& record); virtual void load(CFRecord& record);
virtual void store(CFRecord& record); virtual void store(CFRecord& record);
......
...@@ -14,7 +14,7 @@ class CFVO : public BiffStructure ...@@ -14,7 +14,7 @@ class CFVO : public BiffStructure
public: public:
BiffStructurePtr clone(); BiffStructurePtr clone();
static const ElementType type = typeCFVO;
virtual void load(CFRecord& record); virtual void load(CFRecord& record);
virtual void store(CFRecord& record); virtual void store(CFRecord& record);
......
...@@ -23,6 +23,8 @@ public: ...@@ -23,6 +23,8 @@ public:
const CellRef getLocation() const; const CellRef getLocation() const;
static const ElementType type = typeCell;
Rw rw; Rw rw;
Col col; Col col;
IXFCell ixfe; IXFCell ixfe;
......
...@@ -23,10 +23,9 @@ public: ...@@ -23,10 +23,9 @@ public:
static void resend(CFStream& stream, const unsigned int data_place, const unsigned int data); static void resend(CFStream& stream, const unsigned int data_place, const unsigned int data);
private: static const ElementType type = typeCellOffsetResender;
// Stubbed to make class non-abstract // Stubbed to make class non-abstract
private:
bool row_starts; bool row_starts;
}; };
......
...@@ -25,8 +25,7 @@ public: ...@@ -25,8 +25,7 @@ public:
BiffStructurePtr clone(); BiffStructurePtr clone();
static const ElementType type = typeCellRangeRef;
const std::wstring toString(const bool useShortForm = true) const; const std::wstring toString(const bool useShortForm = true) const;
void fromString(const std::wstring& str); void fromString(const std::wstring& str);
......
...@@ -16,7 +16,7 @@ public: ...@@ -16,7 +16,7 @@ public:
BiffStructurePtr clone(); BiffStructurePtr clone();
static const ElementType type = typeCellRef;
const std::wstring toString() const; const std::wstring toString() const;
......
...@@ -21,6 +21,8 @@ public: ...@@ -21,6 +21,8 @@ public:
virtual void load(CFRecord& record); virtual void load(CFRecord& record);
virtual void store(CFRecord& record); virtual void store(CFRecord& record);
static const ElementType type = typeCellXF;
GlobalWorkbookInfoPtr m_GlobalWorkbookInfo; GlobalWorkbookInfoPtr m_GlobalWorkbookInfo;
int serialize(std::wostream & stream); int serialize(std::wostream & stream);
......
...@@ -16,12 +16,11 @@ public: ...@@ -16,12 +16,11 @@ public:
CompositeMoniker(XLS::CFRecord& record); CompositeMoniker(XLS::CFRecord& record);
XLS::BiffStructurePtr clone(); XLS::BiffStructurePtr clone();
static const XLS::ElementType type = XLS::typeCompositeMoniker;
virtual void load(XLS::CFRecord& record); virtual void load(XLS::CFRecord& record);
virtual void store(XLS::CFRecord& record); virtual void store(XLS::CFRecord& record);
private:
std::vector<HyperlinkMoniker> monikerArray; std::vector<HyperlinkMoniker> monikerArray;
}; };
......
...@@ -14,7 +14,7 @@ class CondFmtStructure : public BiffStructure ...@@ -14,7 +14,7 @@ class CondFmtStructure : public BiffStructure
public: public:
BiffStructurePtr clone(); BiffStructurePtr clone();
static const ElementType type = typeCondFmtStructure;
virtual void load(CFRecord& record); virtual void load(CFRecord& record);
virtual void store(CFRecord& record); virtual void store(CFRecord& record);
......
...@@ -14,7 +14,7 @@ class ControlInfo : public BiffStructure ...@@ -14,7 +14,7 @@ class ControlInfo : public BiffStructure
public: public:
BiffStructurePtr clone(); BiffStructurePtr clone();
static const ElementType type = typeControlInfo;
virtual void load(CFRecord& record); virtual void load(CFRecord& record);
virtual void store(CFRecord& record); virtual void store(CFRecord& record);
......
...@@ -12,13 +12,12 @@ class DXFALC : public BiffStructure ...@@ -12,13 +12,12 @@ class DXFALC : public BiffStructure
BASE_STRUCTURE_DEFINE_CLASS_NAME(DXFALC) BASE_STRUCTURE_DEFINE_CLASS_NAME(DXFALC)
public: public:
BiffStructurePtr clone(); BiffStructurePtr clone();
static const ElementType type = typeDXFALC;
virtual void load(CFRecord& record); virtual void load(CFRecord& record);
virtual void store(CFRecord& record); virtual void store(CFRecord& record);
private:
unsigned char alc; unsigned char alc;
bool fWrap; bool fWrap;
unsigned char alcv; unsigned char alcv;
......
...@@ -13,12 +13,11 @@ class DXFBdr : public BiffStructure ...@@ -13,12 +13,11 @@ class DXFBdr : public BiffStructure
public: public:
BiffStructurePtr clone(); BiffStructurePtr clone();
static const ElementType type = typeDXFBdr;
virtual void load(CFRecord& record); virtual void load(CFRecord& record);
virtual void store(CFRecord& record); virtual void store(CFRecord& record);
private:
unsigned char dgLeft; unsigned char dgLeft;
unsigned char dgRight; unsigned char dgRight;
unsigned char dgTop; unsigned char dgTop;
......
...@@ -16,12 +16,11 @@ class DXFFntD : public BiffStructure ...@@ -16,12 +16,11 @@ class DXFFntD : public BiffStructure
public: public:
BiffStructurePtr clone(); BiffStructurePtr clone();
static const ElementType type = typeDXFFntD;
virtual void load(CFRecord& record); virtual void load(CFRecord& record);
virtual void store(CFRecord& record); virtual void store(CFRecord& record);
private:
XLUnicodeStringNoCch stFontName; XLUnicodeStringNoCch stFontName;
Stxp stxp; Stxp stxp;
long icvFore; long icvFore;
......
...@@ -17,12 +17,11 @@ public: ...@@ -17,12 +17,11 @@ public:
DXFId(CFRecord& record); DXFId(CFRecord& record);
BiffStructurePtr clone(); BiffStructurePtr clone();
//virtual void toXML(BiffStructurePtr & parent); static const ElementType type = typeDXFId;
//virtual const bool fromXML(BiffStructurePtr & parent);
virtual void load(CFRecord& record); virtual void load(CFRecord& record);
virtual void store(CFRecord& record); virtual void store(CFRecord& record);
private:
unsigned int index; unsigned int index;
}; };
......
...@@ -19,12 +19,11 @@ class DXFN : public BiffStructure ...@@ -19,12 +19,11 @@ class DXFN : public BiffStructure
public: public:
BiffStructurePtr clone(); BiffStructurePtr clone();
static const ElementType type = typeDXFN;
virtual void load(CFRecord& record); virtual void load(CFRecord& record);
virtual void store(CFRecord& record); virtual void store(CFRecord& record);
private:
bool alchNinch; bool alchNinch;
bool alcvNinch; bool alcvNinch;
bool wrapNinch; bool wrapNinch;
......
...@@ -15,12 +15,11 @@ class DXFN12 : public BiffStructure ...@@ -15,12 +15,11 @@ class DXFN12 : public BiffStructure
public: public:
BiffStructurePtr clone(); BiffStructurePtr clone();
static const ElementType type = typeDXFN12;
virtual void load(CFRecord& record); virtual void load(CFRecord& record);
virtual void store(CFRecord& record); virtual void store(CFRecord& record);
private:
unsigned int cbDxf; unsigned int cbDxf;
DXFNPtr dxfn; DXFNPtr dxfn;
XFExtNoFRTPtr xfext; XFExtNoFRTPtr xfext;
......
...@@ -17,12 +17,11 @@ public: ...@@ -17,12 +17,11 @@ public:
DXFN12List(); DXFN12List();
~DXFN12List(); ~DXFN12List();
static const ElementType type = typeDXFN12List;
virtual void load(CFRecord& record); virtual void load(CFRecord& record);
virtual void store(CFRecord& record); virtual void store(CFRecord& record);
public:
DXFN dxfn; DXFN dxfn;
XFExtNoFRT xfext; XFExtNoFRT xfext;
}; };
......
...@@ -15,7 +15,7 @@ class DXFNum : public BiffStructure ...@@ -15,7 +15,7 @@ class DXFNum : public BiffStructure
public: public:
BiffStructurePtr clone(); BiffStructurePtr clone();
static const ElementType type = typeDXFNum;
virtual void load(CFRecord& record); virtual void load(CFRecord& record);
virtual void store(CFRecord& record); virtual void store(CFRecord& record);
...@@ -23,7 +23,6 @@ public: ...@@ -23,7 +23,6 @@ public:
void setIsUserDefined(const bool is_user_defined); void setIsUserDefined(const bool is_user_defined);
const bool getIsUserDefined() const; const bool getIsUserDefined() const;
private:
_CP_OPT(bool) is_user_defined_; _CP_OPT(bool) is_user_defined_;
DXFNumIFmt fmt_id; DXFNumIFmt fmt_id;
DXFNumUsr user_defined; DXFNumUsr user_defined;
......
...@@ -15,12 +15,11 @@ public: ...@@ -15,12 +15,11 @@ public:
DXFNumUsr(); DXFNumUsr();
BiffStructurePtr clone(); BiffStructurePtr clone();
//virtual void toXML(BiffStructurePtr & parent); static const ElementType type = typeDXFNumUsr;
//virtual const bool fromXML(BiffStructurePtr & parent);
virtual void load(CFRecord& record); virtual void load(CFRecord& record);
virtual void store(CFRecord& record); virtual void store(CFRecord& record);
private:
unsigned short cb; unsigned short cb;
XLUnicodeString fmt; XLUnicodeString fmt;
}; };
......
...@@ -14,12 +14,11 @@ class DXFPat : public BiffStructure ...@@ -14,12 +14,11 @@ class DXFPat : public BiffStructure
public: public:
BiffStructurePtr clone(); BiffStructurePtr clone();
static const ElementType type = typeDXFPat;
virtual void load(CFRecord& record); virtual void load(CFRecord& record);
virtual void store(CFRecord& record); virtual void store(CFRecord& record);
private:
FillPattern fls; FillPattern fls;
unsigned char icvForeground; unsigned char icvForeground;
unsigned char icvBackground; unsigned char icvBackground;
......
#pragma once #pragma once
#include "BiffStructure.h" #include "BiffStructure.h"
//#include <Logic/Biff_structures/Phs.h>
//#include <Logic/Biff_structures/BiffString.h>
namespace XLS namespace XLS
{; {;
...@@ -15,12 +13,11 @@ class DXFProt : public BiffStructure ...@@ -15,12 +13,11 @@ class DXFProt : public BiffStructure
public: public:
BiffStructurePtr clone(); BiffStructurePtr clone();
static const ElementType type = typeDXFProt;
virtual void load(CFRecord& record); virtual void load(CFRecord& record);
virtual void store(CFRecord& record); virtual void store(CFRecord& record);
private:
bool fLocked; bool fLocked;
bool fHidden; bool fHidden;
}; };
......
...@@ -14,12 +14,11 @@ class DropDownObjId : public BiffStructure ...@@ -14,12 +14,11 @@ class DropDownObjId : public BiffStructure
public: public:
BiffStructurePtr clone(); BiffStructurePtr clone();
//virtual void toXML(BiffStructurePtr & parent); static const ElementType type = typeDropDownObjId;
//virtual const bool fromXML(BiffStructurePtr & parent);
virtual void load(CFRecord& record); virtual void load(CFRecord& record);
virtual void store(CFRecord& record); virtual void store(CFRecord& record);
private:
ObjId id; ObjId id;
}; };
......
...@@ -14,12 +14,11 @@ class EncryptionHeader : public XLS::BiffStructure ...@@ -14,12 +14,11 @@ class EncryptionHeader : public XLS::BiffStructure
public: public:
XLS::BiffStructurePtr clone(); XLS::BiffStructurePtr clone();
//virtual void toXML(BiffStructurePtr & parent); static const XLS::ElementType type = XLS::typeEncryptionHeader;
//virtual const bool fromXML(BiffStructurePtr & parent);
virtual void load(XLS::CFRecord& record); virtual void load(XLS::CFRecord& record);
virtual void store(XLS::CFRecord& record); virtual void store(XLS::CFRecord& record);
private:
EncryptionHeaderFlags Flags; EncryptionHeaderFlags Flags;
long AlgID; long AlgID;
long AlgIDHash; long AlgIDHash;
......
...@@ -15,12 +15,11 @@ class EncryptionHeaderFlags : public XLS::BiffStructure ...@@ -15,12 +15,11 @@ class EncryptionHeaderFlags : public XLS::BiffStructure
public: public:
XLS::BiffStructurePtr clone(); XLS::BiffStructurePtr clone();
//virtual void toXML(BiffStructurePtr & parent); static const XLS::ElementType type = XLS::typeEncryptionHeaderFlags;
//virtual const bool fromXML(BiffStructurePtr & parent);
virtual void load(XLS::CFRecord& record); virtual void load(XLS::CFRecord& record);
virtual void store(XLS::CFRecord& record); virtual void store(XLS::CFRecord& record);
private:
bool fCryptoAPI; bool fCryptoAPI;
bool fDocProps; bool fDocProps;
bool fExternal; bool fExternal;
......
...@@ -13,12 +13,11 @@ class EncryptionVerifier : public XLS::BiffStructure ...@@ -13,12 +13,11 @@ class EncryptionVerifier : public XLS::BiffStructure
public: public:
XLS::BiffStructurePtr clone(); XLS::BiffStructurePtr clone();
//virtual void toXML(BiffStructurePtr & parent); static const XLS::ElementType type = XLS::typeEncryptionVerifier;
//virtual const bool fromXML(BiffStructurePtr & parent);
virtual void load(XLS::CFRecord& record); virtual void load(XLS::CFRecord& record);
virtual void store(XLS::CFRecord& record); virtual void store(XLS::CFRecord& record);
private:
unsigned int SaltSize; unsigned int SaltSize;
struct SALT_TAG { struct SALT_TAG {
unsigned int b1; unsigned int b1;
......
...@@ -15,12 +15,11 @@ public: ...@@ -15,12 +15,11 @@ public:
EnhancedProtection(CFRecord& record); EnhancedProtection(CFRecord& record);
BiffStructurePtr clone(); BiffStructurePtr clone();
//virtual void toXML(BiffStructurePtr & parent); static const ElementType type = typeEnhancedProtection;
//virtual const bool fromXML(BiffStructurePtr & parent);
virtual void load(CFRecord& record); virtual void load(CFRecord& record);
virtual void store(CFRecord& record); virtual void store(CFRecord& record);
private:
bool iprotObjects; bool iprotObjects;
bool iprotScenarios; bool iprotScenarios;
bool iprotFormatCells; bool iprotFormatCells;
......
...@@ -18,6 +18,8 @@ public: ...@@ -18,6 +18,8 @@ public:
virtual void load(CFRecord& record); virtual void load(CFRecord& record);
virtual void store(CFRecord& record); virtual void store(CFRecord& record);
static const ElementType type = typeExtProp;
unsigned short extType; unsigned short extType;
unsigned short cb; unsigned short cb;
......
...@@ -16,14 +16,13 @@ class ExtRst : public BiffStructure ...@@ -16,14 +16,13 @@ class ExtRst : public BiffStructure
public: public:
BiffStructurePtr clone(); BiffStructurePtr clone();
static const ElementType type = typeExtRst;
virtual void load(CFRecord& record); virtual void load(CFRecord& record);
virtual void store(CFRecord& record); virtual void store(CFRecord& record);
const size_t getSize() const; const size_t getSize() const;
private:
unsigned short cb; unsigned short cb;
Phs phs; Phs phs;
RPHSSub rphssub; RPHSSub rphssub;
......
...@@ -14,12 +14,11 @@ class ExternDdeLinkNoOper : public BiffStructure ...@@ -14,12 +14,11 @@ class ExternDdeLinkNoOper : public BiffStructure
public: public:
BiffStructurePtr clone(); BiffStructurePtr clone();
//virtual void toXML(BiffStructurePtr & parent);
//virtual const bool fromXML(BiffStructurePtr & parent);
virtual void load(CFRecord& record); virtual void load(CFRecord& record);
virtual void store(CFRecord& record); virtual void store(CFRecord& record);
private: static const ElementType type = typeExternDdeLinkNoOper;
ShortXLUnicodeString linkName; ShortXLUnicodeString linkName;
}; };
......
...@@ -15,12 +15,11 @@ class ExternDocName : public BiffStructure ...@@ -15,12 +15,11 @@ class ExternDocName : public BiffStructure
public: public:
BiffStructurePtr clone(); BiffStructurePtr clone();
//virtual void toXML(BiffStructurePtr & parent); static const ElementType type = typeExternDocName;
//virtual const bool fromXML(BiffStructurePtr & parent);
virtual void load(CFRecord& record); virtual void load(CFRecord& record);
virtual void store(CFRecord& record); virtual void store(CFRecord& record);
private:
unsigned short ixals; unsigned short ixals;
ShortXLUnicodeString extName; ShortXLUnicodeString extName;
ExtNameParsedFormula nameDefinition; ExtNameParsedFormula nameDefinition;
......
...@@ -15,12 +15,11 @@ class ExternOleDdeLink : public BiffStructure ...@@ -15,12 +15,11 @@ class ExternOleDdeLink : public BiffStructure
public: public:
BiffStructurePtr clone(); BiffStructurePtr clone();
//virtual void toXML(BiffStructurePtr & parent);
//virtual const bool fromXML(BiffStructurePtr & parent);
virtual void load(CFRecord& record); virtual void load(CFRecord& record);
virtual void store(CFRecord& record); virtual void store(CFRecord& record);
private: static const ElementType type = typeExternOleDdeLink;
unsigned int lStgName; unsigned int lStgName;
ShortXLUnicodeString linkName; ShortXLUnicodeString linkName;
MOper moper; MOper moper;
......
...@@ -17,12 +17,11 @@ public: ...@@ -17,12 +17,11 @@ public:
FactoidData(CFRecord& record); FactoidData(CFRecord& record);
BiffStructurePtr clone(); BiffStructurePtr clone();
//virtual void toXML(BiffStructurePtr & parent); static const ElementType type = typeFactoidData;
//virtual const bool fromXML(BiffStructurePtr & parent);
virtual void load(CFRecord& record); virtual void load(CFRecord& record);
virtual void store(CFRecord& record); virtual void store(CFRecord& record);
private:
bool fDelete; bool fDelete;
bool fXMLBased; bool fXMLBased;
OSHARED::PropertyBag propertyBag; OSHARED::PropertyBag propertyBag;
......
...@@ -15,12 +15,11 @@ class FactoidType : public XLS::BiffStructure ...@@ -15,12 +15,11 @@ class FactoidType : public XLS::BiffStructure
public: public:
XLS::BiffStructurePtr clone(); XLS::BiffStructurePtr clone();
//virtual void toXML(BiffStructurePtr & parent); static const XLS::ElementType type = XLS::typeFactoidType;
//virtual const bool fromXML(BiffStructurePtr & parent);
virtual void load(XLS::CFRecord& record); virtual void load(XLS::CFRecord& record);
virtual void store(XLS::CFRecord& record); virtual void store(XLS::CFRecord& record);
private:
unsigned int id; unsigned int id;
PBString rgbUri; PBString rgbUri;
PBString rgbTag; PBString rgbTag;
......
...@@ -16,12 +16,11 @@ class Feat11FdaAutoFilter : public BiffStructure ...@@ -16,12 +16,11 @@ class Feat11FdaAutoFilter : public BiffStructure
public: public:
BiffStructurePtr clone(); BiffStructurePtr clone();
static const ElementType type = typeFeat11FdaAutoFilter;
virtual void load(CFRecord& record); virtual void load(CFRecord& record);
virtual void store(CFRecord& record); virtual void store(CFRecord& record);
public:
BIFF_DWORD cbAutoFilter; BIFF_DWORD cbAutoFilter;
AutoFilter recAutoFilter; AutoFilter recAutoFilter;
}; };
......
...@@ -16,12 +16,11 @@ class Feat11FieldDataItem : public BiffStructure ...@@ -16,12 +16,11 @@ class Feat11FieldDataItem : public BiffStructure
public: public:
BiffStructurePtr clone(); BiffStructurePtr clone();
static const ElementType type = typeFeat11FieldDataItem;
virtual void load(CFRecord& record); virtual void load(CFRecord& record);
virtual void store(CFRecord& record); virtual void store(CFRecord& record);
public:
BIFF_DWORD idField; BIFF_DWORD idField;
BIFF_DWORD lfdt; BIFF_DWORD lfdt;
BIFF_DWORD lfxidt; BIFF_DWORD lfxidt;
......
...@@ -16,12 +16,11 @@ public: ...@@ -16,12 +16,11 @@ public:
FeatFormulaErr2(CFRecord& record); FeatFormulaErr2(CFRecord& record);
BiffStructurePtr clone(); BiffStructurePtr clone();
//virtual void toXML(BiffStructurePtr & parent); static const ElementType type = typeFeatFormulaErr2;
//virtual const bool fromXML(BiffStructurePtr & parent);
virtual void load(CFRecord& record); virtual void load(CFRecord& record);
virtual void store(CFRecord& record); virtual void store(CFRecord& record);
private:
FFErrorCheck grffecIgnore; FFErrorCheck grffecIgnore;
}; };
......
...@@ -17,12 +17,11 @@ public: ...@@ -17,12 +17,11 @@ public:
FeatProtection(CFRecord& record); FeatProtection(CFRecord& record);
BiffStructurePtr clone(); BiffStructurePtr clone();
//virtual void toXML(BiffStructurePtr & parent);
//virtual const bool fromXML(BiffStructurePtr & parent);
virtual void load(CFRecord& record); virtual void load(CFRecord& record);
virtual void store(CFRecord& record); virtual void store(CFRecord& record);
private: static const ElementType type = typeFeatProtection;
bool fSD; bool fSD;
unsigned int wPassword; unsigned int wPassword;
XLUnicodeString stTitle; XLUnicodeString stTitle;
......
...@@ -17,12 +17,11 @@ public: ...@@ -17,12 +17,11 @@ public:
FeatSmartTag(CFRecord& record); FeatSmartTag(CFRecord& record);
BiffStructurePtr clone(); BiffStructurePtr clone();
//virtual void toXML(BiffStructurePtr & parent); static const ElementType type = typeFeatSmartTag;
//virtual const bool fromXML(BiffStructurePtr & parent);
virtual void load(CFRecord& record); virtual void load(CFRecord& record);
virtual void store(CFRecord& record); virtual void store(CFRecord& record);
private:
unsigned int hashValue; unsigned int hashValue;
std::vector<FactoidData> rgFactoid; std::vector<FactoidData> rgFactoid;
}; };
......
...@@ -15,6 +15,8 @@ public: ...@@ -15,6 +15,8 @@ public:
FileMoniker(XLS::CFRecord& record); FileMoniker(XLS::CFRecord& record);
XLS::BiffStructurePtr clone(); XLS::BiffStructurePtr clone();
static const XLS::ElementType type = XLS::typeFileMoniker;
virtual void load(XLS::CFRecord& record); virtual void load(XLS::CFRecord& record);
virtual void store(XLS::CFRecord& record); virtual void store(XLS::CFRecord& record);
......
...@@ -13,12 +13,11 @@ class FileOffset : public BiffStructure ...@@ -13,12 +13,11 @@ class FileOffset : public BiffStructure
public: public:
BiffStructurePtr clone(); BiffStructurePtr clone();
static const ElementType type = typeFileOffset;
virtual void load(CFRecord& record); virtual void load(CFRecord& record);
virtual void store(CFRecord& record); virtual void store(CFRecord& record);
private:
unsigned short offset; unsigned short offset;
}; };
......
...@@ -16,12 +16,11 @@ public: ...@@ -16,12 +16,11 @@ public:
BiffStructurePtr clone(); BiffStructurePtr clone();
static const ElementType type = typeFilePointer;
virtual void load(CFRecord& record); virtual void load(CFRecord& record);
virtual void store(CFRecord& record); virtual void store(CFRecord& record);
private:
unsigned int offset; unsigned int offset;
}; };
......
...@@ -14,12 +14,11 @@ class FormatRun : public BiffStructure ...@@ -14,12 +14,11 @@ class FormatRun : public BiffStructure
public: public:
BiffStructurePtr clone(); BiffStructurePtr clone();
static const ElementType type = typeFormatRun;
virtual void load(CFRecord& record); virtual void load(CFRecord& record);
virtual void store(CFRecord& record); virtual void store(CFRecord& record);
private:
unsigned short ich; unsigned short ich;
FontIndex ifnt; FontIndex ifnt;
}; };
......
...@@ -22,8 +22,8 @@ public: ...@@ -22,8 +22,8 @@ public:
virtual void store(CFRecord& record); virtual void store(CFRecord& record);
static const ElementType type = typeFrtHeader;
private:
CFRecordType::TypeId rt; CFRecordType::TypeId rt;
FrtFlags grbitFrt; FrtFlags grbitFrt;
}; };
......
...@@ -18,12 +18,11 @@ public: ...@@ -18,12 +18,11 @@ public:
BiffStructurePtr clone(); BiffStructurePtr clone();
static const ElementType type = typeFrtHeaderOld;
virtual void load(CFRecord& record); virtual void load(CFRecord& record);
virtual void store(CFRecord& record); virtual void store(CFRecord& record);
private:
CFRecordType::TypeId rt; CFRecordType::TypeId rt;
FrtFlags grbitFrt; FrtFlags grbitFrt;
}; };
......
...@@ -16,7 +16,7 @@ class FrtRefHeader : public BiffStructure ...@@ -16,7 +16,7 @@ class FrtRefHeader : public BiffStructure
public: public:
BiffStructurePtr clone(); BiffStructurePtr clone();
static const ElementType type = typeFrtRefHeader;
virtual void load(CFRecord& record); virtual void load(CFRecord& record);
virtual void store(CFRecord& record); virtual void store(CFRecord& record);
......
...@@ -19,12 +19,11 @@ public: ...@@ -19,12 +19,11 @@ public:
BiffStructurePtr clone(); BiffStructurePtr clone();
//virtual void toXML(BiffStructurePtr & parent); static const ElementType type = typeFrtRefHeaderNoGrbit;
//virtual const bool fromXML(BiffStructurePtr & parent);
virtual void load(CFRecord& record); virtual void load(CFRecord& record);
virtual void store(CFRecord& record); virtual void store(CFRecord& record);
private:
CFRecordType::TypeId rt; CFRecordType::TypeId rt;
Ref8U ref8; Ref8U ref8;
}; };
......
...@@ -16,12 +16,11 @@ class FrtRefHeaderU : public BiffStructure ...@@ -16,12 +16,11 @@ class FrtRefHeaderU : public BiffStructure
public: public:
BiffStructurePtr clone(); BiffStructurePtr clone();
static const ElementType type = typeFrtRefHeaderU;
virtual void load(CFRecord& record); virtual void load(CFRecord& record);
virtual void store(CFRecord& record); virtual void store(CFRecord& record);
private:
CFRecordType::TypeId rt; CFRecordType::TypeId rt;
FrtFlags grbitFrt; FrtFlags grbitFrt;
Ref8U ref8; Ref8U ref8;
......
...@@ -13,12 +13,11 @@ class FtCblsData : public BiffStructure ...@@ -13,12 +13,11 @@ class FtCblsData : public BiffStructure
public: public:
BiffStructurePtr clone(); BiffStructurePtr clone();
//virtual void setXMLAttributes(MSXML2::IXMLDOMElementPtr own_tag); static const ElementType type = typeFtCblsData;
//virtual void getXMLAttributes(MSXML2::IXMLDOMElementPtr own_tag);
virtual void load(CFRecord& record); virtual void load(CFRecord& record);
virtual void store(CFRecord& record); virtual void store(CFRecord& record);
private:
unsigned short fChecked; unsigned short fChecked;
unsigned short accel; unsigned short accel;
bool fNo3d; bool fNo3d;
......
...@@ -17,12 +17,11 @@ public: ...@@ -17,12 +17,11 @@ public:
} }
BiffStructurePtr clone(); BiffStructurePtr clone();
//virtual void setXMLAttributes(MSXML2::IXMLDOMElementPtr own_tag); static const ElementType type = typeFtCf;
//virtual void getXMLAttributes(MSXML2::IXMLDOMElementPtr own_tag);
virtual void load(CFRecord& record); virtual void load(CFRecord& record);
virtual void store(CFRecord& record); virtual void store(CFRecord& record);
private:
unsigned short cf; unsigned short cf;
}; };
......
...@@ -16,7 +16,8 @@ public: ...@@ -16,7 +16,8 @@ public:
virtual void load(CFRecord& record); virtual void load(CFRecord& record);
virtual void store(CFRecord& record); virtual void store(CFRecord& record);
public: static const ElementType type = typeFtCmo;
unsigned short ot; unsigned short ot;
unsigned short id; unsigned short id;
......
...@@ -14,12 +14,11 @@ class FtEdoData : public BiffStructure ...@@ -14,12 +14,11 @@ class FtEdoData : public BiffStructure
public: public:
BiffStructurePtr clone(); BiffStructurePtr clone();
//virtual void setXMLAttributes(MSXML2::IXMLDOMElementPtr own_tag); static const ElementType type = typeFtEdoData;
//virtual void getXMLAttributes(MSXML2::IXMLDOMElementPtr own_tag);
virtual void load(CFRecord& record); virtual void load(CFRecord& record);
virtual void store(CFRecord& record); virtual void store(CFRecord& record);
private:
unsigned short ivtEdit; unsigned short ivtEdit;
Boolean<unsigned short> fMultiLine; Boolean<unsigned short> fMultiLine;
unsigned short fVScroll; unsigned short fVScroll;
......
...@@ -14,12 +14,11 @@ class FtGboData : public BiffStructure ...@@ -14,12 +14,11 @@ class FtGboData : public BiffStructure
public: public:
BiffStructurePtr clone(); BiffStructurePtr clone();
//virtual void setXMLAttributes(MSXML2::IXMLDOMElementPtr own_tag);
//virtual void getXMLAttributes(MSXML2::IXMLDOMElementPtr own_tag);
virtual void load(CFRecord& record); virtual void load(CFRecord& record);
virtual void store(CFRecord& record); virtual void store(CFRecord& record);
private: static const ElementType type = typeFtGboData;
unsigned short accel; unsigned short accel;
bool fNo3d; bool fNo3d;
}; };
......
...@@ -18,16 +18,14 @@ public: ...@@ -18,16 +18,14 @@ public:
FtLbsData(); FtLbsData();
BiffStructurePtr clone(); BiffStructurePtr clone();
//virtual void setXMLAttributes(MSXML2::IXMLDOMElementPtr own_tag); static const ElementType type = typeFtLbsData;
//virtual void getXMLAttributes(MSXML2::IXMLDOMElementPtr own_tag);
virtual void load(CFRecord& record, const unsigned short ot); virtual void load(CFRecord& record, const unsigned short ot);
virtual void store(CFRecord& record, const unsigned short ot); virtual void store(CFRecord& record, const unsigned short ot);
private:
virtual void load(CFRecord& record){} virtual void load(CFRecord& record){}
virtual void store(CFRecord& record){} virtual void store(CFRecord& record){}
private:
ObjFmla fmla; ObjFmla fmla;
unsigned short cLines; unsigned short cLines;
unsigned short iSel; unsigned short iSel;
......
...@@ -15,12 +15,11 @@ public: ...@@ -15,12 +15,11 @@ public:
FtMacro(); FtMacro();
BiffStructurePtr clone(); BiffStructurePtr clone();
//virtual void setXMLAttributes(MSXML2::IXMLDOMElementPtr own_tag); static const ElementType type = typeFtMacro;
//virtual void getXMLAttributes(MSXML2::IXMLDOMElementPtr own_tag);
virtual void load(CFRecord& record); virtual void load(CFRecord& record);
virtual void store(CFRecord& record); virtual void store(CFRecord& record);
private:
ObjFmla fmla; ObjFmla fmla;
}; };
......
...@@ -14,12 +14,11 @@ class FtNts : public BiffStructure ...@@ -14,12 +14,11 @@ class FtNts : public BiffStructure
public: public:
BiffStructurePtr clone(); BiffStructurePtr clone();
//virtual void setXMLAttributes(MSXML2::IXMLDOMElementPtr own_tag); static const ElementType type = typeFtNts;
//virtual void getXMLAttributes(MSXML2::IXMLDOMElementPtr own_tag);
virtual void load(CFRecord& record); virtual void load(CFRecord& record);
virtual void store(CFRecord& record); virtual void store(CFRecord& record);
private:
std::wstring guid; std::wstring guid;
Boolean<unsigned short> fSharedNote; Boolean<unsigned short> fSharedNote;
}; };
......
...@@ -17,15 +17,14 @@ public: ...@@ -17,15 +17,14 @@ public:
FtPictFmla(); FtPictFmla();
BiffStructurePtr clone(); BiffStructurePtr clone();
//virtual void setXMLAttributes(MSXML2::IXMLDOMElementPtr own_tag);
//virtual void getXMLAttributes(MSXML2::IXMLDOMElementPtr own_tag);
virtual void load(CFRecord& record, FtPioGrbit& pictFlags); virtual void load(CFRecord& record, FtPioGrbit& pictFlags);
virtual void store(CFRecord& record, FtPioGrbit& pictFlags); virtual void store(CFRecord& record, FtPioGrbit& pictFlags);
private:
static const ElementType type = typeFtPictFmla;
virtual void load(CFRecord& record){} virtual void load(CFRecord& record){}
virtual void store(CFRecord& record){} virtual void store(CFRecord& record){}
private:
ObjFmla fmla; ObjFmla fmla;
unsigned int lPosInCtlStm; unsigned int lPosInCtlStm;
unsigned int cbBufInCtlStm; unsigned int cbBufInCtlStm;
......
...@@ -13,12 +13,11 @@ class FtPioGrbit : public BiffStructure ...@@ -13,12 +13,11 @@ class FtPioGrbit : public BiffStructure
public: public:
BiffStructurePtr clone(); BiffStructurePtr clone();
//virtual void setXMLAttributes(MSXML2::IXMLDOMElementPtr own_tag); static const ElementType type = typeFtPioGrbit;
//virtual void getXMLAttributes(MSXML2::IXMLDOMElementPtr own_tag);
virtual void load(CFRecord& record); virtual void load(CFRecord& record);
virtual void store(CFRecord& record); virtual void store(CFRecord& record);
public:
bool fAutoPict; bool fAutoPict;
bool fDde; bool fDde;
bool fPrintCalc; bool fPrintCalc;
......
...@@ -14,12 +14,11 @@ class FtRboData : public BiffStructure ...@@ -14,12 +14,11 @@ class FtRboData : public BiffStructure
public: public:
BiffStructurePtr clone(); BiffStructurePtr clone();
//virtual void setXMLAttributes(MSXML2::IXMLDOMElementPtr own_tag); static const ElementType type = typeFtRboData;
//virtual void getXMLAttributes(MSXML2::IXMLDOMElementPtr own_tag);
virtual void load(CFRecord& record); virtual void load(CFRecord& record);
virtual void store(CFRecord& record); virtual void store(CFRecord& record);
private:
unsigned short idRadNext; unsigned short idRadNext;
Boolean<unsigned short> fFirstBtn; Boolean<unsigned short> fFirstBtn;
}; };
......
...@@ -14,16 +14,14 @@ class FtSbs : public BiffStructure ...@@ -14,16 +14,14 @@ class FtSbs : public BiffStructure
public: public:
BiffStructurePtr clone(); BiffStructurePtr clone();
//virtual void setXMLAttributes(MSXML2::IXMLDOMElementPtr own_tag); static const ElementType type = typeFtSbs;
//virtual void getXMLAttributes(MSXML2::IXMLDOMElementPtr own_tag);
virtual void load(CFRecord& record); virtual void load(CFRecord& record);
virtual void store(CFRecord& record); virtual void store(CFRecord& record);
public:
unsigned short ft; unsigned short ft;
unsigned short cb; unsigned short cb;
private:
short iVal; short iVal;
short iMin; short iMin;
short iMax; short iMax;
......
...@@ -21,12 +21,8 @@ public: ...@@ -21,12 +21,8 @@ public:
const unsigned short getIndex() const; const unsigned short getIndex() const;
const bool isMacro() const; const bool isMacro() const;
//void toXML(BiffStructurePtr & parent);
public:
static const unsigned short recognizeFunction(const std::wstring& word); static const unsigned short recognizeFunction(const std::wstring& word);
private:
class ValuesDetermination class ValuesDetermination
{ {
public: public:
...@@ -35,7 +31,6 @@ private: ...@@ -35,7 +31,6 @@ private:
static const unsigned short getIndex(const std::wstring& func_name); static const unsigned short getIndex(const std::wstring& func_name);
static const long getParamsNum(const std::wstring& func_name); static const long getParamsNum(const std::wstring& func_name);
private:
ValuesDetermination(); ValuesDetermination();
static ValuesDetermination& getInst() static ValuesDetermination& getInst()
{ {
...@@ -58,11 +53,9 @@ private: ...@@ -58,11 +53,9 @@ private:
> ParamsFixedSet; > ParamsFixedSet;
private:
ParamsFixedSet params_fixed; ParamsFixedSet params_fixed;
}; };
private:
unsigned short func_index; unsigned short func_index;
}; };
#pragma pack() // restore #pragma pack() // restore
......
...@@ -16,6 +16,8 @@ public: ...@@ -16,6 +16,8 @@ public:
virtual void load(CFRecord& record); virtual void load(CFRecord& record);
virtual void store(CFRecord& record); virtual void store(CFRecord& record);
static const ElementType type = typeFullColorExt;
unsigned char icv; unsigned char icv;
unsigned char xclrType; unsigned char xclrType;
short nTintShade; short nTintShade;
......
...@@ -17,6 +17,8 @@ public: ...@@ -17,6 +17,8 @@ public:
virtual void load(CFRecord& record); virtual void load(CFRecord& record);
virtual void store(CFRecord& record); virtual void store(CFRecord& record);
static const ElementType type = typeGradStop;
unsigned short xclrType; unsigned short xclrType;
unsigned int xclrValue; unsigned int xclrValue;
LongRGBA xclrValue_rgb; LongRGBA xclrValue_rgb;
......
...@@ -14,12 +14,11 @@ class HorzBrk : public BiffStructure ...@@ -14,12 +14,11 @@ class HorzBrk : public BiffStructure
public: public:
BiffStructurePtr clone(); BiffStructurePtr clone();
static const ElementType type = typeHorzBrk;
virtual void load(CFRecord& record); virtual void load(CFRecord& record);
virtual void store(CFRecord& record); virtual void store(CFRecord& record);
private:
RwU row; RwU row;
unsigned short colStart; unsigned short colStart;
unsigned short colEnd; unsigned short colEnd;
......
...@@ -16,6 +16,8 @@ public: ...@@ -16,6 +16,8 @@ public:
virtual void load(XLS::CFRecord& record); virtual void load(XLS::CFRecord& record);
virtual void store(XLS::CFRecord& record); virtual void store(XLS::CFRecord& record);
static const XLS::ElementType type = XLS::typeHyperlinkMoniker;
std::wstring monikerClsid; std::wstring monikerClsid;
boost::shared_ptr<BiffStructure> data; boost::shared_ptr<BiffStructure> data;
}; };
......
...@@ -20,6 +20,8 @@ public: ...@@ -20,6 +20,8 @@ public:
unsigned int streamVersion; unsigned int streamVersion;
static const XLS::ElementType type = XLS::typeHyperlinkObject;
bool hlstmfHasMoniker; bool hlstmfHasMoniker;
bool hlstmfIsAbsolute; bool hlstmfIsAbsolute;
bool hlstmfSiteGaveDisplayName; bool hlstmfSiteGaveDisplayName;
......
...@@ -13,12 +13,11 @@ class ISSTInf : public BiffStructure ...@@ -13,12 +13,11 @@ class ISSTInf : public BiffStructure
public: public:
BiffStructurePtr clone(); BiffStructurePtr clone();
static const ElementType type = typeISSTInf;
virtual void load(CFRecord& record); virtual void load(CFRecord& record);
virtual void store(CFRecord& record); virtual void store(CFRecord& record);
private:
unsigned int ib; unsigned int ib;
unsigned short cbOffset; unsigned short cbOffset;
}; };
......
...@@ -15,12 +15,11 @@ public: ...@@ -15,12 +15,11 @@ public:
ItemMoniker(XLS::CFRecord& record); ItemMoniker(XLS::CFRecord& record);
XLS::BiffStructurePtr clone(); XLS::BiffStructurePtr clone();
static const XLS::ElementType type = XLS::typeItemMoniker;
virtual void load(XLS::CFRecord& record); virtual void load(XLS::CFRecord& record);
virtual void store(XLS::CFRecord& record); virtual void store(XLS::CFRecord& record);
private:
std::string delimiterAnsi; std::string delimiterAnsi;
std::wstring delimiterUnicode; std::wstring delimiterUnicode;
std::string itemAnsi; std::string itemAnsi;
......
...@@ -14,12 +14,11 @@ class LbsDropData : public BiffStructure ...@@ -14,12 +14,11 @@ class LbsDropData : public BiffStructure
public: public:
BiffStructurePtr clone(); BiffStructurePtr clone();
//virtual void setXMLAttributes(MSXML2::IXMLDOMElementPtr own_tag); static const ElementType type = typeLbsDropData;
//virtual void getXMLAttributes(MSXML2::IXMLDOMElementPtr own_tag);
virtual void load(CFRecord& record); virtual void load(CFRecord& record);
virtual void store(CFRecord& record); virtual void store(CFRecord& record);
private:
unsigned char wStyle; unsigned char wStyle;
bool fFiltered; bool fFiltered;
......
...@@ -16,12 +16,11 @@ public: ...@@ -16,12 +16,11 @@ public:
List12BlockLevel(); List12BlockLevel();
~List12BlockLevel(); ~List12BlockLevel();
static const ElementType type = typeList12BlockLevel;
virtual void load(CFRecord& record); virtual void load(CFRecord& record);
virtual void store(CFRecord& record); virtual void store(CFRecord& record);
public:
BIFF_DWORD cbdxfHeader; BIFF_DWORD cbdxfHeader;
BIFF_DWORD istnHeader; BIFF_DWORD istnHeader;
BIFF_DWORD cbdxfData; BIFF_DWORD cbdxfData;
......
...@@ -16,12 +16,11 @@ public: ...@@ -16,12 +16,11 @@ public:
List12DisplayName(); List12DisplayName();
~List12DisplayName(); ~List12DisplayName();
static const ElementType type = typeList12DisplayName;
virtual void load(CFRecord& record); virtual void load(CFRecord& record);
virtual void store(CFRecord& record); virtual void store(CFRecord& record);
public:
XLNameUnicodeString stListName; XLNameUnicodeString stListName;
XLUnicodeString stListComment; XLUnicodeString stListComment;
}; };
......
...@@ -16,12 +16,11 @@ public: ...@@ -16,12 +16,11 @@ public:
List12TableStyleClientInfo(); List12TableStyleClientInfo();
~List12TableStyleClientInfo(); ~List12TableStyleClientInfo();
static const ElementType type = typeList12TableStyleClientInfo;
virtual void load(CFRecord& record); virtual void load(CFRecord& record);
virtual void store(CFRecord& record); virtual void store(CFRecord& record);
public:
BIFF_BYTE fFirstColumn; BIFF_BYTE fFirstColumn;
BIFF_BYTE fLastColumn; BIFF_BYTE fLastColumn;
BIFF_BYTE fRowStripes; BIFF_BYTE fRowStripes;
......
...@@ -15,19 +15,17 @@ public: ...@@ -15,19 +15,17 @@ public:
LongRGBA(const bool alpha_present); LongRGBA(const bool alpha_present);
BiffStructurePtr clone(); BiffStructurePtr clone();
static const ElementType type = typeLongRGBA;
virtual void load(CFRecord& record); virtual void load(CFRecord& record);
virtual void store(CFRecord& record); virtual void store(CFRecord& record);
protected:
unsigned char red; unsigned char red;
unsigned char green; unsigned char green;
unsigned char blue; unsigned char blue;
unsigned char alpha; unsigned char alpha;
std::wstring argb; std::wstring argb;
private:
bool is_alpha; bool is_alpha;
}; };
......
...@@ -13,12 +13,11 @@ class MDXStrIndex : public BiffStructure ...@@ -13,12 +13,11 @@ class MDXStrIndex : public BiffStructure
public: public:
BiffStructurePtr clone(); BiffStructurePtr clone();
static const ElementType type = typeMDXStrIndex;
virtual void load(CFRecord& record); virtual void load(CFRecord& record);
virtual void store(CFRecord& record); virtual void store(CFRecord& record);
private:
unsigned int index; unsigned int index;
}; };
......
...@@ -13,12 +13,11 @@ class MDir : public BiffStructure ...@@ -13,12 +13,11 @@ class MDir : public BiffStructure
public: public:
BiffStructurePtr clone(); BiffStructurePtr clone();
//virtual void toXML(BiffStructurePtr & parent); static const ElementType type = typeMDir;
//virtual const bool fromXML(BiffStructurePtr & parent);
virtual void load(CFRecord& record); virtual void load(CFRecord& record);
virtual void store(CFRecord& record); virtual void store(CFRecord& record);
private:
long imdt; long imdt;
unsigned short mdd; unsigned short mdd;
}; };
......
...@@ -15,12 +15,11 @@ class MOper : public BiffStructure ...@@ -15,12 +15,11 @@ class MOper : public BiffStructure
public: public:
BiffStructurePtr clone(); BiffStructurePtr clone();
//virtual void toXML(BiffStructurePtr & parent); static const ElementType type = typeMOper;
//virtual const bool fromXML(BiffStructurePtr & parent);
virtual void load(CFRecord& record); virtual void load(CFRecord& record);
virtual void store(CFRecord& record); virtual void store(CFRecord& record);
private:
ColunByteU colLast; ColunByteU colLast;
RwU rowLast; RwU rowLast;
std::vector<SerArPtr> extOper; std::vector<SerArPtr> extOper;
......
...@@ -18,12 +18,11 @@ public: ...@@ -18,12 +18,11 @@ public:
NoteRR(CFRecord& record); NoteRR(CFRecord& record);
BiffStructurePtr clone(); BiffStructurePtr clone();
//virtual void toXML(BiffStructurePtr & parent); static const ElementType type = typeNoteRR;
//virtual const bool fromXML(BiffStructurePtr & parent);
virtual void load(CFRecord& record); virtual void load(CFRecord& record);
virtual void store(CFRecord& record); virtual void store(CFRecord& record);
private:
RRD rrd; RRD rrd;
bool bitfDelNote; bool bitfDelNote;
bool bitfAddNote; bool bitfAddNote;
......
...@@ -17,12 +17,11 @@ public: ...@@ -17,12 +17,11 @@ public:
NoteSh(CFRecord& record); NoteSh(CFRecord& record);
BiffStructurePtr clone(); BiffStructurePtr clone();
////virtual void toXML(BiffStructurePtr & parent); static const ElementType type = typeNoteSh;
////virtual const bool fromXML(BiffStructurePtr & parent);
virtual void load(CFRecord& record); virtual void load(CFRecord& record);
virtual void store(CFRecord& record); virtual void store(CFRecord& record);
private:
Rw row; Rw row;
Col col; Col col;
bool fShow; bool fShow;
......
...@@ -18,6 +18,8 @@ class IMsoArray : public XLS::BiffStructure ...@@ -18,6 +18,8 @@ class IMsoArray : public XLS::BiffStructure
public: public:
XLS::BiffStructurePtr clone(){return XLS::BiffStructurePtr(new IMsoArray(*this));} XLS::BiffStructurePtr clone(){return XLS::BiffStructurePtr(new IMsoArray(*this));}
static const XLS::ElementType type = XLS::typeIMsoArray;
virtual void load(XLS::CFRecord& record) virtual void load(XLS::CFRecord& record)
{ {
unsigned short nElems, nElemsAlloc; unsigned short nElems, nElemsAlloc;
......
...@@ -19,6 +19,8 @@ public: ...@@ -19,6 +19,8 @@ public:
virtual void load(XLS::CFRecord& record); virtual void load(XLS::CFRecord& record);
virtual void store(XLS::CFRecord& record); virtual void store(XLS::CFRecord& record);
static const XLS::ElementType type = XLS::typeMSOCR;
unsigned char red; unsigned char red;
unsigned char green; unsigned char green;
unsigned char blue; unsigned char blue;
......
...@@ -20,12 +20,11 @@ public: ...@@ -20,12 +20,11 @@ public:
MSOSHADECOLOR(); MSOSHADECOLOR();
XLS::BiffStructurePtr clone(); XLS::BiffStructurePtr clone();
static const XLS::ElementType type = XLS::typeMSOSHADECOLOR;
virtual void load(XLS::CFRecord& record); virtual void load(XLS::CFRecord& record);
virtual void store(XLS::CFRecord& record); virtual void store(XLS::CFRecord& record);
public:
OfficeArtCOLORREF color; OfficeArtCOLORREF color;
OSHARED::FixedPoint position; OSHARED::FixedPoint position;
}; };
......
...@@ -42,6 +42,8 @@ public: ...@@ -42,6 +42,8 @@ public:
virtual void load(XLS::CFRecord& record); virtual void load(XLS::CFRecord& record);
virtual void store(XLS::CFRecord& record); virtual void store(XLS::CFRecord& record);
static const XLS::ElementType type = XLS::typeOfficeArtBStoreContainerFileBlock;
void readCompressedData(XLS::CFRecord& record, OfficeArtMetafileHeader metafileHeader); void readCompressedData(XLS::CFRecord& record, OfficeArtMetafileHeader metafileHeader);
int bin_data_id; int bin_data_id;
...@@ -54,7 +56,7 @@ public: ...@@ -54,7 +56,7 @@ public:
std::wstring rgbUid1; std::wstring rgbUid1;
std::wstring rgbUid2; std::wstring rgbUid2;
bool result; bool result;
private:
const std::wstring ReadMD4Digest(XLS::CFRecord& record) const std::wstring ReadMD4Digest(XLS::CFRecord& record)
{ {
std::wstring result; std::wstring result;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment