Beispiel #1
0
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);
}
Beispiel #2
0
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);
			}
		}		
	}
}
Beispiel #3
0
BiffStructurePtr RevExtern::clone()
{
	return BiffStructurePtr(new RevExtern(*this));
}
BiffStructurePtr DVParsedFormula::clone()
{
	return BiffStructurePtr(new DVParsedFormula(*this));
}
Beispiel #5
0
BiffStructurePtr LbsDropData::clone()
{
	return BiffStructurePtr(new LbsDropData(*this));
}
Beispiel #6
0
BiffStructurePtr FtSbs::clone()
{
	return BiffStructurePtr(new FtSbs(*this));
}
Beispiel #7
0
BiffStructurePtr FtCf::clone()
{
	return BiffStructurePtr(new FtCf(*this));
}
BiffStructurePtr ChartNumNillable::clone()
{
	return BiffStructurePtr(new ChartNumNillable(*this));
}
BiffStructurePtr PictFmlaEmbedInfo::clone()
{
	return BiffStructurePtr(new PictFmlaEmbedInfo(*this));
}
Beispiel #10
0
BiffStructurePtr Feat11WSSListInfo::clone()
{
	return BiffStructurePtr(new Feat11WSSListInfo(*this));
}
Beispiel #11
0
BiffStructurePtr AddinUdf::clone()
{
	return BiffStructurePtr(new AddinUdf(*this));
}
Beispiel #12
0
BiffStructurePtr PtgNum::clone()
{
	return BiffStructurePtr(new PtgNum(*this));
}
Beispiel #13
0
BiffStructurePtr MDir::clone()
{
	return BiffStructurePtr(new MDir(*this));
}
Beispiel #14
0
BiffStructurePtr AF12Criteria::clone()
{
	return BiffStructurePtr(new AF12Criteria(*this));
}
Beispiel #15
0
BiffStructurePtr PivotParsedFormula::clone()
{
	return BiffStructurePtr(new PivotParsedFormula(*this));
}
BiffStructurePtr PtgAttrSpaceSemi::clone()
{
	return BiffStructurePtr(new PtgAttrSpaceSemi(*this));
}
Beispiel #17
0
BiffStructurePtr CondFmtStructure::clone()
{
	return BiffStructurePtr(new CondFmtStructure(*this));
}
Beispiel #18
0
BiffStructurePtr PtgArea::clone()
{
	return BiffStructurePtr(new PtgArea(*this));
}
Beispiel #19
0
BiffStructurePtr FilePointer::clone()
{
	return BiffStructurePtr(new FilePointer(*this));
}
Beispiel #20
0
BiffStructurePtr PhRuns::clone()
{
	return BiffStructurePtr(new PhRuns(*this));
}
Beispiel #21
0
BiffStructurePtr AFDOper::clone()
{
	return BiffStructurePtr(new AFDOper(*this));
}
Beispiel #22
0
BiffStructurePtr ExtRst::clone()
{
	return BiffStructurePtr(new ExtRst(*this));
}
Beispiel #23
0
BiffStructurePtr ObjFmla::clone()
{
	return BiffStructurePtr(new ObjFmla(*this));
}
Beispiel #24
0
BiffStructurePtr PtgAttrGoto::clone()
{
	return BiffStructurePtr(new PtgAttrGoto(*this));
}
Beispiel #25
0
BiffStructurePtr PtgElfColSV::clone()
{
	return BiffStructurePtr(new PtgElfColSV(*this));
}
Beispiel #26
0
BiffStructurePtr PtgMemNoMemN::clone()
{
	return BiffStructurePtr(new PtgMemNoMemN(*this));
}
BiffStructurePtr DConnStringSequence::clone()
{
	return BiffStructurePtr(new DConnStringSequence(*this));
}
Beispiel #28
0
BiffStructurePtr PtgTbl::clone()
{
	return BiffStructurePtr(new PtgTbl(*this));
}
Beispiel #29
0
BiffStructurePtr PtgAreaErr3d::clone()
{
	return BiffStructurePtr(new PtgAreaErr3d(*this));
}
BiffStructurePtr CFParsedFormulaNoCCE::clone()
{
	return BiffStructurePtr(new CFParsedFormulaNoCCE(*this));
}