本文整理汇总了C++中BiffStructurePtr函数的典型用法代码示例。如果您正苦于以下问题:C++ BiffStructurePtr函数的具体用法?C++ BiffStructurePtr怎么用?C++ BiffStructurePtr使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了BiffStructurePtr函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: switch
void Feat11WSSListInfo::load(CFRecord& record)
{
_UINT32 flags1, reserved;
_UINT16 unused2;
unsigned char flags2;
record >> LCID >> cDec >> flags1 >> flags2 >> bDefaultType >> unused2;
switch(lfdt)
{
case 0x00000002://Number
case 0x00000006://Currency
rgbDV = BiffStructurePtr(new Xnum); break;
case 0x00000003://Boolean
rgbDV = BiffStructurePtr(new BIFF_DWORD); break;
case 0x00000004:
rgbDV = BiffStructurePtr(new DateAsNum); break;
case 0x00000005://Invalid
case 0x00000007://Invalid
case 0x00000009://Invalid
case 0x0000000a://Invalid
break;
case 0x00000001://Short Text
case 0x00000008://Choice
case 0x0000000b://Multi-choice
rgbDV = BiffStructurePtr(new XLUnicodeString); break;
}
if (rgbDV)
rgbDV->load(record);
record >> strFormula;
record >> reserved;
fPercent = GETBIT(flags1, 0);
fDecSet = GETBIT(flags1, 1);
fDateOnly = GETBIT(flags1, 2);
fReadingOrder = GETBITS(flags1, 3, 4);
fRichText = GETBIT(flags1, 5);
fUnkRTFormatting= GETBIT(flags1, 6);
fAlertUnkRTFormatting = GETBIT(flags1, 7);
fReadOnly = GETBIT(flags2, 0);
fRequired = GETBIT(flags2, 1);
fMinSet = GETBIT(flags2, 2);
fMaxSet = GETBIT(flags2, 3);
fDefaultSet = GETBIT(flags2, 4);
fDefaultDateToday = GETBIT(flags2, 5);
fLoadFormula = GETBIT(flags2, 6);
fAllowFillIn = GETBIT(flags2, 6);
}
示例2: switch
void AutoFilter12::readFields(CFRecord& record)
{
_UINT16 flags;
_UINT32 unused2;
record >> frtRefHeader >> iEntry >> fHideArrow >> ft >> cft >> cCriteria >> cDateGroupings >> flags >> unused2 >> idList;
_GUID_ guid_num;
record >> guid_num;
guidSview = STR::guid2bstr(guid_num);
record.skipNunBytes(record.getDataSize() - record.getRdPtr());
//-------------------------------------------------------------------------------------------------------
std::list<CFRecordPtr>& recs = continue_records[rt_ContinueFrt12];
size_t size = recs.size();
switch(ft)
{
case 0x00000000://not exist
break;
case 0x00000001: rgb = BiffStructurePtr(new DXFN12List); //color
break;
case 0x00000002: rgb = BiffStructurePtr(new DXFN12List); //font
break;
case 0x00000003: rgb = BiffStructurePtr(new AF12CellIcon); //icon
break;
}
if (rgb)
rgb->load(record);
while( !recs.empty() )
{
record.appendRawData(recs.front());
recs.pop_front();
//
FrtRefHeader frtRefHeaderContinue;
record >> frtRefHeaderContinue;
if (frtRefHeaderContinue.rt == 0x087F)
{
if ( ft == 0 && cCriteria > 0)
{
AF12CriteriaPtr item(new AF12Criteria);
item->load(record);
arAF12Criteries.push_back(item);
}
}
}
}
示例3: BiffStructurePtr
BiffStructurePtr RevExtern::clone()
{
return BiffStructurePtr(new RevExtern(*this));
}
示例4: BiffStructurePtr
BiffStructurePtr DVParsedFormula::clone()
{
return BiffStructurePtr(new DVParsedFormula(*this));
}
示例5: BiffStructurePtr
BiffStructurePtr LbsDropData::clone()
{
return BiffStructurePtr(new LbsDropData(*this));
}
示例6: BiffStructurePtr
BiffStructurePtr FtSbs::clone()
{
return BiffStructurePtr(new FtSbs(*this));
}
示例7: BiffStructurePtr
BiffStructurePtr FtCf::clone()
{
return BiffStructurePtr(new FtCf(*this));
}
示例8: BiffStructurePtr
BiffStructurePtr ChartNumNillable::clone()
{
return BiffStructurePtr(new ChartNumNillable(*this));
}
示例9: BiffStructurePtr
BiffStructurePtr PictFmlaEmbedInfo::clone()
{
return BiffStructurePtr(new PictFmlaEmbedInfo(*this));
}
示例10: BiffStructurePtr
BiffStructurePtr Feat11WSSListInfo::clone()
{
return BiffStructurePtr(new Feat11WSSListInfo(*this));
}
示例11: BiffStructurePtr
BiffStructurePtr AddinUdf::clone()
{
return BiffStructurePtr(new AddinUdf(*this));
}
示例12: BiffStructurePtr
BiffStructurePtr PtgNum::clone()
{
return BiffStructurePtr(new PtgNum(*this));
}
示例13: BiffStructurePtr
BiffStructurePtr MDir::clone()
{
return BiffStructurePtr(new MDir(*this));
}
示例14: BiffStructurePtr
BiffStructurePtr AF12Criteria::clone()
{
return BiffStructurePtr(new AF12Criteria(*this));
}
示例15: BiffStructurePtr
BiffStructurePtr PivotParsedFormula::clone()
{
return BiffStructurePtr(new PivotParsedFormula(*this));
}