Commit 4c49a9b1 authored by Elen.Subbotina's avatar Elen.Subbotina Committed by Alexander Trofimov

XlsFormat - небольшая оптимизация (рефакторинг)

git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@67850 954022d7-b5bf-4e40-9824-e11837661b57
parent 3cf73152
...@@ -24,9 +24,9 @@ public: ...@@ -24,9 +24,9 @@ public:
static const ElementType type = typeArea; static const ElementType type = typeArea;
BIFF_BOOL fStacked; bool fStacked;
BIFF_BOOL f100; bool f100;
BIFF_BOOL fHasShadow; bool fHasShadow;
}; };
} // namespace XLS } // namespace XLS
......
...@@ -29,8 +29,9 @@ public: ...@@ -29,8 +29,9 @@ public:
LongRGB rgbBack; LongRGB rgbBack;
BIFF_WORD fls; BIFF_WORD fls;
BIFF_BOOL fAuto;
BIFF_BOOL fInvertNeg; bool fAuto;
bool fInvertNeg;
IcvChart icvFore; IcvChart icvFore;
IcvChart icvBack; IcvChart icvBack;
......
...@@ -24,10 +24,9 @@ public: ...@@ -24,10 +24,9 @@ public:
static const ElementType type = typeArray; static const ElementType type = typeArray;
Ref ref_; Ref ref_;
BIFF_BOOL fAlwaysCalc; ArrayParsedFormula formula;
ArrayParsedFormula formula; bool fAlwaysCalc;
}; };
typedef boost::shared_ptr<Array> ArrayPtr; typedef boost::shared_ptr<Array> ArrayPtr;
......
...@@ -24,12 +24,12 @@ public: ...@@ -24,12 +24,12 @@ public:
int serialize(std::wostream & _stream); int serialize(std::wostream & _stream);
BIFF_BOOL fShowValue; bool fShowValue;
BIFF_BOOL fShowPercent; bool fShowPercent;
BIFF_BOOL fShowLabelAndPerc; bool fShowLabelAndPerc;
BIFF_BOOL fShowLabel; bool fShowLabel;
BIFF_BOOL fShowBubbleSizes; bool fShowBubbleSizes;
BIFF_BOOL fShowSeriesName; bool fShowSeriesName;
//----------------------------- //-----------------------------
......
...@@ -58,6 +58,7 @@ void BOF::readFields(CFRecord& record) ...@@ -58,6 +58,7 @@ void BOF::readFields(CFRecord& record)
{ {
unsigned int flags; unsigned int flags;
record >> flags; record >> flags;
fWin = GETBIT(flags, 0); fWin = GETBIT(flags, 0);
fRisc = GETBIT(flags, 1); fRisc = GETBIT(flags, 1);
fBeta = GETBIT(flags, 2); fBeta = GETBIT(flags, 2);
...@@ -68,6 +69,7 @@ void BOF::readFields(CFRecord& record) ...@@ -68,6 +69,7 @@ void BOF::readFields(CFRecord& record)
fOOM = GETBIT(flags, 9); fOOM = GETBIT(flags, 9);
fGlJmp = GETBIT(flags, 10); fGlJmp = GETBIT(flags, 10);
fFontLimit = GETBIT(flags, 13); fFontLimit = GETBIT(flags, 13);
verXLHigh = static_cast<unsigned char>(GETBITS(flags, 14, 17)); verXLHigh = static_cast<unsigned char>(GETBITS(flags, 14, 17));
record >> verLowestBiff; record >> verLowestBiff;
......
...@@ -42,16 +42,18 @@ public: ...@@ -42,16 +42,18 @@ public:
BIFF_WORD dt; BIFF_WORD dt;
BIFF_WORD rupBuild; BIFF_WORD rupBuild;
BIFF_WORD rupYear; BIFF_WORD rupYear;
BIFF_BOOL fWin;
BIFF_BOOL fRisc; bool fWin;
BIFF_BOOL fBeta; bool fRisc;
BIFF_BOOL fWinAny; bool fBeta;
BIFF_BOOL fMacAny; bool fWinAny;
BIFF_BOOL fBetaAny; bool fMacAny;
BIFF_BOOL fRiscAny; bool fBetaAny;
BIFF_BOOL fOOM; bool fRiscAny;
BIFF_BOOL fGlJmp; bool fOOM;
BIFF_BOOL fFontLimit; bool fGlJmp;
bool fFontLimit;
BIFF_WORD verXLHigh; BIFF_WORD verXLHigh;
BIFF_BYTE verLowestBiff; BIFF_BYTE verLowestBiff;
BIFF_BYTE verLastXLSaved; BIFF_BYTE verLastXLSaved;
......
...@@ -28,7 +28,7 @@ public: ...@@ -28,7 +28,7 @@ public:
//----------------------------- //-----------------------------
BIFF_BYTE id; BIFF_BYTE id;
BIFF_BYTE rt; BIFF_BYTE rt;
BIFF_BOOL fUnlinkedIfmt; bool fUnlinkedIfmt;
IFmt ifmt; IFmt ifmt;
ChartParsedFormula formula; // ChartParsedFormula formula; //
......
...@@ -27,10 +27,10 @@ public: ...@@ -27,10 +27,10 @@ public:
BIFF_SHORT pcOverlap; BIFF_SHORT pcOverlap;
BIFF_WORD pcGap; BIFF_WORD pcGap;
BIFF_BOOL fTranspose; bool fTranspose;
BIFF_BOOL fStacked; bool fStacked;
BIFF_BOOL f100; bool f100;
BIFF_BOOL fHasShadow; bool fHasShadow;
//------------------------------------ //------------------------------------
BaseObjectPtr m_chart3D; BaseObjectPtr m_chart3D;
}; };
......
...@@ -57,10 +57,12 @@ void BookBool::readFields(CFRecord& record) ...@@ -57,10 +57,12 @@ void BookBool::readFields(CFRecord& record)
{ {
unsigned short flags; unsigned short flags;
record >> flags; record >> flags;
fNoSaveSup = GETBIT(flags, 0);
fHasEnvelope = GETBIT(flags, 2); fNoSaveSup = GETBIT(flags, 0);
fEnvelopeVisible = GETBIT(flags, 3); fHasEnvelope = GETBIT(flags, 2);
fEnvelopeInitDone = GETBIT(flags, 4); fEnvelopeVisible = GETBIT(flags, 3);
fEnvelopeInitDone = GETBIT(flags, 4);
unsigned char grUpdateLinks_num = GETBITS(flags, 5, 6); unsigned char grUpdateLinks_num = GETBITS(flags, 5, 6);
switch(grUpdateLinks_num) switch(grUpdateLinks_num)
{ {
...@@ -77,6 +79,7 @@ void BookBool::readFields(CFRecord& record) ...@@ -77,6 +79,7 @@ void BookBool::readFields(CFRecord& record)
throw;// EXCEPT::RT::WrongBiffRecord("Unsupported value of grUpdateLinks.", record.getTypeString()); throw;// EXCEPT::RT::WrongBiffRecord("Unsupported value of grUpdateLinks.", record.getTypeString());
} }
fHideBorderUnselLists = GETBIT(flags, 8); fHideBorderUnselLists = GETBIT(flags, 8);
} }
......
...@@ -23,13 +23,13 @@ public: ...@@ -23,13 +23,13 @@ public:
static const ElementType type = typeBookBool; static const ElementType type = typeBookBool;
//----------------------------- //-----------------------------
BIFF_BOOL fNoSaveSup; bool fNoSaveSup;
BIFF_BOOL fHasEnvelope; bool fHasEnvelope;
BIFF_BOOL fEnvelopeVisible; bool fEnvelopeVisible;
BIFF_BOOL fEnvelopeInitDone; bool fEnvelopeInitDone;
BIFF_BSTR grUpdateLinks; bool fHideBorderUnselLists;
BIFF_BOOL fHideBorderUnselLists;
BIFF_BSTR grUpdateLinks;
}; };
} // namespace XLS } // namespace XLS
......
...@@ -26,15 +26,16 @@ public: ...@@ -26,15 +26,16 @@ public:
//----------------------------- //-----------------------------
BIFF_DWORD cb; BIFF_DWORD cb;
BIFF_BOOL fDontAutoRecover;
BIFF_BOOL fHidePivotList; bool fDontAutoRecover;
BIFF_BOOL fFilterPrivacy; bool fHidePivotList;
BIFF_BOOL fEmbedFactoids; bool fFilterPrivacy;
bool fEmbedFactoids;
BIFF_BYTE mdFactoidDisplay; BIFF_BYTE mdFactoidDisplay;
BIFF_BOOL fSavedDuringRecovery; bool fSavedDuringRecovery;
BIFF_BOOL fCreatedViaMinimalSave; bool fCreatedViaMinimalSave;
BIFF_BOOL fOpenedViaDataRecovery; bool fOpenedViaDataRecovery;
BIFF_BOOL fOpenedViaSafeLoad; bool fOpenedViaSafeLoad;
BookExt_Conditional11 grbit1; BookExt_Conditional11 grbit1;
BookExt_Conditional12 grbit2; BookExt_Conditional12 grbit2;
......
...@@ -33,7 +33,8 @@ public: ...@@ -33,7 +33,8 @@ public:
BIFF_SHORT pcPie2Size; BIFF_SHORT pcPie2Size;
BIFF_SHORT pcGap; BIFF_SHORT pcGap;
BIFF_DOUBLE numSplitValue; BIFF_DOUBLE numSplitValue;
BIFF_BOOL fHasShadow;
bool fHasShadow;
BaseObjectPtr m_Custom; BaseObjectPtr m_Custom;
......
...@@ -36,6 +36,7 @@ void CF12::readFields(CFRecord& record) ...@@ -36,6 +36,7 @@ void CF12::readFields(CFRecord& record)
{ {
record >> frtRefHeader; record >> frtRefHeader;
record >> ct >> cp; record >> ct >> cp;
unsigned short cce1; unsigned short cce1;
unsigned short cce2; unsigned short cce2;
record >> cce1 >> cce2; record >> cce1 >> cce2;
...@@ -43,9 +44,11 @@ void CF12::readFields(CFRecord& record) ...@@ -43,9 +44,11 @@ void CF12::readFields(CFRecord& record)
rgce1.load(record, cce1); rgce1.load(record, cce1);
rgce2.load(record, cce2); rgce2.load(record, cce2);
fmlaActive.load(record); fmlaActive.load(record);
unsigned char flags; unsigned char flags;
record >> flags; record >> flags;
fStopIfTrue = GETBIT(flags, 1); fStopIfTrue = GETBIT(flags, 1);
record >> ipriority >> icfTemplate; record >> ipriority >> icfTemplate;
unsigned char cbTemplateParm; unsigned char cbTemplateParm;
record >> cbTemplateParm; record >> cbTemplateParm;
......
...@@ -35,31 +35,12 @@ public: ...@@ -35,31 +35,12 @@ public:
CFParsedFormulaNoCCE rgce1; CFParsedFormulaNoCCE rgce1;
CFParsedFormulaNoCCE rgce2; CFParsedFormulaNoCCE rgce2;
CFParsedFormula fmlaActive; CFParsedFormula fmlaActive;
BIFF_BOOL fStopIfTrue;
BIFF_WORD ipriority; BIFF_WORD ipriority;
BIFF_WORD icfTemplate; BIFF_WORD icfTemplate;
CFExTemplateParams rgbTemplateParms; CFExTemplateParams rgbTemplateParms;
BiffStructurePtr rgbCT; BiffStructurePtr rgbCT;
public: bool fStopIfTrue;
//BO_ATTRIB_MARKUP_BEGIN
//BO_ATTRIB_MARKUP_COMPLEX(frtRefHeader)
//BO_ATTRIB_MARKUP_ATTRIB(ct)
//BO_ATTRIB_MARKUP_ATTRIB(cp)
//BO_ATTRIB_MARKUP_COMPLEX(dxf)
//BO_ATTRIB_MARKUP_COMPLEX(rgce1)
//BO_ATTRIB_MARKUP_COMPLEX(rgce2)
//BO_ATTRIB_MARKUP_COMPLEX(fmlaActive)
//BO_ATTRIB_MARKUP_ATTRIB(fStopIfTrue)
//BO_ATTRIB_MARKUP_ATTRIB(ipriority)
//BO_ATTRIB_MARKUP_ATTRIB(icfTemplate)
//rgbTemplateParms.toXML(proc.getParent(), static_cast<unsigned char>(icfTemplate));
//if(rgbCT)
//{
// //BO_ATTRIB_MARKUP_COMPLEX(*rgbCT)
//}
//BO_ATTRIB_MARKUP_END
}; };
typedef boost::shared_ptr<CF12> CF12Ptr; typedef boost::shared_ptr<CF12> CF12Ptr;
......
...@@ -25,14 +25,7 @@ public: ...@@ -25,14 +25,7 @@ public:
//----------------------------- //-----------------------------
BIFF_WORD wOffset; BIFF_WORD wOffset;
BIFF_WORD at; BIFF_WORD at;
BIFF_BOOL cAutoCatLabelReal; bool cAutoCatLabelReal;
//BO_ATTRIB_MARKUP_BEGIN
//BO_ATTRIB_MARKUP_ATTRIB(wOffset)
//BO_ATTRIB_MARKUP_ATTRIB(at)
//BO_ATTRIB_MARKUP_ATTRIB(cAutoCatLabelReal)
//BO_ATTRIB_MARKUP_END
}; };
} // namespace XLS } // namespace XLS
......
...@@ -27,9 +27,9 @@ public: ...@@ -27,9 +27,9 @@ public:
BIFF_SHORT catLabel; BIFF_SHORT catLabel;
BIFF_SHORT catMark; BIFF_SHORT catMark;
BIFF_BOOL fBetween; bool fBetween;
BIFF_BOOL fMaxCross; bool fMaxCross;
BIFF_BOOL fReversed; bool fReversed;
}; };
} // namespace XLS } // namespace XLS
......
...@@ -30,11 +30,11 @@ public: ...@@ -30,11 +30,11 @@ public:
BIFF_SHORT pcDepth; BIFF_SHORT pcDepth;
BIFF_WORD pcGap; BIFF_WORD pcGap;
BIFF_BOOL fPerspective; bool fPerspective;
BIFF_BOOL fCluster; bool fCluster;
BIFF_BOOL f3DScaling; bool f3DScaling;
BIFF_BOOL fNotPieChart; bool fNotPieChart;
BIFF_BOOL fWalls2D; bool fWalls2D;
}; };
......
...@@ -24,7 +24,7 @@ public: ...@@ -24,7 +24,7 @@ public:
int serialize(std::wostream & _stream); int serialize(std::wostream & _stream);
//----------------------------- //-----------------------------
BIFF_BOOL fVaried; bool fVaried;
BIFF_WORD icrt; BIFF_WORD icrt;
}; };
......
...@@ -28,12 +28,12 @@ public: ...@@ -28,12 +28,12 @@ public:
BIFF_WORD coldx; BIFF_WORD coldx;
IXFCell ixfe; IXFCell ixfe;
BIFF_BOOL fHidden; bool fHidden;
BIFF_BOOL fUserSet; bool fUserSet;
BIFF_BOOL fBestFit; bool fBestFit;
BIFF_BOOL fPhonetic; bool fPhonetic;
BIFF_BYTE iOutLevel; BIFF_BYTE iOutLevel;
BIFF_BOOL fCollapsed; bool fCollapsed;
}; };
} // namespace XLS } // namespace XLS
......
...@@ -27,7 +27,7 @@ public: ...@@ -27,7 +27,7 @@ public:
//----------------------------- //-----------------------------
BIFF_WORD ccf; BIFF_WORD ccf;
BIFF_BOOL fToughRecalc; bool fToughRecalc;
BIFF_WORD nID; BIFF_WORD nID;
SqRefU sqref; SqRefU sqref;
BIFF_BSTR refBound; BIFF_BSTR refBound;
......
...@@ -23,7 +23,7 @@ public: ...@@ -23,7 +23,7 @@ public:
static const ElementType type = typeDVal; static const ElementType type = typeDVal;
//----------------------------- //-----------------------------
BIFF_BOOL fWnClosed; bool fWnClosed;
BIFF_DWORD xLeft; BIFF_DWORD xLeft;
BIFF_DWORD yTop; BIFF_DWORD yTop;
BIFF_LONG idObj; BIFF_LONG idObj;
......
...@@ -26,15 +26,9 @@ public: ...@@ -26,15 +26,9 @@ public:
//----------------------------- //-----------------------------
FrtRefHeaderU frtRefHeaderU; FrtRefHeaderU frtRefHeaderU;
BIFF_BOOL fNewBorder;
XFProps xfprops; XFProps xfprops;
public:
//BO_ATTRIB_MARKUP_BEGIN bool fNewBorder;
//BO_ATTRIB_MARKUP_COMPLEX(frtRefHeaderU)
//BO_ATTRIB_MARKUP_ATTRIB(fNewBorder)
//BO_ATTRIB_MARKUP_COMPLEX(xfprops)
//BO_ATTRIB_MARKUP_END
}; };
} // namespace XLS } // namespace XLS
......
...@@ -35,6 +35,7 @@ void Dat::readFields(CFRecord& record) ...@@ -35,6 +35,7 @@ void Dat::readFields(CFRecord& record)
{ {
unsigned short flags; unsigned short flags;
record >> flags; record >> flags;
fHasBordHorz = GETBIT(flags, 0); fHasBordHorz = GETBIT(flags, 0);
fHasBordVert = GETBIT(flags, 1); fHasBordVert = GETBIT(flags, 1);
fHasBordOutline = GETBIT(flags, 2); fHasBordOutline = GETBIT(flags, 2);
......
...@@ -23,18 +23,10 @@ public: ...@@ -23,18 +23,10 @@ public:
static const ElementType type = typeDat; static const ElementType type = typeDat;
//----------------------------- //-----------------------------
BIFF_BOOL fHasBordHorz; bool fHasBordHorz;
BIFF_BOOL fHasBordVert; bool fHasBordVert;
BIFF_BOOL fHasBordOutline; bool fHasBordOutline;
BIFF_BOOL fShowSeriesKey; bool fShowSeriesKey;
//BO_ATTRIB_MARKUP_BEGIN
//BO_ATTRIB_MARKUP_ATTRIB(fHasBordHorz)
//BO_ATTRIB_MARKUP_ATTRIB(fHasBordVert)
//BO_ATTRIB_MARKUP_ATTRIB(fHasBordOutline)
//BO_ATTRIB_MARKUP_ATTRIB(fShowSeriesKey)
//BO_ATTRIB_MARKUP_END
}; };
} // namespace XLS } // namespace XLS
......
...@@ -25,7 +25,8 @@ public: ...@@ -25,7 +25,8 @@ public:
BIFF_WORD xi; BIFF_WORD xi;
BIFF_WORD yi; BIFF_WORD yi;
BIFF_WORD iss; BIFF_WORD iss;
BIFF_BOOL fUnknown;
bool fUnknown;
}; };
} // namespace XLS } // namespace XLS
......
...@@ -25,11 +25,11 @@ public: ...@@ -25,11 +25,11 @@ public:
int serialize(std::wostream & _stream); int serialize(std::wostream & _stream);
BIFF_BOOL fSerName; bool fSerName;
BIFF_BOOL fCatName; bool fCatName;
BIFF_BOOL fValue; bool fValue;
BIFF_BOOL fPercent; bool fPercent;
BIFF_BOOL fBubSizes; bool fBubSizes;
XLUnicodeStringMin2 rgchSep; XLUnicodeStringMin2 rgchSep;
......
...@@ -45,10 +45,12 @@ void DefaultRowHeight::readFields(CFRecord& record) ...@@ -45,10 +45,12 @@ void DefaultRowHeight::readFields(CFRecord& record)
unsigned short flags; unsigned short flags;
record >> flags; record >> flags;
fUnsynced = GETBIT(flags, 0);
fDyZero = GETBIT(flags, 1); fUnsynced = GETBIT(flags, 0);
fExAsc = GETBIT(flags, 2); fDyZero = GETBIT(flags, 1);
fExDsc = GETBIT(flags, 3); fExAsc = GETBIT(flags, 2);
fExDsc = GETBIT(flags, 3);
if(!fDyZero) if(!fDyZero)
{ {
record >> miyRw; record >> miyRw;
......
...@@ -23,10 +23,11 @@ public: ...@@ -23,10 +23,11 @@ public:
static const ElementType type = typeDefaultRowHeight; static const ElementType type = typeDefaultRowHeight;
//----------------------------- //-----------------------------
BIFF_BOOL fUnsynced; bool fUnsynced;
BIFF_BOOL fDyZero; bool fDyZero;
BIFF_BOOL fExAsc; bool fExAsc;
BIFF_BOOL fExDsc; bool fExDsc;
BIFF_SHORT miyRw; // measured in twips (1/20 of of a printer's point) BIFF_SHORT miyRw; // measured in twips (1/20 of of a printer's point)
BIFF_SHORT miyRwHidden; BIFF_SHORT miyRwHidden;
......
...@@ -25,12 +25,12 @@ public: ...@@ -25,12 +25,12 @@ public:
//----------------------------- //-----------------------------
BIFF_BYTE valType; BIFF_BYTE valType;
BIFF_BYTE errStyle; BIFF_BYTE errStyle;
BIFF_BOOL fStrLookup; bool fStrLookup;
BIFF_BOOL fAllowBlank; bool fAllowBlank;
BIFF_BOOL fSuppressCombo; bool fSuppressCombo;
BIFF_BYTE mdImeMode; BIFF_BYTE mdImeMode;
BIFF_BOOL fShowInputMsg; bool fShowInputMsg;
BIFF_BOOL fShowErrorMsg; bool fShowErrorMsg;
BIFF_BYTE typOperator; BIFF_BYTE typOperator;
XLUnicodeString PromptTitle; XLUnicodeString PromptTitle;
......
...@@ -28,13 +28,13 @@ public: ...@@ -28,13 +28,13 @@ public:
static const ElementType type = typeExternName; static const ElementType type = typeExternName;
//----------------------------- //-----------------------------
BIFF_BOOL fBuiltIn; bool fBuiltIn;
BIFF_BOOL fWantAdvise; bool fWantAdvise;
BIFF_BOOL fWantPict; bool fWantPict;
BIFF_BOOL fOle; bool fOle;
BIFF_BOOL fOleLink; bool fOleLink;
BIFF_WORD cf; BIFF_WORD cf;
BIFF_BOOL fIcon; bool fIcon;
BiffStructurePtr body; BiffStructurePtr body;
//----------------------------- //-----------------------------
......
...@@ -25,32 +25,11 @@ public: ...@@ -25,32 +25,11 @@ public:
static const ElementType type = typeFeatHdr; static const ElementType type = typeFeatHdr;
//----------------------------- //-----------------------------
BIFF_BOOL is_contained_in_Globals; bool is_contained_in_Globals;
SharedFeatureType isf; SharedFeatureType isf;
BIFF_DWORD cbHdrData; BIFF_DWORD cbHdrData;
EnhancedProtection protection; EnhancedProtection protection;
OSHARED::PropertyBagStore prop; OSHARED::PropertyBagStore prop;
public:
//BO_ATTRIB_MARKUP_BEGIN
//BO_ATTRIB_MARKUP_ATTRIB(isf)
//BO_ATTRIB_MARKUP_ATTRIB(cbHdrData)
//if(cbHdrData)
//{
// switch(isf)
// {
// case SharedFeatureType::ISFPROTECTION:
// //BO_ATTRIB_MARKUP_COMPLEX(protection)
// break;
// case SharedFeatureType::ISFFACTOID:
// if(is_contained_in_Globals)
// {
// //BO_ATTRIB_MARKUP_COMPLEX(prop)
// }
// break;
// }
//}
//BO_ATTRIB_MARKUP_END
}; };
} // namespace XLS } // namespace XLS
......
...@@ -45,12 +45,13 @@ void Font::readFields(CFRecord& record) ...@@ -45,12 +45,13 @@ void Font::readFields(CFRecord& record)
unsigned short flags; unsigned short flags;
record >> dyHeight >> flags; record >> dyHeight >> flags;
fItalic = GETBIT(flags, 1);
fStrikeOut = GETBIT(flags, 3); fItalic = GETBIT(flags, 1);
fOutline = GETBIT(flags, 4); fStrikeOut = GETBIT(flags, 3);
fShadow = GETBIT(flags, 5); fOutline = GETBIT(flags, 4);
fCondense = GETBIT(flags, 6); fShadow = GETBIT(flags, 5);
fExtend = GETBIT(flags, 7); fCondense = GETBIT(flags, 6);
fExtend = GETBIT(flags, 7);
record >> icv >> bls >> sss >> uls >> bFamily >> bCharSet; record >> icv >> bls >> sss >> uls >> bFamily >> bCharSet;
record.skipNunBytes(1); record.skipNunBytes(1);
...@@ -94,7 +95,7 @@ int Font::serialize_rPr(std::wostream & stream, bool rtl, bool defRPr) ...@@ -94,7 +95,7 @@ int Font::serialize_rPr(std::wostream & stream, bool rtl, bool defRPr)
else else
CP_XML_ATTR(L"b", false); CP_XML_ATTR(L"b", false);
if ((fItalic.value()) && (fItalic)) if (fItalic)
{ {
CP_XML_ATTR(L"i", fItalic); CP_XML_ATTR(L"i", fItalic);
} }
...@@ -312,15 +313,15 @@ int Font::serialize_properties(std::wostream & stream, bool rPr) ...@@ -312,15 +313,15 @@ int Font::serialize_properties(std::wostream & stream, bool rPr)
} }
} }
if ((fCondense.value()) && (*fCondense.value())) if (fCondense)
{ {
CP_XML_NODE(L"condense") CP_XML_NODE(L"condense")
{ {
CP_XML_ATTR(L"val", (int)(*fCondense.value())); CP_XML_ATTR(L"val", 1);
} }
} }
if ((fExtend.value()) && (fExtend)) if (fExtend)
{ {
CP_XML_NODE(L"extend") CP_XML_NODE(L"extend")
{ {
...@@ -336,7 +337,7 @@ int Font::serialize_properties(std::wostream & stream, bool rPr) ...@@ -336,7 +337,7 @@ int Font::serialize_properties(std::wostream & stream, bool rPr)
} }
} }
if ((fItalic.value()) && (fItalic)) if (fItalic)
{ {
CP_XML_NODE(L"i") CP_XML_NODE(L"i")
{ {
...@@ -362,7 +363,7 @@ int Font::serialize_properties(std::wostream & stream, bool rPr) ...@@ -362,7 +363,7 @@ int Font::serialize_properties(std::wostream & stream, bool rPr)
} }
} }
if ((fOutline.value()) && (fOutline)) if (fOutline)
{ {
CP_XML_NODE(L"outline") CP_XML_NODE(L"outline")
{ {
...@@ -378,7 +379,7 @@ int Font::serialize_properties(std::wostream & stream, bool rPr) ...@@ -378,7 +379,7 @@ int Font::serialize_properties(std::wostream & stream, bool rPr)
// } // }
//} //}
if ((fShadow.value()) && (fShadow)) if (fShadow)
{ {
CP_XML_NODE(L"shadow") CP_XML_NODE(L"shadow")
{ {
...@@ -386,7 +387,7 @@ int Font::serialize_properties(std::wostream & stream, bool rPr) ...@@ -386,7 +387,7 @@ int Font::serialize_properties(std::wostream & stream, bool rPr)
} }
} }
if ((fStrikeOut.value()) && (fStrikeOut)) if (fStrikeOut)
{ {
CP_XML_NODE(L"strike") CP_XML_NODE(L"strike")
{ {
......
...@@ -35,12 +35,12 @@ public: ...@@ -35,12 +35,12 @@ public:
//----------------------------- //-----------------------------
BIFF_WORD dyHeight; // measured in twips (1/20 of of a printer's point) BIFF_WORD dyHeight; // measured in twips (1/20 of of a printer's point)
BIFF_BOOL fItalic; bool fItalic;
BIFF_BOOL fStrikeOut; bool fStrikeOut;
BIFF_BOOL fOutline; bool fOutline;
BIFF_BOOL fShadow; bool fShadow;
BIFF_BOOL fCondense; bool fCondense;
BIFF_BOOL fExtend; bool fExtend;
BIFF_WORD icv; BIFF_WORD icv;
BIFF_WORD bls; BIFF_WORD bls;
......
...@@ -29,9 +29,9 @@ public: ...@@ -29,9 +29,9 @@ public:
//----------------------------- //-----------------------------
Cell cell; Cell cell;
FormulaValue val; FormulaValue val;
BIFF_BOOL fAlwaysCalc; bool fAlwaysCalc;
BackwardOnlyParam<bool> fFill; BackwardOnlyParam<bool> fFill;
BIFF_BOOL fShrFmla; bool fShrFmla;
BackwardOnlyParam<bool> fClearErrors; BackwardOnlyParam<bool> fClearErrors;
CellParsedFormula formula; CellParsedFormula formula;
......
...@@ -24,8 +24,8 @@ public: ...@@ -24,8 +24,8 @@ public:
//----------------------------- //-----------------------------
BIFF_WORD frt; BIFF_WORD frt;
BIFF_BOOL fAutoSize; bool fAutoSize;
BIFF_BOOL fAutoPosition; bool fAutoPosition;
}; };
......
...@@ -23,16 +23,10 @@ public: ...@@ -23,16 +23,10 @@ public:
static const ElementType type = typeHFPicture; static const ElementType type = typeHFPicture;
//----------------------------- //-----------------------------
BIFF_BOOL fIsDrawing; bool fIsDrawing;
BIFF_BOOL fIsDrawingGroup; bool fIsDrawingGroup;
BIFF_BOOL fContinue; bool fContinue;
//OfficeArtDgContainer rgDrawing; //OfficeArtDgContainer rgDrawing;
public:
//BO_ATTRIB_MARKUP_BEGIN
//BO_ATTRIB_MARKUP_ATTRIB(fIsDrawing)
//BO_ATTRIB_MARKUP_ATTRIB(fIsDrawingGroup)
//BO_ATTRIB_MARKUP_ATTRIB(fContinue)
//BO_ATTRIB_MARKUP_END
}; };
......
...@@ -25,10 +25,10 @@ public: ...@@ -25,10 +25,10 @@ public:
//----------------------------- //-----------------------------
BIFF_BSTR guidSView; BIFF_BSTR guidSView;
BIFF_BOOL fHFDiffOddEven; bool fHFDiffOddEven;
BIFF_BOOL fHFDiffFirst; bool fHFDiffFirst;
BIFF_BOOL fHFScaleWithDoc; bool fHFScaleWithDoc;
BIFF_BOOL fHFAlignMargins; bool fHFAlignMargins;
BIFF_WORD cchHeaderEven; BIFF_WORD cchHeaderEven;
BIFF_WORD cchFooterEven; BIFF_WORD cchFooterEven;
BIFF_WORD cchHeaderFirst; BIFF_WORD cchHeaderFirst;
......
...@@ -131,15 +131,17 @@ void Lbl::readFields(CFRecord& record) ...@@ -131,15 +131,17 @@ void Lbl::readFields(CFRecord& record)
{ {
unsigned short flags; unsigned short flags;
record >> flags >> chKey; record >> flags >> chKey;
fHidden = GETBIT(flags, 0);
fFunc = GETBIT(flags, 1); fHidden = GETBIT(flags, 0);
fOB = GETBIT(flags, 2); fFunc = GETBIT(flags, 1);
fProc = GETBIT(flags, 3); fOB = GETBIT(flags, 2);
fCalcExp = GETBIT(flags, 4); fProc = GETBIT(flags, 3);
fBuiltin = GETBIT(flags, 5); fCalcExp = GETBIT(flags, 4);
fGrp = GETBITS(flags, 6, 11); fBuiltin = GETBIT(flags, 5);
fPublished = GETBIT(flags, 13); fGrp = GETBITS(flags, 6, 11);
fWorkbookParam = GETBIT(flags, 14); fPublished = GETBIT(flags, 13);
fWorkbookParam = GETBIT(flags, 14);
unsigned char cch; unsigned char cch;
unsigned short cce; unsigned short cce;
record >> cch >> cce; record >> cch >> cce;
......
...@@ -28,15 +28,15 @@ public: ...@@ -28,15 +28,15 @@ public:
const XLUnicodeStringNoCch getName() const; const XLUnicodeStringNoCch getName() const;
//----------------------------- //-----------------------------
BIFF_BOOL fHidden; bool fHidden;
BIFF_BOOL fFunc; bool fFunc;
BIFF_BOOL fOB; bool fOB;
BIFF_BOOL fProc; bool fProc;
BIFF_BOOL fCalcExp; bool fCalcExp;
BIFF_BOOL fBuiltin; bool fBuiltin;
BIFF_BYTE fGrp; BIFF_BYTE fGrp;
BIFF_BOOL fPublished; bool fPublished;
BIFF_BOOL fWorkbookParam; bool fWorkbookParam;
BIFF_BYTE chKey; BIFF_BYTE chKey;
BIFF_WORD itab; BIFF_WORD itab;
XLUnicodeStringNoCch Name_bin; XLUnicodeStringNoCch Name_bin;
......
...@@ -31,11 +31,11 @@ public: ...@@ -31,11 +31,11 @@ public:
BIFF_DWORD dy; BIFF_DWORD dy;
BIFF_BYTE wSpace; BIFF_BYTE wSpace;
BIFF_BOOL fAutoPosition; bool fAutoPosition;
BIFF_BOOL fAutoPosX; bool fAutoPosX;
BIFF_BOOL fAutoPosY; bool fAutoPosY;
BIFF_BOOL fVert; bool fVert;
BIFF_BOOL fWasDataTable; bool fWasDataTable;
}; };
......
...@@ -21,8 +21,8 @@ public: ...@@ -21,8 +21,8 @@ public:
void readFields(CFRecord& record); void readFields(CFRecord& record);
BIFF_WORD iss; BIFF_WORD iss;
BIFF_BOOL fDelete; bool fDelete;
BIFF_BOOL fLabel; bool fLabel;
int serialize(std::wostream & _stream); int serialize(std::wostream & _stream);
......
...@@ -25,9 +25,9 @@ public: ...@@ -25,9 +25,9 @@ public:
int serialize(std::wostream & _stream); int serialize(std::wostream & _stream);
//----------------------------- //-----------------------------
BIFF_BOOL fStacked; bool fStacked;
BIFF_BOOL f100; bool f100;
BIFF_BOOL fHasShadow; bool fHasShadow;
}; };
......
...@@ -26,9 +26,9 @@ public: ...@@ -26,9 +26,9 @@ public:
LongRGB rgb; LongRGB rgb;
BIFF_WORD lns; BIFF_WORD lns;
BIFF_WORD we; BIFF_WORD we;
BIFF_BOOL fAuto; bool fAuto;
BIFF_BOOL fAxisOn; bool fAxisOn;
BIFF_BOOL fAutoCo; bool fAutoCo;
IcvChart icv; IcvChart icv;
}; };
......
...@@ -21,32 +21,32 @@ public: ...@@ -21,32 +21,32 @@ public:
void writeFields(CFRecord& record); void writeFields(CFRecord& record);
void readFields(CFRecord& record); void readFields(CFRecord& record);
//----------------------------- //-----------------------------
BIFF_BOOL fGhostRow; bool fGhostRow;
BIFF_BOOL fGhostCol; bool fGhostCol;
BIFF_BOOL fEdit; bool fEdit;
BIFF_BOOL fDelete; bool fDelete;
BIFF_BOOL fCopy; bool fCopy;
BIFF_BOOL fPasteAll; bool fPasteAll;
BIFF_BOOL fPasteFormulas; bool fPasteFormulas;
BIFF_BOOL fPasteValues; bool fPasteValues;
BIFF_BOOL fPasteFormats; bool fPasteFormats;
BIFF_BOOL fPasteComments; bool fPasteComments;
BIFF_BOOL fPasteDataValidation; bool fPasteDataValidation;
BIFF_BOOL fPasteBorders; bool fPasteBorders;
BIFF_BOOL fPasteColWidths; bool fPasteColWidths;
BIFF_BOOL fPasteNumberFormats; bool fPasteNumberFormats;
BIFF_BOOL fMerge; bool fMerge;
BIFF_BOOL fSplitFirst; bool fSplitFirst;
BIFF_BOOL fSplitAll; bool fSplitAll;
BIFF_BOOL fRowColShift; bool fRowColShift;
BIFF_BOOL fClearAll; bool fClearAll;
BIFF_BOOL fClearFormats; bool fClearFormats;
BIFF_BOOL fClearContents; bool fClearContents;
BIFF_BOOL fClearComments; bool fClearComments;
BIFF_BOOL fAssign; bool fAssign;
BIFF_BOOL fCoerce; bool fCoerce;
BIFF_BOOL fAdjust; bool fAdjust;
BIFF_BOOL fCellMeta; bool fCellMeta;
LPWideString stName; LPWideString stName;
......
...@@ -27,9 +27,9 @@ public: ...@@ -27,9 +27,9 @@ public:
LongRGB rgbBack; LongRGB rgbBack;
BIFF_WORD imk; BIFF_WORD imk;
BIFF_BOOL fAuto; bool fAuto;
BIFF_BOOL fNotShowInt; bool fNotShowInt;
BIFF_BOOL fNotShowBrd; bool fNotShowBrd;
IcvChart icvFore; IcvChart icvFore;
IcvChart icvBack; IcvChart icvBack;
......
...@@ -24,8 +24,8 @@ public: ...@@ -24,8 +24,8 @@ public:
static const ElementType type = typeNamePublish; static const ElementType type = typeNamePublish;
//----------------------------- //-----------------------------
BIFF_BOOL fPublished; bool fPublished;
BIFF_BOOL fWorkbookParam; bool fWorkbookParam;
XLNameUnicodeString strName; XLNameUnicodeString strName;
public: public:
//BO_ATTRIB_MARKUP_BEGIN //BO_ATTRIB_MARKUP_BEGIN
......
...@@ -25,7 +25,7 @@ public: ...@@ -25,7 +25,7 @@ public:
static const ElementType type = typeNote; static const ElementType type = typeNote;
//----------------------------- //-----------------------------
// BIFF_BOOL is_contained_in_Workbook_; // bool is_contained_in_Workbook_;
NoteSh note_sh; NoteSh note_sh;
// NoteRR note_rr; // NoteRR note_rr;
......
...@@ -24,9 +24,9 @@ public: ...@@ -24,9 +24,9 @@ public:
//----------------------------- //-----------------------------
BIFF_WORD wScalePLV; BIFF_WORD wScalePLV;
BIFF_BOOL fPageLayoutView; bool fPageLayoutView;
BIFF_BOOL fRulerVisible; bool fRulerVisible;
BIFF_BOOL fWhitespaceHidden; bool fWhitespaceHidden;
public: public:
//BO_ATTRIB_MARKUP_BEGIN //BO_ATTRIB_MARKUP_BEGIN
//BO_ATTRIB_MARKUP_ATTRIB(wScalePLV) //BO_ATTRIB_MARKUP_ATTRIB(wScalePLV)
......
...@@ -27,8 +27,8 @@ public: ...@@ -27,8 +27,8 @@ public:
//----------------------------- //-----------------------------
BIFF_WORD anStart; BIFF_WORD anStart;
BIFF_WORD pcDonut; BIFF_WORD pcDonut;
BIFF_BOOL fHasShadow; bool fHasShadow;
BIFF_BOOL fShowLdrLines; bool fShowLdrLines;
}; };
} // namespace XLS } // namespace XLS
......
...@@ -23,7 +23,7 @@ public: ...@@ -23,7 +23,7 @@ public:
static const ElementType type = typePrintGrid; static const ElementType type = typePrintGrid;
//----------------------------- //-----------------------------
BIFF_BOOL fPrintGrid; bool fPrintGrid;
public: public:
//BO_ATTRIB_MARKUP_BEGIN //BO_ATTRIB_MARKUP_BEGIN
//BO_ATTRIB_MARKUP_ATTRIB(fPrintGrid) //BO_ATTRIB_MARKUP_ATTRIB(fPrintGrid)
......
...@@ -25,8 +25,8 @@ public: ...@@ -25,8 +25,8 @@ public:
int serialize(std::wostream & _stream); int serialize(std::wostream & _stream);
//----------------------------- //-----------------------------
BIFF_BOOL fRdrAxLab; bool fRdrAxLab;
BIFF_BOOL fHasShadow; bool fHasShadow;
}; };
} // namespace XLS } // namespace XLS
......
...@@ -25,8 +25,8 @@ public: ...@@ -25,8 +25,8 @@ public:
int serialize(std::wostream & _stream); int serialize(std::wostream & _stream);
//----------------------------- //-----------------------------
BIFF_BOOL fRdrAxLab; bool fRdrAxLab;
BIFF_BOOL fHasShadow; bool fHasShadow;
}; };
} // namespace XLS } // namespace XLS
......
...@@ -29,15 +29,15 @@ public: ...@@ -29,15 +29,15 @@ public:
BIFF_WORD miyRw; BIFF_WORD miyRw;
BIFF_BYTE iOutLevel; BIFF_BYTE iOutLevel;
BIFF_BOOL fCollapsed; bool fCollapsed;
BIFF_BOOL fDyZero; bool fDyZero;
BIFF_BOOL fUnsynced; bool fUnsynced;
BIFF_BOOL fGhostDirty; bool fGhostDirty;
BIFF_WORD ixfe_val; BIFF_WORD ixfe_val;
BIFF_BOOL fExAsc; bool fExAsc;
BIFF_BOOL fExDes; bool fExDes;
BIFF_BOOL fPhonetic; bool fPhonetic;
BackwardOnlyParam<unsigned int> in_block_position; BackwardOnlyParam<unsigned int> in_block_position;
}; };
......
...@@ -27,9 +27,9 @@ public: ...@@ -27,9 +27,9 @@ public:
//----------------------------- //-----------------------------
BIFF_WORD pcBubbleSizeRatio; BIFF_WORD pcBubbleSizeRatio;
BIFF_WORD wBubbleSize; BIFF_WORD wBubbleSize;
BIFF_BOOL fBubbles; bool fBubbles;
BIFF_BOOL fShowNegBubbles; bool fShowNegBubbles;
BIFF_BOOL fHasShadow; bool fHasShadow;
}; };
......
...@@ -23,9 +23,9 @@ public: ...@@ -23,9 +23,9 @@ public:
static const ElementType type = typeSerFmt; static const ElementType type = typeSerFmt;
//----------------------------- //-----------------------------
BIFF_BOOL fSmoothedLine; bool fSmoothedLine;
BIFF_BOOL f3DBubbles; bool f3DBubbles;
BIFF_BOOL fArShadow; bool fArShadow;
}; };
} // namespace XLS } // namespace XLS
......
...@@ -29,15 +29,15 @@ public: ...@@ -29,15 +29,15 @@ public:
BIFF_WORD iFitWidth; BIFF_WORD iFitWidth;
BIFF_WORD iFitHeight; BIFF_WORD iFitHeight;
BIFF_BOOL fLeftToRight; bool fLeftToRight;
BIFF_BOOL fPortrait; bool fPortrait;
BIFF_BOOL fNoPls; bool fNoPls;
BIFF_BOOL fNoColor; bool fNoColor;
BIFF_BOOL fDraft; bool fDraft;
BIFF_BOOL fNotes; bool fNotes;
BIFF_BOOL fNoOrient; bool fNoOrient;
BIFF_BOOL fUsePage; bool fUsePage;
BIFF_BOOL fEndNotes; bool fEndNotes;
BIFF_BYTE iErrors; BIFF_BYTE iErrors;
BIFF_WORD iRes; BIFF_WORD iRes;
......
...@@ -26,7 +26,7 @@ void ShtProps::writeFields(CFRecord& record) ...@@ -26,7 +26,7 @@ void ShtProps::writeFields(CFRecord& record)
SETBIT(flags, 0, fManSerAlloc); SETBIT(flags, 0, fManSerAlloc);
SETBIT(flags, 1, fPlotVisOnly); SETBIT(flags, 1, fPlotVisOnly);
SETBIT(flags, 2, fNotSizeWith); SETBIT(flags, 2, fNotSizeWith);
BIFF_BOOL fManPlotArea = fAlwaysAutoPlotArea; bool fManPlotArea = fAlwaysAutoPlotArea;
SETBIT(flags, 3, fManPlotArea); SETBIT(flags, 3, fManPlotArea);
SETBIT(flags, 4, fAlwaysAutoPlotArea); SETBIT(flags, 4, fAlwaysAutoPlotArea);
record << flags << mdBlank; record << flags << mdBlank;
......
...@@ -23,11 +23,11 @@ public: ...@@ -23,11 +23,11 @@ public:
static const ElementType type = typeShtProps; static const ElementType type = typeShtProps;
//----------------------------- //-----------------------------
BIFF_BOOL fManSerAlloc; bool fManSerAlloc;
BIFF_BOOL fManPlotArea; bool fManPlotArea;
BIFF_BOOL fPlotVisOnly; bool fPlotVisOnly;
BIFF_BOOL fNotSizeWith; bool fNotSizeWith;
BIFF_BOOL fAlwaysAutoPlotArea; bool fAlwaysAutoPlotArea;
BIFF_BYTE mdBlank; BIFF_BYTE mdBlank;
}; };
......
...@@ -25,13 +25,13 @@ public: ...@@ -25,13 +25,13 @@ public:
//----------------------------- //-----------------------------
BIFF_BOOL fCol; bool fCol;
BIFF_BOOL fKey1Dsc; bool fKey1Dsc;
BIFF_BOOL fKey2Dsc; bool fKey2Dsc;
BIFF_BOOL fKey3Dsc; bool fKey3Dsc;
BIFF_BOOL fCaseSensitive; bool fCaseSensitive;
BIFF_SHORT iOrder; BIFF_SHORT iOrder;
BIFF_BOOL fAltMethod; bool fAltMethod;
XLUnicodeStringNoCch stKey1; XLUnicodeStringNoCch stKey1;
XLUnicodeStringNoCch stKey2; XLUnicodeStringNoCch stKey2;
......
...@@ -25,9 +25,9 @@ public: ...@@ -25,9 +25,9 @@ public:
static const ElementType type = typeSortData; static const ElementType type = typeSortData;
//----------------------------- //-----------------------------
BIFF_BOOL fCol; bool fCol;
BIFF_BOOL fCaseSensitive; bool fCaseSensitive;
BIFF_BOOL fAltMethod; bool fAltMethod;
BIFF_BYTE sfp; BIFF_BYTE sfp;
BIFF_BSTR rfx; BIFF_BSTR rfx;
......
...@@ -41,8 +41,10 @@ void Style::readFields(CFRecord& record) ...@@ -41,8 +41,10 @@ void Style::readFields(CFRecord& record)
{ {
unsigned short flags; unsigned short flags;
record >> flags; record >> flags;
ixfe = GETBITS(flags, 0, 11);
fBuiltIn = GETBIT(flags, 15); ixfe = GETBITS(flags, 0, 11);
fBuiltIn = GETBIT(flags, 15);
if(fBuiltIn) if(fBuiltIn)
{ {
record >> builtInData; record >> builtInData;
......
...@@ -26,11 +26,11 @@ public: ...@@ -26,11 +26,11 @@ public:
int serialize(std::wostream & stream); int serialize(std::wostream & stream);
//----------------------------- //-----------------------------
BIFF_WORD ixfe; BIFF_WORD ixfe;
BIFF_BOOL fBuiltIn;
BuiltInStyle builtInData; BuiltInStyle builtInData;
XLUnicodeString user; XLUnicodeString user;
bool fBuiltIn;
}; };
} // namespace XLS } // namespace XLS
......
...@@ -28,9 +28,9 @@ public: ...@@ -28,9 +28,9 @@ public:
int serialize(std::wostream & stream); int serialize(std::wostream & stream);
//----------------------------- //-----------------------------
BIFF_BOOL fBuiltIn; bool fBuiltIn;
BIFF_BOOL fHidden; bool fHidden;
BIFF_BOOL fCustom; bool fCustom;
BIFF_BYTE iCategory; BIFF_BYTE iCategory;
BuiltInStyle builtInData; BuiltInStyle builtInData;
LPWideString stName; LPWideString stName;
......
...@@ -25,8 +25,8 @@ public: ...@@ -25,8 +25,8 @@ public:
int serialize(std::wostream & _stream); int serialize(std::wostream & _stream);
//----------------------------- //-----------------------------
BIFF_BOOL fFillSurface; bool fFillSurface;
BIFF_BOOL f3DPhongShade; bool f3DPhongShade;
}; };
} // namespace XLS } // namespace XLS
......
...@@ -26,11 +26,11 @@ public: ...@@ -26,11 +26,11 @@ public:
//----------------------------- //-----------------------------
Ref ref_; Ref ref_;
BIFF_BOOL fAlwaysCalc; bool fAlwaysCalc;
BIFF_BOOL fRw; bool fRw;
BIFF_BOOL fTbl2; bool fTbl2;
BIFF_BOOL fDeleted1; bool fDeleted1;
BIFF_BOOL fDeleted2; bool fDeleted2;
BIFF_BSTR r1; BIFF_BSTR r1;
BIFF_BSTR r2; BIFF_BSTR r2;
......
...@@ -24,8 +24,8 @@ public: ...@@ -24,8 +24,8 @@ public:
static const ElementType type = typeTableStyle; static const ElementType type = typeTableStyle;
//----------------------------- //-----------------------------
BIFF_BOOL fIsPivot; bool fIsPivot;
BIFF_BOOL fIsTable; bool fIsTable;
BIFF_DWORD ctse; BIFF_DWORD ctse;
LPWideStringNoCch rgchName; LPWideStringNoCch rgchName;
......
...@@ -34,17 +34,17 @@ public: ...@@ -34,17 +34,17 @@ public:
BIFF_LONG dx; BIFF_LONG dx;
BIFF_LONG dy; BIFF_LONG dy;
BIFF_BOOL fAutoColor; bool fAutoColor;
BIFF_BOOL fShowKey; bool fShowKey;
BIFF_BOOL fShowValue; bool fShowValue;
BIFF_BOOL fAutoText; bool fAutoText;
BIFF_BOOL fGenerated; bool fGenerated;
BIFF_BOOL fDeleted; bool fDeleted;
BIFF_BOOL fAutoMode; bool fAutoMode;
BIFF_BOOL fShowLabelAndPerc; bool fShowLabelAndPerc;
BIFF_BOOL fShowPercent; bool fShowPercent;
BIFF_BOOL fShowBubbleSizes; bool fShowBubbleSizes;
BIFF_BOOL fShowLabel; bool fShowLabel;
Icv icvText; Icv icvText;
BIFF_BYTE dlp; BIFF_BYTE dlp;
......
...@@ -32,10 +32,10 @@ public: ...@@ -32,10 +32,10 @@ public:
BIFF_BYTE wBkgMode; BIFF_BYTE wBkgMode;
LongRGB rgb; LongRGB rgb;
BIFF_BOOL fAutoCo; bool fAutoCo;
BIFF_BOOL fAutoMode; bool fAutoMode;
BIFF_BYTE rot; BIFF_BYTE rot;
BIFF_BOOL fAutoRot; bool fAutoRot;
BIFF_BYTE iReadingOrder; BIFF_BYTE iReadingOrder;
Icv icv; Icv icv;
......
...@@ -32,22 +32,22 @@ public: ...@@ -32,22 +32,22 @@ public:
BIFF_DWORD dy; BIFF_DWORD dy;
BIFF_WORD wTabRatio; BIFF_WORD wTabRatio;
BIFF_BOOL fDspFmlaBar; bool fDspFmlaBar;
BIFF_BOOL fDspStatus; bool fDspStatus;
BIFF_BSTR mdNoteDisp; BIFF_BSTR mdNoteDisp;
BIFF_BOOL fDspHScroll; bool fDspHScroll;
BIFF_BOOL fDspVScroll; bool fDspVScroll;
BIFF_BOOL fBotAdornment; bool fBotAdornment;
BIFF_BOOL fZoom; bool fZoom;
BIFF_BSTR fHideObj; BIFF_BSTR fHideObj;
BIFF_BOOL fPrintIncl; bool fPrintIncl;
BIFF_BOOL fRowColIncl; bool fRowColIncl;
BIFF_BOOL fInvalidTabId; bool fInvalidTabId;
BIFF_BOOL fTimedUpdate; bool fTimedUpdate;
BIFF_BOOL fAllMemChanges; bool fAllMemChanges;
BIFF_BOOL fOnlySync; bool fOnlySync;
BIFF_BOOL fPersonalView; bool fPersonalView;
BIFF_BOOL fIconic; bool fIconic;
BIFF_WORD wMergeInterval; BIFF_WORD wMergeInterval;
XLUnicodeString st; XLUnicodeString st;
......
...@@ -30,32 +30,32 @@ public: ...@@ -30,32 +30,32 @@ public:
Icv icvHdr; Icv icvHdr;
PaneType pnnSel; PaneType pnnSel;
BIFF_BOOL fShowBrks; bool fShowBrks;
BIFF_BOOL fDspFmlaSv; bool fDspFmlaSv;
BIFF_BOOL fDspGridSv; bool fDspGridSv;
BIFF_BOOL fDspRwColSv; bool fDspRwColSv;
BIFF_BOOL fDspGutsSv; bool fDspGutsSv;
BIFF_BOOL fDspZerosSv; bool fDspZerosSv;
BIFF_BOOL fHorizontal; bool fHorizontal;
BIFF_BOOL fVertical; bool fVertical;
BIFF_BOOL fPrintRwCol; bool fPrintRwCol;
BIFF_BOOL fPrintGrid; bool fPrintGrid;
BIFF_BOOL fFitToPage; bool fFitToPage;
BIFF_BOOL fPrintArea; bool fPrintArea;
BIFF_BOOL fOnePrintArea; bool fOnePrintArea;
BIFF_BOOL fFilterMode; bool fFilterMode;
BIFF_BOOL fEzFilter; bool fEzFilter;
BIFF_BOOL fFrozen; bool fFrozen;
BIFF_BOOL fFrozenNoSplit; bool fFrozenNoSplit;
BIFF_BOOL fSplitV; bool fSplitV;
BIFF_BOOL fSplitH; bool fSplitH;
BIFF_BOOL fHiddenRw; bool fHiddenRw;
BIFF_BOOL fHiddenCol; bool fHiddenCol;
BIFF_BOOL fFilterUnique; bool fFilterUnique;
BIFF_BOOL fSheetLayoutView; bool fSheetLayoutView;
BIFF_BOOL fPageLayoutView; bool fPageLayoutView;
BIFF_BOOL fRuler; bool fRuler;
BIFF_BSTR ref8TopLeft; BIFF_BSTR ref8TopLeft;
BIFF_DOUBLE operNumX; BIFF_DOUBLE operNumX;
......
...@@ -27,13 +27,13 @@ public: ...@@ -27,13 +27,13 @@ public:
BIFF_SHORT yWn; BIFF_SHORT yWn;
BIFF_SHORT dxWn; BIFF_SHORT dxWn;
BIFF_SHORT dyWn; BIFF_SHORT dyWn;
BIFF_BOOL fHidden; bool fHidden;
BIFF_BOOL fIconic; bool fIconic;
BIFF_BOOL fVeryHidden; bool fVeryHidden;
BIFF_BOOL fDspHScroll; bool fDspHScroll;
BIFF_BOOL fDspVScroll; bool fDspVScroll;
BIFF_BOOL fBotAdornment; bool fBotAdornment;
BIFF_BOOL fNoAFDateGroup; bool fNoAFDateGroup;
BIFF_WORD itabCur; BIFF_WORD itabCur;
BIFF_WORD itabFirst; BIFF_WORD itabFirst;
BIFF_WORD ctabSel; BIFF_WORD ctabSel;
......
...@@ -24,18 +24,18 @@ public: ...@@ -24,18 +24,18 @@ public:
static const ElementType type = typeWindow2; static const ElementType type = typeWindow2;
//----------------------------- //-----------------------------
BIFF_BOOL fDspFmlaRt; bool fDspFmlaRt;
BIFF_BOOL fDspGridRt; bool fDspGridRt;
BIFF_BOOL fDspRwColRt; bool fDspRwColRt;
BIFF_BOOL fFrozenRt; bool fFrozenRt;
BIFF_BOOL fDspZerosRt; bool fDspZerosRt;
BIFF_BOOL fDefaultHdr; bool fDefaultHdr;
BIFF_BOOL fRightToLeft; bool fRightToLeft;
BIFF_BOOL fDspGuts; bool fDspGuts;
BIFF_BOOL fFrozenNoSplit; bool fFrozenNoSplit;
BIFF_BOOL fSelected; bool fSelected;
BIFF_BOOL fPaged; bool fPaged;
BIFF_BOOL fSLV; bool fSLV;
bool is_contained_in_chart_substream; bool is_contained_in_chart_substream;
......
...@@ -23,17 +23,17 @@ public: ...@@ -23,17 +23,17 @@ public:
static const ElementType type = typeWsBool; static const ElementType type = typeWsBool;
//----------------------------- //-----------------------------
BIFF_BOOL fShowAutoBreaks; bool fShowAutoBreaks;
BIFF_BOOL fDialog; bool fDialog;
BIFF_BOOL fApplyStyles; bool fApplyStyles;
BIFF_BOOL fRowSumsBelow; bool fRowSumsBelow;
BIFF_BOOL fColSumsRight; bool fColSumsRight;
BIFF_BOOL fFitToPage; bool fFitToPage;
BIFF_BOOL fDspGuts; bool fDspGuts;
BIFF_BOOL fSyncHoriz; bool fSyncHoriz;
BIFF_BOOL fSyncVert; bool fSyncVert;
BIFF_BOOL fAltExprEval; bool fAltExprEval;
BIFF_BOOL fAltFormulaEntry; bool fAltFormulaEntry;
}; };
......
...@@ -25,7 +25,7 @@ public: ...@@ -25,7 +25,7 @@ public:
//----------------------------- //-----------------------------
BIFF_WORD ccrn; BIFF_WORD ccrn;
BIFF_WORD itab; BIFF_WORD itab;
BIFF_BOOL itab_exist; bool itab_exist;
//if(itab_exist) //if(itab_exist)
//{ //{
......
...@@ -30,14 +30,16 @@ public: ...@@ -30,14 +30,16 @@ public:
//----------------------------- //-----------------------------
FontIndex ifnt; FontIndex ifnt;
BIFF_WORD ifmt; BIFF_WORD ifmt;
BIFF_BOOL fLocked;
BIFF_BOOL fHidden; BIFF_WORD ixfParent;
BIFF_BOOL fStyle; CellXF cell;
BIFF_BOOL f123Prefix; StyleXF style;
BIFF_WORD ixfParent;
bool fLocked;
CellXF cell; bool fHidden;
StyleXF style; bool fStyle;
bool f123Prefix;
}; };
} // namespace XLS } // namespace XLS
......
...@@ -49,7 +49,6 @@ typedef BiffAttributeSimple<_UINT16> BIFF_WORD; ...@@ -49,7 +49,6 @@ typedef BiffAttributeSimple<_UINT16> BIFF_WORD;
typedef BiffAttributeSimple<_INT16> BIFF_SHORT; typedef BiffAttributeSimple<_INT16> BIFF_SHORT;
typedef BiffAttributeSimple<_UINT32> BIFF_DWORD; typedef BiffAttributeSimple<_UINT32> BIFF_DWORD;
typedef BiffAttributeSimple<_INT32> BIFF_LONG; typedef BiffAttributeSimple<_INT32> BIFF_LONG;
typedef BiffAttributeSimple<bool> BIFF_BOOL;
typedef BiffAttributeSimple<double> BIFF_DOUBLE; typedef BiffAttributeSimple<double> BIFF_DOUBLE;
typedef BiffAttributeSimple<std::wstring> BIFF_BSTR; typedef BiffAttributeSimple<std::wstring> BIFF_BSTR;
......
...@@ -130,9 +130,9 @@ int CELL_GROUP::serialize(std::wostream & stream) ...@@ -130,9 +130,9 @@ int CELL_GROUP::serialize(std::wostream & stream)
if (row->rw + 1 == current_row_number) if (row->rw + 1 == current_row_number)
{ {
bool xf_set = true; bool xf_set = true;
if ((row->fGhostDirty.value()) && ( *row->fGhostDirty.value()== false)) xf_set = false; if (row->fGhostDirty == false) xf_set = false;
if (row->ixfe_val.value() && xf_set) if (row->ixfe_val && xf_set)
{ {
if (row->ixfe_val > cellStyleXfs_count) if (row->ixfe_val > cellStyleXfs_count)
{ {
...@@ -153,15 +153,15 @@ int CELL_GROUP::serialize(std::wostream & stream) ...@@ -153,15 +153,15 @@ int CELL_GROUP::serialize(std::wostream & stream)
{ {
CP_XML_ATTR(L"outlineLevel", row->iOutLevel); CP_XML_ATTR(L"outlineLevel", row->iOutLevel);
} }
if ((row->fCollapsed.value()) && (row->fCollapsed)) if (row->fCollapsed)
{ {
CP_XML_ATTR(L"collapsed", row->fCollapsed); CP_XML_ATTR(L"collapsed", row->fCollapsed);
} }
if ((row->fExAsc.value()) && (row->fExAsc)) if (row->fExAsc)
{ {
CP_XML_ATTR(L"thickTop", true); CP_XML_ATTR(L"thickTop", true);
} }
if ((row->fExDes.value()) && (row->fExDes)) if (row->fExDes)
{ {
CP_XML_ATTR(L"thickBot", true); CP_XML_ATTR(L"thickBot", true);
} }
...@@ -207,7 +207,7 @@ int CELL_GROUP::serialize(std::wostream & stream) ...@@ -207,7 +207,7 @@ int CELL_GROUP::serialize(std::wostream & stream)
CP_XML_ATTR(L"r", current_row_number); CP_XML_ATTR(L"r", current_row_number);
bool xf_set = true; bool xf_set = true;
if ((row->fGhostDirty.value()) && ( *row->fGhostDirty.value()== false)) xf_set = false; if (row->fGhostDirty == false) xf_set = false;
if (row->ixfe_val.value() && xf_set) if (row->ixfe_val.value() && xf_set)
{ {
...@@ -231,7 +231,7 @@ int CELL_GROUP::serialize(std::wostream & stream) ...@@ -231,7 +231,7 @@ int CELL_GROUP::serialize(std::wostream & stream)
{ {
CP_XML_ATTR(L"outlineLevel", row->iOutLevel); CP_XML_ATTR(L"outlineLevel", row->iOutLevel);
} }
if ((row->fCollapsed.value()) && (row->fCollapsed)) if (row->fCollapsed)
{ {
CP_XML_ATTR(L"collapsed", row->fCollapsed); CP_XML_ATTR(L"collapsed", row->fCollapsed);
} }
......
...@@ -89,11 +89,11 @@ int COLUMNS::serialize(std::wostream & stream) ...@@ -89,11 +89,11 @@ int COLUMNS::serialize(std::wostream & stream)
CP_XML_ATTR(L"style", column_info->ixfe - cellStyleXfs_count); CP_XML_ATTR(L"style", column_info->ixfe - cellStyleXfs_count);
} }
if ((column_info->fBestFit.value()) && (column_info->fBestFit)) if (column_info->fBestFit)
{ {
CP_XML_ATTR(L"bestFit", column_info->fBestFit); CP_XML_ATTR(L"bestFit", column_info->fBestFit);
} }
if ((column_info->fHidden.value()) && (column_info->fHidden)) if (column_info->fHidden)
{ {
CP_XML_ATTR(L"hidden", column_info->fHidden); CP_XML_ATTR(L"hidden", column_info->fHidden);
} }
......
...@@ -306,7 +306,7 @@ std::wstring CRT::getOoxChartType() ...@@ -306,7 +306,7 @@ std::wstring CRT::getOoxChartType()
case typeScatter: case typeScatter:
{ {
Scatter * sc = dynamic_cast<Scatter *>(m_ChartType.get()); Scatter * sc = dynamic_cast<Scatter *>(m_ChartType.get());
if ((sc->fBubbles.value()) && (sc->fBubbles)) if (sc->fBubbles)
{ {
m_iChartType = CHART_TYPE_Bubble; m_iChartType = CHART_TYPE_Bubble;
return L"c:bubbleChart"; return L"c:bubbleChart";
......
...@@ -78,7 +78,7 @@ const bool FORMULA::loadContent(BinProcessor& proc) ...@@ -78,7 +78,7 @@ const bool FORMULA::loadContent(BinProcessor& proc)
//proc.optional<SUB>(); // I haven't found any mention about SUB in the docs //proc.optional<SUB>(); // I haven't found any mention about SUB in the docs
} }
if ((formula) && (formula->fShrFmla.value()) && (formula->fShrFmla)) if ((formula) && (formula->fShrFmla))
{ {
for (int i = 0; i < shared_formulas_locations_ref_.size(); i++) for (int i = 0; i < shared_formulas_locations_ref_.size(); i++)
{ {
...@@ -146,7 +146,7 @@ int FORMULA::serialize(std::wostream & stream) ...@@ -146,7 +146,7 @@ int FORMULA::serialize(std::wostream & stream)
CP_XML_STREAM() << xml::utils::replace_text_to_xml(f_); CP_XML_STREAM() << xml::utils::replace_text_to_xml(f_);
} }
} }
else if ((formula->fShrFmla.value()) && (formula->fShrFmla == true) && m_sharedIndex >= 0) else if (formula->fShrFmla && m_sharedIndex >= 0)
{ {
CP_XML_NODE(L"f") CP_XML_NODE(L"f")
{ {
......
...@@ -98,7 +98,7 @@ int GLOBALS::serialize(std::wostream & stream) ...@@ -98,7 +98,7 @@ int GLOBALS::serialize(std::wostream & stream)
DefaultRowHeight* def_row = dynamic_cast<DefaultRowHeight*>(m_DefaultRowHeight.get()); DefaultRowHeight* def_row = dynamic_cast<DefaultRowHeight*>(m_DefaultRowHeight.get());
if (def_row) if (def_row)
{ {
if(!def_row->fDyZero.value() || ((def_row->fDyZero.value()) && (!def_row->fDyZero))) if(!def_row->fDyZero)
{ {
CP_XML_ATTR(L"defaultRowHeight", def_row->miyRw / 20.); CP_XML_ATTR(L"defaultRowHeight", def_row->miyRw / 20.);
CP_XML_ATTR(L"customHeight", true); CP_XML_ATTR(L"customHeight", true);
...@@ -108,8 +108,8 @@ int GLOBALS::serialize(std::wostream & stream) ...@@ -108,8 +108,8 @@ int GLOBALS::serialize(std::wostream & stream)
CP_XML_ATTR(L"zeroHeight", true); CP_XML_ATTR(L"zeroHeight", true);
CP_XML_ATTR(L"defaultRowHeight", def_row->miyRwHidden /20.); CP_XML_ATTR(L"defaultRowHeight", def_row->miyRwHidden /20.);
} }
if ((def_row->fExAsc.value()) && (def_row->fExAsc)) CP_XML_ATTR(L"thickTop", true); if (def_row->fExAsc) CP_XML_ATTR(L"thickTop", true);
if ((def_row->fExDsc.value()) && (def_row->fExDsc)) CP_XML_ATTR(L"thickBottom", true); if (def_row->fExDsc) CP_XML_ATTR(L"thickBottom", true);
} }
} }
......
...@@ -76,9 +76,10 @@ int STYLES::serialize(std::wostream & stream) ...@@ -76,9 +76,10 @@ int STYLES::serialize(std::wostream & stream)
{ {
CP_XML_ATTR(L"name", styleExt->stName.value()); CP_XML_ATTR(L"name", styleExt->stName.value());
if ((styleExt->fBuiltIn.value()) && (*styleExt->fBuiltIn.value())) if (styleExt->fBuiltIn)
{ {
CP_XML_ATTR(L"builtinId", styleExt->builtInData.istyBuiltIn); CP_XML_ATTR(L"builtinId", styleExt->builtInData.istyBuiltIn);
if (styleExt->builtInData.iLevel > 0 && styleExt->builtInData.iLevel < 255) if (styleExt->builtInData.iLevel > 0 && styleExt->builtInData.iLevel < 255)
{ {
CP_XML_ATTR(L"iLevel", styleExt->builtInData.iLevel); CP_XML_ATTR(L"iLevel", styleExt->builtInData.iLevel);
...@@ -93,7 +94,7 @@ int STYLES::serialize(std::wostream & stream) ...@@ -93,7 +94,7 @@ int STYLES::serialize(std::wostream & stream)
{ {
CP_XML_ATTR(L"name", style->user.value()); CP_XML_ATTR(L"name", style->user.value());
if ((style->fBuiltIn.value()) && (*style->fBuiltIn.value())) if (style->fBuiltIn)
{ {
CP_XML_ATTR(L"builtinId", style->builtInData.istyBuiltIn); CP_XML_ATTR(L"builtinId", style->builtInData.istyBuiltIn);
if (style->builtInData.iLevel > 0 && style->builtInData.iLevel < 255) if (style->builtInData.iLevel > 0 && style->builtInData.iLevel < 255)
......
...@@ -43,7 +43,7 @@ const bool XFS::loadContent(BinProcessor& proc) ...@@ -43,7 +43,7 @@ const bool XFS::loadContent(BinProcessor& proc)
// style & complex // style & complex
XF* xfs = dynamic_cast<XF*>(elements_.front().get()); XF* xfs = dynamic_cast<XF*>(elements_.front().get());
if ((xfs->fStyle.value()) && (*xfs->fStyle.value())) if (xfs->fStyle)
{ {
m_arCellStyles.push_back(elements_.front()); m_arCellStyles.push_back(elements_.front());
cellStyleXfs_count++; cellStyleXfs_count++;
......
...@@ -992,7 +992,7 @@ void xlsx_drawing_context::serialize_text(std::wostream & stream, _drawing_state ...@@ -992,7 +992,7 @@ void xlsx_drawing_context::serialize_text(std::wostream & stream, _drawing_state
if (drawing_state->wordart.bold) CP_XML_ATTR(L"b", 1); if (drawing_state->wordart.bold) CP_XML_ATTR(L"b", 1);
if (drawing_state->wordart.italic) CP_XML_ATTR(L"i", 1); if (drawing_state->wordart.italic) CP_XML_ATTR(L"i", 1);
if (drawing_state->wordart.underline) CP_XML_ATTR(L"u", 1); if (drawing_state->wordart.underline) CP_XML_ATTR(L"u", L"sng");
if (drawing_state->wordart.strike) CP_XML_ATTR(L"strike", L"sngStrike"); if (drawing_state->wordart.strike) CP_XML_ATTR(L"strike", L"sngStrike");
CP_XML_ATTR(L"kern", 10); CP_XML_ATTR(L"kern", 10);
...@@ -1545,7 +1545,7 @@ void xlsx_drawing_context::set_chart_sheet_anchor(double width, double height) ...@@ -1545,7 +1545,7 @@ void xlsx_drawing_context::set_chart_sheet_anchor(double width, double height)
set_anchor(stream.str()); set_anchor(stream.str());
current_drawing_states->back()->type_anchor = 2; current_drawing_states->back()->type_anchor = 3;
} }
void xlsx_drawing_context::serialize(std::wostream & strm) void xlsx_drawing_context::serialize(std::wostream & strm)
......
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