Commit 9c9e1148 authored by Elen.Subbotina's avatar Elen.Subbotina Committed by Alexander Trofimov

XlsFormat - правка по результатм тестирования + небольшое изменение для оптимизации

git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@68528 954022d7-b5bf-4e40-9824-e11837661b57
parent e0719ab4
...@@ -28,7 +28,7 @@ public: ...@@ -28,7 +28,7 @@ public:
LongRGB rgbFore; LongRGB rgbFore;
LongRGB rgbBack; LongRGB rgbBack;
BIFF_WORD fls; _UINT16 fls;
bool fAuto; bool fAuto;
bool fInvertNeg; bool fInvertNeg;
......
...@@ -23,7 +23,7 @@ public: ...@@ -23,7 +23,7 @@ public:
static const ElementType type = typeAutoFilter; static const ElementType type = typeAutoFilter;
BIFF_WORD iEntry; _UINT16 iEntry;
BIFF_BYTE wJoin; BIFF_BYTE wJoin;
...@@ -34,7 +34,7 @@ public: ...@@ -34,7 +34,7 @@ public:
bool fPercent; bool fPercent;
BIFF_BYTE fTop; BIFF_BYTE fTop;
BIFF_WORD wTopN; _UINT16 wTopN;
AFDOper doper1; AFDOper doper1;
AFDOper doper2; AFDOper doper2;
......
...@@ -28,7 +28,7 @@ public: ...@@ -28,7 +28,7 @@ public:
static const ElementType type = typeAutoFilter12; static const ElementType type = typeAutoFilter12;
FrtRefHeader frtRefHeader; FrtRefHeader frtRefHeader;
BIFF_WORD iEntry; _UINT16 iEntry;
BIFF_DWORD fHideArrow; BIFF_DWORD fHideArrow;
BIFF_DWORD ft; BIFF_DWORD ft;
BIFF_DWORD cft; BIFF_DWORD cft;
......
...@@ -22,7 +22,7 @@ class AutoFilterInfo: public BiffRecord ...@@ -22,7 +22,7 @@ class AutoFilterInfo: public BiffRecord
void writeFields(CFRecord& record); void writeFields(CFRecord& record);
void readFields(CFRecord& record); void readFields(CFRecord& record);
//----------------------------- //-----------------------------
BIFF_WORD cEntries; _UINT16 cEntries;
}; };
......
...@@ -25,14 +25,14 @@ public: ...@@ -25,14 +25,14 @@ public:
int serialize(std::wostream & _stream); int serialize(std::wostream & _stream);
//----------------------------- //-----------------------------
BIFF_WORD catMin; _UINT16 catMin;
BIFF_WORD catMax; _UINT16 catMax;
BIFF_WORD catMajor; _UINT16 catMajor;
BIFF_WORD duMajor; _UINT16 duMajor;
BIFF_WORD catMinor; _UINT16 catMinor;
BIFF_WORD duMinor; _UINT16 duMinor;
BIFF_WORD duBase; _UINT16 duBase;
BIFF_WORD catCrossDate; _UINT16 catCrossDate;
bool fAutoMin; bool fAutoMin;
bool fAutoMax; bool fAutoMax;
......
...@@ -23,7 +23,7 @@ public: ...@@ -23,7 +23,7 @@ public:
static const ElementType type = typeAxesUsed; static const ElementType type = typeAxesUsed;
//----------------------------- //-----------------------------
BIFF_WORD cAxes; _UINT16 cAxes;
}; };
......
...@@ -23,7 +23,7 @@ public: ...@@ -23,7 +23,7 @@ public:
static const ElementType type = typeAxis; static const ElementType type = typeAxis;
//----------------------------- //-----------------------------
BIFF_WORD wType; _UINT16 wType;
}; };
......
...@@ -23,7 +23,7 @@ public: ...@@ -23,7 +23,7 @@ public:
static const ElementType type = typeAxisLine; static const ElementType type = typeAxisLine;
//----------------------------- //-----------------------------
BIFF_WORD id; _UINT16 id;
}; };
} // namespace XLS } // namespace XLS
......
...@@ -38,10 +38,10 @@ public: ...@@ -38,10 +38,10 @@ public:
//----------------------------- //-----------------------------
BIFF_WORD vers; _UINT16 vers;
BIFF_WORD dt; _UINT16 dt;
BIFF_WORD rupBuild; _UINT16 rupBuild;
BIFF_WORD rupYear; _UINT16 rupYear;
bool fWin; bool fWin;
bool fRisc; bool fRisc;
...@@ -54,7 +54,7 @@ public: ...@@ -54,7 +54,7 @@ public:
bool fGlJmp; bool fGlJmp;
bool fFontLimit; bool fFontLimit;
BIFF_WORD verXLHigh; _UINT16 verXLHigh;
BIFF_BYTE verLowestBiff; BIFF_BYTE verLowestBiff;
BIFF_BYTE verLastXLSaved; BIFF_BYTE verLastXLSaved;
......
...@@ -24,8 +24,8 @@ public: ...@@ -24,8 +24,8 @@ public:
int serialize(std::wostream & _stream); int serialize(std::wostream & _stream);
BIFF_SHORT pcOverlap; _INT16 pcOverlap;
BIFF_WORD pcGap; _UINT16 pcGap;
bool fTranspose; bool fTranspose;
bool fStacked; bool fStacked;
......
...@@ -22,8 +22,6 @@ public: ...@@ -22,8 +22,6 @@ public:
static const ElementType type = typeBigName; static const ElementType type = typeBigName;
//-----------------------------
// BIFF_WORD userName;
}; };
......
...@@ -49,7 +49,7 @@ int Blank::serialize(std::wostream & stream) ...@@ -49,7 +49,7 @@ int Blank::serialize(std::wostream & stream)
CP_XML_ATTR(L"r", ref); CP_XML_ATTR(L"r", ref);
int st = (int)cell.ixfe - global_info_->cellStyleXfs_count; int st = (int)cell.ixfe - global_info_->cellStyleXfs_count;
if ((cell.ixfe.value()) && (cell.ixfe > global_info_->cellStyleXfs_count)) if (cell.ixfe > global_info_->cellStyleXfs_count)
{ {
CP_XML_ATTR(L"s", cell.ixfe - global_info_->cellStyleXfs_count); CP_XML_ATTR(L"s", cell.ixfe - global_info_->cellStyleXfs_count);
} }
......
...@@ -49,9 +49,9 @@ int BoolErr::serialize(std::wostream & stream) ...@@ -49,9 +49,9 @@ int BoolErr::serialize(std::wostream & stream)
{ {
CP_XML_ATTR(L"r", ref); CP_XML_ATTR(L"r", ref);
if (cell.ixfe.value()) if (cell.ixfe - global_info_->cellStyleXfs_count > 0)
{ {
CP_XML_ATTR(L"s", *cell.ixfe.value() - global_info_->cellStyleXfs_count); CP_XML_ATTR(L"s", cell.ixfe - global_info_->cellStyleXfs_count);
} }
} }
} }
......
...@@ -27,11 +27,11 @@ public: ...@@ -27,11 +27,11 @@ public:
//----------------------------- //-----------------------------
BIFF_BYTE pst; BIFF_BYTE pst;
Boolean<unsigned char> fAutoSplit; Boolean<unsigned char> fAutoSplit;
BIFF_WORD split; _UINT16 split;
BIFF_SHORT iSplitPos; _INT16 iSplitPos;
BIFF_SHORT pcSplitPercent; _INT16 pcSplitPercent;
BIFF_SHORT pcPie2Size; _INT16 pcPie2Size;
BIFF_SHORT pcGap; _INT16 pcGap;
BIFF_DOUBLE numSplitValue; BIFF_DOUBLE numSplitValue;
bool fHasShadow; bool fHasShadow;
......
...@@ -24,7 +24,7 @@ public: ...@@ -24,7 +24,7 @@ public:
//----------------------------- //-----------------------------
BIFF_WORD count; _UINT16 count;
}; };
} // namespace XLS } // namespace XLS
......
...@@ -40,8 +40,8 @@ public: ...@@ -40,8 +40,8 @@ public:
CFParsedFormulaNoCCE rgce2; CFParsedFormulaNoCCE rgce2;
CFParsedFormula fmlaActive; CFParsedFormula fmlaActive;
BIFF_WORD ipriority; _UINT16 ipriority;
BIFF_WORD icfTemplate; _UINT16 icfTemplate;
CFExTemplateParams rgbTemplateParms; CFExTemplateParams rgbTemplateParms;
BiffStructurePtr rgbCT; BiffStructurePtr rgbCT;
......
...@@ -28,19 +28,8 @@ public: ...@@ -28,19 +28,8 @@ public:
//----------------------------- //-----------------------------
FrtRefHeaderU frtRefHeaderU; FrtRefHeaderU frtRefHeaderU;
Boolean<unsigned int> fIsCF12; Boolean<unsigned int> fIsCF12;
BIFF_WORD nID; _UINT16 nID;
CFExNonCF12 rgbContent; CFExNonCF12 rgbContent;
public:
//BO_ATTRIB_MARKUP_BEGIN
//BO_ATTRIB_MARKUP_COMPLEX(frtRefHeaderU)
//BO_ATTRIB_MARKUP_ATTRIB(fIsCF12)
//BO_ATTRIB_MARKUP_ATTRIB(nID)
//if(!fIsCF12)
//{
// //BO_ATTRIB_MARKUP_COMPLEX(rgbContent)
//}
//BO_ATTRIB_MARKUP_END
}; };
} // namespace XLS } // namespace XLS
......
...@@ -26,7 +26,7 @@ public: ...@@ -26,7 +26,7 @@ public:
//----------------------------- //-----------------------------
BIFF_BYTE colLast; BIFF_BYTE colLast;
BIFF_BYTE colFirst; BIFF_BYTE colFirst;
BIFF_WORD row; _UINT16 row;
BiffStructurePtrVector crnOper; BiffStructurePtrVector crnOper;
}; };
......
...@@ -23,7 +23,7 @@ public: ...@@ -23,7 +23,7 @@ public:
static const ElementType type = typeCalcCount; static const ElementType type = typeCalcCount;
//----------------------------- //-----------------------------
BIFF_SHORT cIter; _INT16 cIter;
}; };
} // namespace XLS } // namespace XLS
......
...@@ -23,8 +23,8 @@ public: ...@@ -23,8 +23,8 @@ public:
static const ElementType type = typeCatLab; static const ElementType type = typeCatLab;
//----------------------------- //-----------------------------
BIFF_WORD wOffset; _UINT16 wOffset;
BIFF_WORD at; _UINT16 at;
bool cAutoCatLabelReal; bool cAutoCatLabelReal;
}; };
......
...@@ -23,9 +23,9 @@ public: ...@@ -23,9 +23,9 @@ public:
static const ElementType type = typeCatSerRange; static const ElementType type = typeCatSerRange;
//----------------------------- //-----------------------------
BIFF_SHORT catCross; _INT16 catCross;
BIFF_SHORT catLabel; _INT16 catLabel;
BIFF_SHORT catMark; _INT16 catMark;
bool fBetween; bool fBetween;
bool fMaxCross; bool fMaxCross;
......
...@@ -23,12 +23,12 @@ public: ...@@ -23,12 +23,12 @@ public:
static const ElementType type = typeChart3d; static const ElementType type = typeChart3d;
//----------------------------- //-----------------------------
BIFF_SHORT anRot; _INT16 anRot;
BIFF_SHORT anElev; _INT16 anElev;
BIFF_SHORT pcDist; _INT16 pcDist;
BIFF_DWORD pcHeight; _UINT32 pcHeight;
BIFF_SHORT pcDepth; _INT16 pcDepth;
BIFF_WORD pcGap; _UINT16 pcGap;
bool fPerspective; bool fPerspective;
bool fCluster; bool fCluster;
......
...@@ -25,7 +25,7 @@ public: ...@@ -25,7 +25,7 @@ public:
int serialize(std::wostream & _stream); int serialize(std::wostream & _stream);
//----------------------------- //-----------------------------
bool fVaried; bool fVaried;
BIFF_WORD icrt; _UINT16 icrt;
}; };
} // namespace XLS } // namespace XLS
......
...@@ -20,7 +20,7 @@ public: ...@@ -20,7 +20,7 @@ public:
void writeFields(CFRecord& record); void writeFields(CFRecord& record);
void readFields(CFRecord& record); void readFields(CFRecord& record);
//----------------------------- //-----------------------------
BIFF_WORD cv; _UINT16 cv;
}; };
......
...@@ -38,12 +38,14 @@ void ColInfo::readFields(CFRecord& record) ...@@ -38,12 +38,14 @@ void ColInfo::readFields(CFRecord& record)
{ {
unsigned short flags; unsigned short flags;
record >> colFirst >> colLast >> coldx >> ixfe >> flags; record >> colFirst >> colLast >> coldx >> ixfe >> flags;
fHidden = GETBIT(flags, 0);
fUserSet = GETBIT(flags, 1); fHidden = GETBIT(flags, 0);
fBestFit = GETBIT(flags, 2); fUserSet = GETBIT(flags, 1);
fPhonetic = GETBIT(flags, 3); fBestFit = GETBIT(flags, 2);
iOutLevel = GETBITS(flags, 8, 10); fPhonetic = GETBIT(flags, 3);
fCollapsed = GETBIT(flags, 12); iOutLevel = GETBITS(flags, 8, 10);
fCollapsed = GETBIT(flags, 12);
record.skipNunBytes(2); // unused record.skipNunBytes(2); // unused
} }
......
...@@ -23,9 +23,9 @@ public: ...@@ -23,9 +23,9 @@ public:
static const ElementType type = typeColInfo; static const ElementType type = typeColInfo;
//----------------------------- //-----------------------------
Col256U colFirst; _UINT16 colFirst;
Col256U colLast; _UINT16 colLast;
BIFF_WORD coldx; _UINT16 coldx;
IXFCell ixfe; IXFCell ixfe;
bool fHidden; bool fHidden;
......
...@@ -26,9 +26,9 @@ public: ...@@ -26,9 +26,9 @@ public:
const CellRef getLocation() const; const CellRef getLocation() const;
//----------------------------- //-----------------------------
BIFF_WORD ccf; _UINT16 ccf;
bool fToughRecalc; bool fToughRecalc;
BIFF_WORD nID; _UINT16 nID;
SqRefU sqref; SqRefU sqref;
BIFF_BSTR refBound; BIFF_BSTR refBound;
}; };
......
...@@ -22,13 +22,6 @@ public: ...@@ -22,13 +22,6 @@ public:
static const ElementType type = typeContinueBigName; static const ElementType type = typeContinueBigName;
//-----------------------------
// BIFF_WORD userName;
public:
//BO_ATTRIB_MARKUP_BEGIN
// //BO_ATTRIB_MARKUP_ATTRIB(userName)
//BO_ATTRIB_MARKUP_END
}; };
} // namespace XLS } // namespace XLS
......
...@@ -22,13 +22,6 @@ public: ...@@ -22,13 +22,6 @@ public:
static const ElementType type = typeContinueFrt; static const ElementType type = typeContinueFrt;
//-----------------------------
// BIFF_WORD userName;
public:
//BO_ATTRIB_MARKUP_BEGIN
// //BO_ATTRIB_MARKUP_ATTRIB(userName)
//BO_ATTRIB_MARKUP_END
}; };
} // namespace XLS } // namespace XLS
......
...@@ -22,8 +22,8 @@ public: ...@@ -22,8 +22,8 @@ public:
static const ElementType type = typeCountry; static const ElementType type = typeCountry;
BIFF_WORD iCountryDef; _UINT16 iCountryDef;
BIFF_WORD iCountryWinIni; _UINT16 iCountryWinIni;
}; };
......
...@@ -21,14 +21,6 @@ public: ...@@ -21,14 +21,6 @@ public:
void readFields(CFRecord& record); void readFields(CFRecord& record);
static const ElementType type = typeCrErr; static const ElementType type = typeCrErr;
//-----------------------------
// BIFF_WORD userName;
public:
//BO_ATTRIB_MARKUP_BEGIN
// //BO_ATTRIB_MARKUP_ATTRIB(userName)
//BO_ATTRIB_MARKUP_END
}; };
} // namespace XLS } // namespace XLS
......
...@@ -22,13 +22,6 @@ public: ...@@ -22,13 +22,6 @@ public:
static const ElementType type = typeCrtLayout12A; static const ElementType type = typeCrtLayout12A;
//-----------------------------
// BIFF_WORD userName;
public:
//BO_ATTRIB_MARKUP_BEGIN
// //BO_ATTRIB_MARKUP_ATTRIB(userName)
//BO_ATTRIB_MARKUP_END
}; };
} // namespace XLS } // namespace XLS
......
...@@ -24,7 +24,7 @@ public: ...@@ -24,7 +24,7 @@ public:
int serialize(std::wostream & _stream); int serialize(std::wostream & _stream);
BIFF_WORD id; _UINT16 id;
BaseObjectPtr m_LineFormat; BaseObjectPtr m_LineFormat;
//----------------------------- //-----------------------------
......
...@@ -22,14 +22,6 @@ public: ...@@ -22,14 +22,6 @@ public:
static const ElementType type = typeCrtMlFrtContinue; static const ElementType type = typeCrtMlFrtContinue;
//-----------------------------
// BIFF_WORD userName;
public:
//BO_ATTRIB_MARKUP_BEGIN
// //BO_ATTRIB_MARKUP_ATTRIB(userName)
//BO_ATTRIB_MARKUP_END
}; };
} // namespace XLS } // namespace XLS
......
...@@ -22,12 +22,6 @@ public: ...@@ -22,12 +22,6 @@ public:
static const ElementType type = typeDBQueryExt; static const ElementType type = typeDBQueryExt;
//-----------------------------
// BIFF_WORD userName;
public:
//BO_ATTRIB_MARKUP_BEGIN
// //BO_ATTRIB_MARKUP_ATTRIB(userName)
//BO_ATTRIB_MARKUP_END
}; };
......
...@@ -22,7 +22,6 @@ public: ...@@ -22,7 +22,6 @@ public:
static const ElementType type = typeDCon; static const ElementType type = typeDCon;
//----------------------------- //-----------------------------
// BIFF_WORD userName;
unsigned short iiftab; unsigned short iiftab;
unsigned short fLeftCat; unsigned short fLeftCat;
unsigned short fTopCat; unsigned short fTopCat;
......
...@@ -22,12 +22,6 @@ public: ...@@ -22,12 +22,6 @@ public:
static const ElementType type = typeDConBin; static const ElementType type = typeDConBin;
//-----------------------------
// BIFF_WORD userName;
public:
//BO_ATTRIB_MARKUP_BEGIN
// //BO_ATTRIB_MARKUP_ATTRIB(userName)
//BO_ATTRIB_MARKUP_END
}; };
......
...@@ -22,13 +22,6 @@ public: ...@@ -22,13 +22,6 @@ public:
static const ElementType type = typeDConName; static const ElementType type = typeDConName;
//-----------------------------
// BIFF_WORD userName;
public:
//BO_ATTRIB_MARKUP_BEGIN
// //BO_ATTRIB_MARKUP_ATTRIB(userName)
//BO_ATTRIB_MARKUP_END
}; };
} // namespace XLS } // namespace XLS
......
...@@ -22,12 +22,6 @@ public: ...@@ -22,12 +22,6 @@ public:
static const ElementType type = typeDConRef; static const ElementType type = typeDConRef;
//-----------------------------
// BIFF_WORD userName;
public:
//BO_ATTRIB_MARKUP_BEGIN
// //BO_ATTRIB_MARKUP_ATTRIB(userName)
//BO_ATTRIB_MARKUP_END
}; };
......
...@@ -22,12 +22,6 @@ public: ...@@ -22,12 +22,6 @@ public:
static const ElementType type = typeDConn; static const ElementType type = typeDConn;
//-----------------------------
// BIFF_WORD userName;
public:
//BO_ATTRIB_MARKUP_BEGIN
// //BO_ATTRIB_MARKUP_ATTRIB(userName)
//BO_ATTRIB_MARKUP_END
}; };
......
...@@ -22,9 +22,9 @@ public: ...@@ -22,9 +22,9 @@ public:
static const ElementType type = typeDataFormat; static const ElementType type = typeDataFormat;
BIFF_WORD xi; _UINT16 xi;
BIFF_WORD yi; _UINT16 yi;
BIFF_WORD iss; _UINT16 iss;
bool fUnknown; bool fUnknown;
}; };
......
...@@ -22,12 +22,6 @@ public: ...@@ -22,12 +22,6 @@ public:
static const ElementType type = typeDbOrParamQry; static const ElementType type = typeDbOrParamQry;
//-----------------------------
// BIFF_WORD userName;
public:
//BO_ATTRIB_MARKUP_BEGIN
// //BO_ATTRIB_MARKUP_ATTRIB(userName)
//BO_ATTRIB_MARKUP_END
}; };
......
...@@ -23,7 +23,7 @@ public: ...@@ -23,7 +23,7 @@ public:
static const ElementType type = typeDefColWidth; static const ElementType type = typeDefColWidth;
//----------------------------- //-----------------------------
BIFF_WORD cchdefColWidth; _UINT16 cchdefColWidth;
}; };
} // namespace XLS } // namespace XLS
......
...@@ -6,6 +6,7 @@ namespace XLS ...@@ -6,6 +6,7 @@ namespace XLS
DefaultRowHeight::DefaultRowHeight() DefaultRowHeight::DefaultRowHeight()
{ {
miyRw = -1;
} }
...@@ -27,15 +28,10 @@ void DefaultRowHeight::writeFields(CFRecord& record) ...@@ -27,15 +28,10 @@ void DefaultRowHeight::writeFields(CFRecord& record)
SETBIT(flags, 1, fDyZero); SETBIT(flags, 1, fDyZero);
SETBIT(flags, 2, fExAsc); SETBIT(flags, 2, fExAsc);
SETBIT(flags, 3, fExDsc); SETBIT(flags, 3, fExDsc);
record << flags; record << flags;
if(!fDyZero) record << miyRw;
{
record << miyRw;
}
else
{
record << miyRwHidden;
}
} }
...@@ -51,16 +47,10 @@ void DefaultRowHeight::readFields(CFRecord& record) ...@@ -51,16 +47,10 @@ void DefaultRowHeight::readFields(CFRecord& record)
fExAsc = GETBIT(flags, 2); fExAsc = GETBIT(flags, 2);
fExDsc = GETBIT(flags, 3); fExDsc = GETBIT(flags, 3);
if(!fDyZero) record >> miyRw;
{
record >> miyRw; global_info->defaultRowHeight = miyRw / 20.;
global_info->defaultRowHeight = miyRw / 20.;
}
else
{
record >> miyRwHidden;
global_info->defaultRowHeight = miyRwHidden / 20.;
}
} }
} // namespace XLS } // namespace XLS
......
...@@ -28,8 +28,7 @@ public: ...@@ -28,8 +28,7 @@ public:
bool fExAsc; bool fExAsc;
bool fExDsc; bool fExDsc;
BIFF_SHORT miyRw; // measured in twips (1/20 of of a printer's point) _INT16 miyRw; // measured in twips (1/20 of of a printer's point)
BIFF_SHORT miyRwHidden;
}; };
......
...@@ -23,7 +23,7 @@ public: ...@@ -23,7 +23,7 @@ public:
static const ElementType type = typeDefaultText; static const ElementType type = typeDefaultText;
//----------------------------- //-----------------------------
BIFF_WORD id; _UINT16 id;
}; };
......
...@@ -46,11 +46,12 @@ void Dimensions::writeFields(CFRecord& record) ...@@ -46,11 +46,12 @@ void Dimensions::writeFields(CFRecord& record)
void Dimensions::readFields(CFRecord& record) void Dimensions::readFields(CFRecord& record)
{ {
record >> rwMic >> rwMac >> colMic >> colMac; record >> rwMic >> rwMac >> colMic >> colMac;
record.skipNunBytes(2); // reserved record.skipNunBytes(2); // reserved
if(rwMac.value() && colMac.value()) if(rwMac >= 0 && colMac >= 0)
{ {
ref_ = static_cast<std::wstring >(CellRangeRef(CellRef(*rwMic.value(), *colMic.value(), true, true), CellRef(*rwMac.value() - 1, *colMac.value() - 1, true, true)).toString(false).c_str()); ref_ = static_cast<std::wstring >(CellRangeRef(CellRef(rwMic, colMic, true, true), CellRef(rwMac - 1, colMac - 1, true, true)).toString(false).c_str());
} }
else else
{ {
......
...@@ -26,10 +26,10 @@ public: ...@@ -26,10 +26,10 @@ public:
std::wstring ref_; std::wstring ref_;
//----------------------------- //-----------------------------
RwLongU rwMic; _UINT32 rwMic;
BIFF_DWORD rwMac; _UINT32 rwMac;
ColU colMic; _UINT16 colMic;
BIFF_WORD colMac; _UINT16 colMac;
}; };
......
...@@ -21,14 +21,6 @@ public: ...@@ -21,14 +21,6 @@ public:
void readFields(CFRecord& record); void readFields(CFRecord& record);
static const ElementType type = typeDocRoute; static const ElementType type = typeDocRoute;
//-----------------------------
// BIFF_WORD userName;
public:
//BO_ATTRIB_MARKUP_BEGIN
// //BO_ATTRIB_MARKUP_ATTRIB(userName)
//BO_ATTRIB_MARKUP_END
}; };
} // namespace XLS } // namespace XLS
......
...@@ -22,7 +22,7 @@ public: ...@@ -22,7 +22,7 @@ public:
static const ElementType type = typeDropBar; static const ElementType type = typeDropBar;
BIFF_SHORT pcGap; _INT16 pcGap;
}; };
} // namespace XLS } // namespace XLS
......
...@@ -23,12 +23,7 @@ public: ...@@ -23,12 +23,7 @@ public:
static const ElementType type = typeDxGCol; static const ElementType type = typeDxGCol;
//----------------------------- //-----------------------------
BIFF_WORD dxgCol; _UINT16 dxgCol;
public:
//BO_ATTRIB_MARKUP_BEGIN
//BO_ATTRIB_MARKUP_ATTRIB(dxgCol)
//BO_ATTRIB_MARKUP_END
}; };
} // namespace XLS } // namespace XLS
......
...@@ -23,11 +23,7 @@ public: ...@@ -23,11 +23,7 @@ public:
static const ElementType type = typeEndObject; static const ElementType type = typeEndObject;
//----------------------------- //-----------------------------
BIFF_WORD iObjectKind; _UINT16 iObjectKind;
public:
//BO_ATTRIB_MARKUP_BEGIN
//BO_ATTRIB_MARKUP_ATTRIB(iObjectKind)
//BO_ATTRIB_MARKUP_END
}; };
......
...@@ -24,7 +24,7 @@ public: ...@@ -24,7 +24,7 @@ public:
static const ElementType type = typeExtSST; static const ElementType type = typeExtSST;
//----------------------------- //-----------------------------
BIFF_WORD dsst; _UINT16 dsst;
BiffStructurePtrVector rgISSTInf; BiffStructurePtrVector rgISSTInf;
BackwardOnlyParam<_UINT32> num_sets; BackwardOnlyParam<_UINT32> num_sets;
......
...@@ -22,12 +22,6 @@ public: ...@@ -22,12 +22,6 @@ public:
static const ElementType type = typeExtString; static const ElementType type = typeExtString;
//-----------------------------
// BIFF_WORD userName;
public:
//BO_ATTRIB_MARKUP_BEGIN
// //BO_ATTRIB_MARKUP_ATTRIB(userName)
//BO_ATTRIB_MARKUP_END
}; };
......
...@@ -33,35 +33,25 @@ public: ...@@ -33,35 +33,25 @@ public:
bool fWantPict; bool fWantPict;
bool fOle; bool fOle;
bool fOleLink; bool fOleLink;
BIFF_WORD cf; _UINT16 cf;
bool fIcon; bool fIcon;
BiffStructurePtr body; BiffStructurePtr body;
//----------------------------- //-----------------------------
BIFF_WORD supbook_cch; _UINT16 supbook_cch;
public: //if(0x3A01 == supbook_cch)
//BO_ATTRIB_MARKUP_BEGIN //{
//BO_ATTRIB_MARKUP_ATTRIB(fBuiltIn) // if(!body)
//BO_ATTRIB_MARKUP_ATTRIB(fWantAdvise) // {
//BO_ATTRIB_MARKUP_ATTRIB(fWantPict) // body = BiffStructurePtr(new AddinUdf);
//BO_ATTRIB_MARKUP_ATTRIB(fOle) // }
//BO_ATTRIB_MARKUP_ATTRIB(fOleLink) // //BO_ATTRIB_MARKUP_COMPLEX(*body)
//BO_ATTRIB_MARKUP_ATTRIB(cf) //}
//BO_ATTRIB_MARKUP_ATTRIB(fIcon) //else
//if(0x3A01 == supbook_cch) //{
//{ // throw;// EXCEPT::LE::NotImplemented(__FUNCTION__);
// if(!body) //}
// {
// body = BiffStructurePtr(new AddinUdf);
// }
// //BO_ATTRIB_MARKUP_COMPLEX(*body)
//}
//else
//{
// throw;// EXCEPT::LE::NotImplemented(__FUNCTION__);
//}
//BO_ATTRIB_MARKUP_END
}; };
......
...@@ -24,10 +24,10 @@ public: ...@@ -24,10 +24,10 @@ public:
static const ElementType type = typeFbi; static const ElementType type = typeFbi;
//----------------------------- //-----------------------------
BIFF_WORD dmixBasis; _UINT16 dmixBasis;
BIFF_WORD dmiyBasis; _UINT16 dmiyBasis;
BIFF_WORD twpHeightBasis; _UINT16 twpHeightBasis;
BIFF_WORD scab; _UINT16 scab;
FontIndex ifnt; FontIndex ifnt;
......
...@@ -28,7 +28,7 @@ public: ...@@ -28,7 +28,7 @@ public:
//----------------------------- //-----------------------------
SharedFeatureType isf; SharedFeatureType isf;
BIFF_WORD cref; _UINT16 cref;
BIFF_DWORD cbFeatData; BIFF_DWORD cbFeatData;
BiffStructurePtrVector refs; BiffStructurePtrVector refs;
BIFF_BSTR sqref; BIFF_BSTR sqref;
...@@ -38,12 +38,6 @@ public: ...@@ -38,12 +38,6 @@ public:
FeatSmartTag smart_tag; FeatSmartTag smart_tag;
public: public:
//BO_ATTRIB_MARKUP_BEGIN
//BO_ATTRIB_MARKUP_ATTRIB(isf)
//BO_ATTRIB_MARKUP_ATTRIB(cref)
//BO_ATTRIB_MARKUP_ATTRIB(sqref)
//BO_ATTRIB_MARKUP_ATTRIB(cbFeatData)
//BO_ATTRIB_MARKUP_VECTOR_COMPLEX(refs, Ref8U)
//switch(isf) //switch(isf)
//{ //{
// case SharedFeatureType::ISFPROTECTION: // case SharedFeatureType::ISFPROTECTION:
...@@ -57,9 +51,6 @@ public: ...@@ -57,9 +51,6 @@ public:
// break; // break;
//} //}
//BO_ATTRIB_MARKUP_END
}; };
} // namespace XLS } // namespace XLS
......
...@@ -28,26 +28,14 @@ public: ...@@ -28,26 +28,14 @@ public:
public: public:
FrtRefHeaderU frtRefHeaderU; FrtRefHeaderU frtRefHeaderU;
BIFF_WORD isf; _UINT16 isf;
BIFF_WORD cref2; _UINT16 cref2;
BIFF_DWORD cbFeatData; _UINT32 cbFeatData;
BiffStructurePtrVector refs2; BiffStructurePtrVector refs2;
BIFF_BSTR sqref; BIFF_BSTR sqref;
TableFeatureType rgbFeat; TableFeatureType rgbFeat;
public:
//BO_ATTRIB_MARKUP_BEGIN
//BO_ATTRIB_MARKUP_COMPLEX(frtRefHeaderU)
//BO_ATTRIB_MARKUP_ATTRIB(isf)
//BO_ATTRIB_MARKUP_ATTRIB(cref2)
//BO_ATTRIB_MARKUP_ATTRIB(cbFeatData)
//BO_ATTRIB_MARKUP_ATTRIB(sqref)
//BO_ATTRIB_MARKUP_VECTOR_COMPLEX(refs2, Ref8U)
//BO_ATTRIB_MARKUP_COMPLEX(rgbFeat)
//BO_ATTRIB_MARKUP_END
}; };
} // namespace XLS } // namespace XLS
......
...@@ -29,12 +29,11 @@ public: ...@@ -29,12 +29,11 @@ public:
//----------------------------- //-----------------------------
Boolean<unsigned short> wEncryptionType; Boolean<unsigned short> wEncryptionType;
XORObfuscation key; XORObfuscation key;
BIFF_WORD majorVer; _UINT16 majorVer;
CRYPTO::RC4EncryptionHeader rc4Header; CRYPTO::RC4EncryptionHeader rc4Header;
CRYPTO::RC4CryptoAPIEncryptionHeader rc4CryptoAPIHeader; CRYPTO::RC4CryptoAPIEncryptionHeader rc4CryptoAPIHeader;
public: public:
//BO_ATTRIB_MARKUP_BEGIN
//BO_ATTRIB_MARKUP_ATTRIB(wEncryptionType) //BO_ATTRIB_MARKUP_ATTRIB(wEncryptionType)
//if(!wEncryptionType) //if(!wEncryptionType)
//{ //{
...@@ -49,7 +48,6 @@ public: ...@@ -49,7 +48,6 @@ public:
// //BO_ATTRIB_MARKUP_COMPLEX(rc4CryptoAPIHeader) // //BO_ATTRIB_MARKUP_COMPLEX(rc4CryptoAPIHeader)
//} //}
//BO_ATTRIB_MARKUP_END
}; };
......
...@@ -27,21 +27,8 @@ public: ...@@ -27,21 +27,8 @@ public:
Boolean<unsigned short> fReadOnlyRec; Boolean<unsigned short> fReadOnlyRec;
unsigned short wResPassNum; unsigned short wResPassNum;
BIFF_BSTR wResPass; BIFF_BSTR wResPass;
BIFF_WORD iNoResPass; _UINT16 iNoResPass;
XLUnicodeString stUNUsername; XLUnicodeString stUNUsername;
public:
//BO_ATTRIB_MARKUP_BEGIN
//BO_ATTRIB_MARKUP_ATTRIB(fReadOnlyRec)
//BO_ATTRIB_MARKUP_ATTRIB(wResPass)
//if(!wResPassNum)
//{
// //BO_ATTRIB_MARKUP_ATTRIB(iNoResPass)
//}
//else
//{
// //BO_ATTRIB_MARKUP_ATTRIB(stUNUsername)
//}
//BO_ATTRIB_MARKUP_END
}; };
......
...@@ -83,12 +83,12 @@ int Font::serialize_rPr(std::wostream & stream, bool rtl, bool defRPr, std::wstr ...@@ -83,12 +83,12 @@ int Font::serialize_rPr(std::wostream & stream, bool rtl, bool defRPr, std::wstr
CP_XML_NODE(strRpr) CP_XML_NODE(strRpr)
{ {
if (dyHeight.value()) if (dyHeight > 0)
{ {
CP_XML_ATTR(L"sz", (int)(dyHeight/20. * 100)); CP_XML_ATTR(L"sz", (int)(dyHeight/20. * 100));
} }
if ((bls.value()) && (*bls.value() == 700)) if (bls == 700)
{ {
CP_XML_ATTR(L"b", true); CP_XML_ATTR(L"b", true);
} }
...@@ -125,7 +125,7 @@ int Font::serialize_rPr(std::wostream & stream, bool rtl, bool defRPr, std::wstr ...@@ -125,7 +125,7 @@ int Font::serialize_rPr(std::wostream & stream, bool rtl, bool defRPr, std::wstr
// CP_XML_ATTR(L"val", fExtend); // CP_XML_ATTR(L"val", fExtend);
// } // }
// } // }
if (((icv.value()) && (icv < 0x7fff)) || color_ext.enabled ) if ( (icv < 0x7fff) || color_ext.enabled )
{ {
if (color_ext.enabled ) if (color_ext.enabled )
{ {
...@@ -269,7 +269,7 @@ int Font::serialize_properties(std::wostream & stream, bool isRPr) ...@@ -269,7 +269,7 @@ int Font::serialize_properties(std::wostream & stream, bool isRPr)
{ {
CP_XML_WRITER(stream) CP_XML_WRITER(stream)
{ {
if ((bls.value()) && (*bls.value() == 700)) if ( bls== 700)
{ {
CP_XML_NODE(L"b") CP_XML_NODE(L"b")
{ {
...@@ -285,7 +285,7 @@ int Font::serialize_properties(std::wostream & stream, bool isRPr) ...@@ -285,7 +285,7 @@ int Font::serialize_properties(std::wostream & stream, bool isRPr)
} }
} }
if (((icv.value()) && (icv < 0x7fff)) || color_ext.enabled ) if (icv < 0x7fff || color_ext.enabled )
{ {
CP_XML_NODE(L"color") CP_XML_NODE(L"color")
{ {
...@@ -395,7 +395,7 @@ int Font::serialize_properties(std::wostream & stream, bool isRPr) ...@@ -395,7 +395,7 @@ int Font::serialize_properties(std::wostream & stream, bool isRPr)
} }
} }
if ((dyHeight.value()) && (dyHeight > 0)) if (dyHeight > 0)
{ {
CP_XML_NODE(L"sz") CP_XML_NODE(L"sz")
{ {
...@@ -418,11 +418,11 @@ int Font::serialize_properties(std::wostream & stream, bool isRPr) ...@@ -418,11 +418,11 @@ int Font::serialize_properties(std::wostream & stream, bool isRPr)
} }
} }
if ((sss.value()) && (*sss.value() > 0)) if (sss > 0)
{ {
CP_XML_NODE(L"vertAlign") CP_XML_NODE(L"vertAlign")
{ {
switch(*sss.value()) switch(sss)
{ {
case 1: CP_XML_ATTR(L"val", L"superscript");break; case 1: CP_XML_ATTR(L"val", L"superscript");break;
case 2: CP_XML_ATTR(L"val", L"subscript");break; case 2: CP_XML_ATTR(L"val", L"subscript");break;
......
...@@ -33,7 +33,7 @@ public: ...@@ -33,7 +33,7 @@ public:
GlobalWorkbookInfoPtr global_info; GlobalWorkbookInfoPtr global_info;
//----------------------------- //-----------------------------
BIFF_WORD dyHeight; // measured in twips (1/20 of of a printer's point) _UINT16 dyHeight; // measured in twips (1/20 of of a printer's point)
bool fItalic; bool fItalic;
bool fStrikeOut; bool fStrikeOut;
...@@ -42,9 +42,9 @@ public: ...@@ -42,9 +42,9 @@ public:
bool fCondense; bool fCondense;
bool fExtend; bool fExtend;
BIFF_WORD icv; _UINT16 icv;
BIFF_WORD bls; _UINT16 bls;
BIFF_WORD sss; _UINT16 sss;
BIFF_BYTE uls; BIFF_BYTE uls;
BIFF_BYTE bFamily; BIFF_BYTE bFamily;
BIFF_BYTE bCharSet; BIFF_BYTE bCharSet;
......
...@@ -23,7 +23,7 @@ public: ...@@ -23,7 +23,7 @@ public:
static const ElementType type = typeFontX; static const ElementType type = typeFontX;
//----------------------------- //-----------------------------
BIFF_WORD iFont; _UINT16 iFont;
}; };
......
...@@ -25,7 +25,7 @@ public: ...@@ -25,7 +25,7 @@ public:
int serialize(std::wostream & stream); int serialize(std::wostream & stream);
//----------------------------- //-----------------------------
BIFF_WORD ifmt; _UINT16 ifmt;
XLUnicodeString stFormat; XLUnicodeString stFormat;
}; };
......
...@@ -23,7 +23,7 @@ public: ...@@ -23,7 +23,7 @@ public:
static const ElementType type = typeFrame; static const ElementType type = typeFrame;
//----------------------------- //-----------------------------
BIFF_WORD frt; _UINT16 frt;
bool fAutoSize; bool fAutoSize;
bool fAutoPosition; bool fAutoPosition;
......
...@@ -22,12 +22,6 @@ public: ...@@ -22,12 +22,6 @@ public:
static const ElementType type = typeFrtFontList; static const ElementType type = typeFrtFontList;
//-----------------------------
// BIFF_WORD userName;
public:
//BO_ATTRIB_MARKUP_BEGIN
// //BO_ATTRIB_MARKUP_ATTRIB(userName)
//BO_ATTRIB_MARKUP_END
}; };
......
...@@ -23,8 +23,8 @@ public: ...@@ -23,8 +23,8 @@ public:
static const ElementType type = typeGuts; static const ElementType type = typeGuts;
//----------------------------- //-----------------------------
BIFF_WORD iLevelRwMac; _UINT16 iLevelRwMac;
BIFF_WORD iLevelColMac; _UINT16 iLevelColMac;
}; };
......
...@@ -30,10 +30,10 @@ public: ...@@ -30,10 +30,10 @@ public:
bool fHFScaleWithDoc; bool fHFScaleWithDoc;
bool fHFAlignMargins; bool fHFAlignMargins;
BIFF_WORD cchHeaderEven; _UINT16 cchHeaderEven;
BIFF_WORD cchFooterEven; _UINT16 cchFooterEven;
BIFF_WORD cchHeaderFirst; _UINT16 cchHeaderFirst;
BIFF_WORD cchFooterFirst; _UINT16 cchFooterFirst;
XLUnicodeString strHeaderEven; XLUnicodeString strHeaderEven;
XLUnicodeString strFooterEven; XLUnicodeString strFooterEven;
......
...@@ -25,13 +25,8 @@ public: ...@@ -25,13 +25,8 @@ public:
//----------------------------- //-----------------------------
BIFF_WORD cbrk; _UINT16 cbrk;
BiffStructurePtrVector rgbrk; BiffStructurePtrVector rgbrk;
public:
//BO_ATTRIB_MARKUP_BEGIN
//BO_ATTRIB_MARKUP_ATTRIB(cbrk)
//BO_ATTRIB_MARKUP_VECTOR_COMPLEX(rgbrk, HorzBrk)
//BO_ATTRIB_MARKUP_END
}; };
......
...@@ -23,7 +23,7 @@ public: ...@@ -23,7 +23,7 @@ public:
static const ElementType type = typeIFmtRecord; static const ElementType type = typeIFmtRecord;
//----------------------------- //-----------------------------
BIFF_WORD ifmt; _UINT16 ifmt;
}; };
} // namespace XLS } // namespace XLS
......
...@@ -21,7 +21,7 @@ public: ...@@ -21,7 +21,7 @@ public:
void writeFields(CFRecord& record); void writeFields(CFRecord& record);
void readFields(CFRecord& record); void readFields(CFRecord& record);
//----------------------------- //-----------------------------
BIFF_WORD codePage; _UINT16 codePage;
}; };
} // namespace XLS } // namespace XLS
...@@ -21,15 +21,6 @@ public: ...@@ -21,15 +21,6 @@ public:
void readFields(CFRecord& record); void readFields(CFRecord& record);
static const ElementType type = typeIntl; static const ElementType type = typeIntl;
//-----------------------------
// BIFF_WORD userName;
public:
//BO_ATTRIB_MARKUP_BEGIN
// //BO_ATTRIB_MARKUP_ATTRIB(userName)
//BO_ATTRIB_MARKUP_END
}; };
} // namespace XLS } // namespace XLS
......
...@@ -24,18 +24,10 @@ public: ...@@ -24,18 +24,10 @@ public:
static const ElementType type = typeLRng; static const ElementType type = typeLRng;
//----------------------------- //-----------------------------
BIFF_WORD crefRw; _UINT16 crefRw;
BiffStructurePtrVector refRow; BiffStructurePtrVector refRow;
BIFF_WORD crefCol; _UINT16 crefCol;
BiffStructurePtrVector refCol; BiffStructurePtrVector refCol;
public:
//BO_ATTRIB_MARKUP_BEGIN
//BO_ATTRIB_MARKUP_ATTRIB(crefRw)
//BO_ATTRIB_MARKUP_VECTOR_COMPLEX(refRow, Ref8U)
//BO_ATTRIB_MARKUP_ATTRIB(crefCol)
//BO_ATTRIB_MARKUP_VECTOR_COMPLEX(refCol, Ref8U)
//BO_ATTRIB_MARKUP_END
}; };
} // namespace XLS } // namespace XLS
......
...@@ -51,7 +51,7 @@ int Label::serialize(std::wostream & stream) ...@@ -51,7 +51,7 @@ int Label::serialize(std::wostream & stream)
CP_XML_ATTR(L"r", ref); CP_XML_ATTR(L"r", ref);
int st = (int)cell.ixfe - global_info_->cellStyleXfs_count; int st = (int)cell.ixfe - global_info_->cellStyleXfs_count;
if ((cell.ixfe.value()) && (cell.ixfe > global_info_->cellStyleXfs_count)) if (cell.ixfe > global_info_->cellStyleXfs_count)
{ {
CP_XML_ATTR(L"s", cell.ixfe - global_info_->cellStyleXfs_count); CP_XML_ATTR(L"s", cell.ixfe - global_info_->cellStyleXfs_count);
} }
......
...@@ -50,7 +50,7 @@ int LabelSst::serialize(std::wostream & stream) ...@@ -50,7 +50,7 @@ int LabelSst::serialize(std::wostream & stream)
CP_XML_ATTR(L"r", ref); CP_XML_ATTR(L"r", ref);
int st = (int)cell.ixfe - global_info_->cellStyleXfs_count; int st = (int)cell.ixfe - global_info_->cellStyleXfs_count;
if ((cell.ixfe.value()) && (cell.ixfe > global_info_->cellStyleXfs_count)) if (cell.ixfe > global_info_->cellStyleXfs_count)
{ {
CP_XML_ATTR(L"s", cell.ixfe - global_info_->cellStyleXfs_count); CP_XML_ATTR(L"s", cell.ixfe - global_info_->cellStyleXfs_count);
} }
......
...@@ -39,7 +39,7 @@ public: ...@@ -39,7 +39,7 @@ public:
bool fWorkbookParam; bool fWorkbookParam;
BIFF_BYTE chKey; BIFF_BYTE chKey;
BIFF_WORD itab; _UINT16 itab;
XLUnicodeStringNoCch Name_bin; XLUnicodeStringNoCch Name_bin;
BIFF_BSTR Name; BIFF_BSTR Name;
NameParsedFormula rgce; NameParsedFormula rgce;
......
...@@ -20,7 +20,7 @@ public: ...@@ -20,7 +20,7 @@ public:
void writeFields(CFRecord& record); void writeFields(CFRecord& record);
void readFields(CFRecord& record); void readFields(CFRecord& record);
BIFF_WORD iss; _UINT16 iss;
bool fDelete; bool fDelete;
bool fLabel; bool fLabel;
......
...@@ -25,11 +25,11 @@ public: ...@@ -25,11 +25,11 @@ public:
int serialize(std::wostream & _stream); int serialize(std::wostream & _stream);
//----------------------------- //-----------------------------
LongRGB rgb; LongRGB rgb;
BIFF_WORD lns; _UINT16 lns;
BIFF_WORD we; _UINT16 we;
bool fAuto; bool fAuto;
bool fAxisOn; bool fAxisOn;
bool fAutoCo; bool fAutoCo;
IcvChart icv; IcvChart icv;
}; };
......
...@@ -26,7 +26,7 @@ public: ...@@ -26,7 +26,7 @@ public:
public: public:
FrtHeader frtHeader; FrtHeader frtHeader;
BIFF_WORD lsd; _UINT16 lsd;
BIFF_DWORD idList; BIFF_DWORD idList;
List12BlockLevel rgbList12BlockLevel; List12BlockLevel rgbList12BlockLevel;
...@@ -34,12 +34,7 @@ public: ...@@ -34,12 +34,7 @@ public:
List12DisplayName rgbList12DisplayName; List12DisplayName rgbList12DisplayName;
public: public:
//BO_ATTRIB_MARKUP_BEGIN //switch (lsd)
//BO_ATTRIB_MARKUP_COMPLEX(frtHeader)
//BO_ATTRIB_MARKUP_ATTRIB(lsd)
//BO_ATTRIB_MARKUP_ATTRIB(idList)
//switch (lsd)
//{ //{
// case 0: // case 0:
// //BO_ATTRIB_MARKUP_COMPLEX(rgbList12BlockLevel) // //BO_ATTRIB_MARKUP_COMPLEX(rgbList12BlockLevel)
...@@ -51,9 +46,6 @@ public: ...@@ -51,9 +46,6 @@ public:
// //BO_ATTRIB_MARKUP_COMPLEX(rgbList12DisplayName) // //BO_ATTRIB_MARKUP_COMPLEX(rgbList12DisplayName)
// break; // break;
//} //}
//BO_ATTRIB_MARKUP_END
}; };
} // namespace XLS } // namespace XLS
......
...@@ -26,7 +26,7 @@ public: ...@@ -26,7 +26,7 @@ public:
LongRGB rgbFore; LongRGB rgbFore;
LongRGB rgbBack; LongRGB rgbBack;
BIFF_WORD imk; _UINT16 imk;
bool fAuto; bool fAuto;
bool fNotShowInt; bool fNotShowInt;
bool fNotShowBrd; bool fNotShowBrd;
......
...@@ -71,7 +71,7 @@ int MulRk::serialize(std::wostream & stream) ...@@ -71,7 +71,7 @@ int MulRk::serialize(std::wostream & stream)
{ {
CP_XML_ATTR(L"r", ref); CP_XML_ATTR(L"r", ref);
if ((cell->ixfe.value()) && (cell->ixfe > global_info_->cellStyleXfs_count)) if (cell->ixfe > global_info_->cellStyleXfs_count)
{ {
CP_XML_ATTR(L"s", cell->ixfe - global_info_->cellStyleXfs_count); CP_XML_ATTR(L"s", cell->ixfe - global_info_->cellStyleXfs_count);
} }
......
...@@ -21,8 +21,8 @@ public: ...@@ -21,8 +21,8 @@ public:
void writeFields(CFRecord& record); void writeFields(CFRecord& record);
void readFields(CFRecord& record); void readFields(CFRecord& record);
//----------------------------- //-----------------------------
BIFF_WORD cachName; _UINT16 cachName;
BIFF_WORD fgrp; _UINT16 fgrp;
XLNameUnicodeString rgach; XLNameUnicodeString rgach;
......
...@@ -56,7 +56,7 @@ int Number::serialize(std::wostream & stream) ...@@ -56,7 +56,7 @@ int Number::serialize(std::wostream & stream)
{ {
CP_XML_ATTR(L"r", ref); CP_XML_ATTR(L"r", ref);
if ((cell.ixfe.value()) && (cell.ixfe > global_info_->cellStyleXfs_count)) if (cell.ixfe > global_info_->cellStyleXfs_count)
{ {
CP_XML_ATTR(L"s", cell.ixfe - global_info_->cellStyleXfs_count); CP_XML_ATTR(L"s", cell.ixfe - global_info_->cellStyleXfs_count);
} }
......
...@@ -22,9 +22,9 @@ public: ...@@ -22,9 +22,9 @@ public:
static const ElementType type = typeObjectLink; static const ElementType type = typeObjectLink;
BIFF_WORD wLinkObj; _UINT16 wLinkObj;
BIFF_WORD wLinkVar1; _UINT16 wLinkVar1;
BIFF_WORD wLinkVar2; _UINT16 wLinkVar2;
//------------------------------- //-------------------------------
......
...@@ -22,13 +22,6 @@ public: ...@@ -22,13 +22,6 @@ public:
static const ElementType type = typeOleDbConn; static const ElementType type = typeOleDbConn;
//-----------------------------
// BIFF_WORD userName;
public:
//BO_ATTRIB_MARKUP_BEGIN
// //BO_ATTRIB_MARKUP_ATTRIB(userName)
//BO_ATTRIB_MARKUP_END
}; };
} // namespace XLS } // namespace XLS
......
...@@ -23,7 +23,7 @@ public: ...@@ -23,7 +23,7 @@ public:
static const ElementType type = typePLV; static const ElementType type = typePLV;
//----------------------------- //-----------------------------
BIFF_WORD wScalePLV; _UINT16 wScalePLV;
bool fPageLayoutView; bool fPageLayoutView;
bool fRulerVisible; bool fRulerVisible;
......
...@@ -25,10 +25,10 @@ public: ...@@ -25,10 +25,10 @@ public:
static const ElementType type = typePane; static const ElementType type = typePane;
//----------------------------- //-----------------------------
BIFF_WORD x; _UINT16 x;
BIFF_WORD y; _UINT16 y;
R_RwU rwTop; _UINT16 rwTop;
ColU colLeft; _UINT16 colLeft;
PaneType pnnAcct; PaneType pnnAcct;
BIFF_BSTR topLeftCell; BIFF_BSTR topLeftCell;
......
...@@ -25,8 +25,8 @@ public: ...@@ -25,8 +25,8 @@ public:
int serialize(std::wostream & _stream); int serialize(std::wostream & _stream);
//----------------------------- //-----------------------------
BIFF_WORD anStart; _UINT16 anStart;
BIFF_WORD pcDonut; _UINT16 pcDonut;
bool fHasShadow; bool fHasShadow;
bool fShowLdrLines; bool fShowLdrLines;
}; };
......
...@@ -24,7 +24,7 @@ public: ...@@ -24,7 +24,7 @@ public:
int serialize(std::wostream & _stream); int serialize(std::wostream & _stream);
BIFF_SHORT pcExplode; _INT16 pcExplode;
}; };
......
...@@ -22,13 +22,6 @@ public: ...@@ -22,13 +22,6 @@ public:
static const ElementType type = typePivotChartBits; static const ElementType type = typePivotChartBits;
//-----------------------------
// BIFF_WORD userName;
public:
//BO_ATTRIB_MARKUP_BEGIN
// //BO_ATTRIB_MARKUP_ATTRIB(userName)
//BO_ATTRIB_MARKUP_END
}; };
} // namespace XLS } // namespace XLS
......
...@@ -29,10 +29,10 @@ public: ...@@ -29,10 +29,10 @@ public:
_UINT16 mdTopLt; _UINT16 mdTopLt;
_UINT16 mdBotRt; _UINT16 mdBotRt;
BIFF_SHORT x1; _INT16 x1;
BIFF_SHORT y1; _INT16 y1;
BIFF_SHORT x2; _INT16 x2;
BIFF_SHORT y2; _INT16 y2;
//----------------------------- //-----------------------------
......
...@@ -23,11 +23,7 @@ public: ...@@ -23,11 +23,7 @@ public:
static const ElementType type = typePrintSize; static const ElementType type = typePrintSize;
//----------------------------- //-----------------------------
BIFF_WORD printSize; _UINT16 printSize;
public:
//BO_ATTRIB_MARKUP_BEGIN
//BO_ATTRIB_MARKUP_ATTRIB(printSize)
//BO_ATTRIB_MARKUP_END
}; };
......
...@@ -21,14 +21,6 @@ public: ...@@ -21,14 +21,6 @@ public:
void readFields(CFRecord& record); void readFields(CFRecord& record);
static const ElementType type = typeQsi; static const ElementType type = typeQsi;
//-----------------------------
// BIFF_WORD userName;
public:
//BO_ATTRIB_MARKUP_BEGIN
// //BO_ATTRIB_MARKUP_ATTRIB(userName)
//BO_ATTRIB_MARKUP_END
}; };
} // namespace XLS } // namespace XLS
......
...@@ -22,13 +22,6 @@ public: ...@@ -22,13 +22,6 @@ public:
static const ElementType type = typeQsiSXTag; static const ElementType type = typeQsiSXTag;
//-----------------------------
// BIFF_WORD userName;
public:
//BO_ATTRIB_MARKUP_BEGIN
// //BO_ATTRIB_MARKUP_ATTRIB(userName)
//BO_ATTRIB_MARKUP_END
}; };
} // namespace XLS } // namespace XLS
......
...@@ -22,13 +22,6 @@ public: ...@@ -22,13 +22,6 @@ public:
static const ElementType type = typeQsif; static const ElementType type = typeQsif;
//-----------------------------
// BIFF_WORD userName;
public:
//BO_ATTRIB_MARKUP_BEGIN
// //BO_ATTRIB_MARKUP_ATTRIB(userName)
//BO_ATTRIB_MARKUP_END
}; };
} // namespace XLS } // namespace XLS
......
...@@ -21,14 +21,6 @@ public: ...@@ -21,14 +21,6 @@ public:
void readFields(CFRecord& record); void readFields(CFRecord& record);
static const ElementType type = typeQsir; static const ElementType type = typeQsir;
//-----------------------------
// BIFF_WORD userName;
public:
//BO_ATTRIB_MARKUP_BEGIN
// //BO_ATTRIB_MARKUP_ATTRIB(userName)
//BO_ATTRIB_MARKUP_END
}; };
} // namespace XLS } // namespace XLS
......
...@@ -53,7 +53,7 @@ int RK::serialize(std::wostream & stream) ...@@ -53,7 +53,7 @@ int RK::serialize(std::wostream & stream)
{ {
CP_XML_ATTR(L"r", ref); CP_XML_ATTR(L"r", ref);
if ((cell.ixfe.value()) && (cell.ixfe > global_info_->cellStyleXfs_count)) if (cell.ixfe > global_info_->cellStyleXfs_count)
{ {
CP_XML_ATTR(L"s", cell.ixfe - global_info_->cellStyleXfs_count); CP_XML_ATTR(L"s", cell.ixfe - global_info_->cellStyleXfs_count);
} }
......
...@@ -22,13 +22,6 @@ public: ...@@ -22,13 +22,6 @@ public:
static const ElementType type = typeRealTimeData; static const ElementType type = typeRealTimeData;
//-----------------------------
// BIFF_WORD userName;
public:
//BO_ATTRIB_MARKUP_BEGIN
// //BO_ATTRIB_MARKUP_ATTRIB(userName)
//BO_ATTRIB_MARKUP_END
}; };
} // namespace XLS } // namespace XLS
......
...@@ -22,13 +22,6 @@ public: ...@@ -22,13 +22,6 @@ public:
static const ElementType type = typeRecipName; static const ElementType type = typeRecipName;
//-----------------------------
// BIFF_WORD userName;
public:
//BO_ATTRIB_MARKUP_BEGIN
// //BO_ATTRIB_MARKUP_ATTRIB(userName)
//BO_ATTRIB_MARKUP_END
}; };
} // namespace XLS } // namespace XLS
......
...@@ -27,7 +27,7 @@ public: ...@@ -27,7 +27,7 @@ public:
BackwardOnlyParam<unsigned short> colMic; BackwardOnlyParam<unsigned short> colMic;
BackwardOnlyParam<unsigned short> colMac; BackwardOnlyParam<unsigned short> colMac;
BIFF_WORD miyRw; _UINT16 miyRw;
BIFF_BYTE iOutLevel; BIFF_BYTE iOutLevel;
bool fCollapsed; bool fCollapsed;
...@@ -35,7 +35,7 @@ public: ...@@ -35,7 +35,7 @@ public:
bool fUnsynced; bool fUnsynced;
bool fGhostDirty; bool fGhostDirty;
BIFF_WORD ixfe_val; _UINT16 ixfe_val;
bool fExAsc; bool fExAsc;
bool fExDes; bool fExDes;
bool fPhonetic; bool fPhonetic;
......
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