当前位置: 首页>>代码示例>>C++>>正文


C++ CFRecord::getGlobalWorkbookInfo方法代码示例

本文整理汇总了C++中CFRecord::getGlobalWorkbookInfo方法的典型用法代码示例。如果您正苦于以下问题:C++ CFRecord::getGlobalWorkbookInfo方法的具体用法?C++ CFRecord::getGlobalWorkbookInfo怎么用?C++ CFRecord::getGlobalWorkbookInfo使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CFRecord的用法示例。


在下文中一共展示了CFRecord::getGlobalWorkbookInfo方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: writeFields

void SST::writeFields(CFRecord& record)
{
	record << cstTotal << cstUnique;

	std::list<CFRecordPtr>& recs = continue_records[rt_Continue];
	for (BiffStructurePtrVector::iterator it = rgb.begin(), itEnd = rgb.end(); it != itEnd ; ++it)
	{
		XLUnicodeRichExtendedStringPtr element = boost::dynamic_pointer_cast<XLUnicodeRichExtendedString>(*it);
		if(!element)
		{
			throw;// EXCEPT::LE::WrongAPIUsage("boost::shared_dynamic_cast failed to cast to XLUnicodeRichExtendedStringPtr", __FUNCTION__);
		}
		CFRecord& current_record = recs.size() ? *recs.back() : record; // Points to the original 'record' or the last created 'Continue'

		_UINT32 ssss;
		if(!current_record.checkFitWriteSafe(ssss = element->getNonVariablePartSize())) // If we cannot write non-variable part into the current record
		{
			current_record.commitData();
			CFRecordPtr cont_record(new CFRecord(rt_Continue, record.getGlobalWorkbookInfo()));
			recs.push_back(cont_record);
			*cont_record << *element;
		}
		else
		{
			current_record << *element;
		}
	}
	if(recs.size())
	{
		recs.back()->commitData();
	}
}
开发者ID:alexandervnuchkov,项目名称:core,代码行数:32,代码来源:SST.cpp

示例2:

void PtgRefErr3d::loadFields(CFRecord& record)
{
	global_info = record.getGlobalWorkbookInfo();

	record >> ixti;
	record.skipNunBytes(4); // unused
}
开发者ID:ShockwaveNN,项目名称:core,代码行数:7,代码来源:PtgRefErr3d.cpp

示例3: readFields

void String::readFields(CFRecord& record)
{
	if (record.getGlobalWorkbookInfo()->Version < 0x0600)
	{
		LPAnsiString s;
		record >> s;
		string = s;
	}
开发者ID:ONLYOFFICE,项目名称:core,代码行数:8,代码来源:String.cpp

示例4: readFields

void WriteAccess::readFields(CFRecord& record)
{
	if (record.getGlobalWorkbookInfo()->Version < 0x0600)
	{
		ShortXLAnsiString name;
		record >> name;

		userName = name;
	}
开发者ID:ShockwaveNN,项目名称:core,代码行数:9,代码来源:WriteAccess.cpp

示例5: readFields

void DefColWidth::readFields(CFRecord& record)
{
	GlobalWorkbookInfoPtr global_info = record.getGlobalWorkbookInfo();
	record >> cchdefColWidth;

	if (!global_info->sheets_info.empty())
	{
		global_info->sheets_info.back().defaultColumnWidth = cchdefColWidth ;
	}
}
开发者ID:ONLYOFFICE,项目名称:core,代码行数:10,代码来源:DefColWidth.cpp

示例6: readFields

void RK::readFields(CFRecord& record)
{
	global_info_ = record.getGlobalWorkbookInfo();

	Rw rw;
	Col col;
	
	record >> rw >> col;
	record >> rkrec;
	
	cell = Cell(rw, col, rkrec.get_ixfe());
}
开发者ID:ONLYOFFICE,项目名称:core,代码行数:12,代码来源:RK.cpp

示例7: readFields

void Label::readFields(CFRecord& record)
{
	global_info_ = record.getGlobalWorkbookInfo();
	
	record >> cell;
	
	if (global_info_->Version < 0x0600)
	{
		LPAnsiString name;
		record >> name;
		
		st = name;
	}
开发者ID:ShockwaveNN,项目名称:core,代码行数:13,代码来源:Label.cpp

示例8: readFields

void Footer::readFields(CFRecord& record)
{
	if(!record.isEOF())
	{
		if (record.getGlobalWorkbookInfo()->Version < 0x0600)
		{
			ShortXLAnsiString name;
			record >> name;
			
			ast = name;
		}
		else
		{	
开发者ID:ShockwaveNN,项目名称:core,代码行数:13,代码来源:Footer.cpp

示例9: load

void StyleXF::load(CFRecord& record)
{
	m_GlobalWorkbookInfo = record.getGlobalWorkbookInfo();

	if (m_GlobalWorkbookInfo->Version < 0x0600)
	{
		_UINT16 flags1;
		_UINT32 flags2;
		_UINT32 flags3;

		record >> flags1 >> flags2 >> flags3;
		
		alc					= static_cast<unsigned char>(GETBITS(flags1, 0, 2));
		fWrap				= GETBIT(flags1, 3);
		alcV				= static_cast<unsigned char>(GETBITS(flags1, 4, 6));
		fJustLast			= GETBIT(flags1, 7);
		trot				= 0;//static_cast<unsigned char>(GETBITS(flags1, 8, 15));	
		cIndent				= 0;//static_cast<unsigned char>(GETBITS(flags1, 16, 19));
		fShrinkToFit		= 0;//GETBIT(flags1, 20);
		iReadOrder			= 0;//static_cast<unsigned char>(GETBITS(flags1, 22, 23));

		char orient			= GETBITS(flags1, 8, 10);
		
		switch(orient)
		{
			case 0:	trot = 0;		break;		// Text orientation: not rotated.
			case 1: trot = 0xff;	break;		// Text orientation: vertically stacked.
			case 2: trot = 90;		break;		// Text orientation: 90 deg counterclockwise.
			case 3: trot = 270;		break;		// Text orientation: 90 deg clockwise.
		}	

		fill.fls = static_cast<unsigned char>(GETBITS(flags2, 16, 21));
		
		fill.icvFore = GETBITS(flags2, 0, 6);
		fill.icvBack = GETBITS(flags2, 7, 13);
		
		border.dgTop		= static_cast<unsigned char>(GETBITS(flags3, 0, 2));
		border.dgLeft		= static_cast<unsigned char>(GETBITS(flags3, 3, 5));
		border.dgRight		= static_cast<unsigned char>(GETBITS(flags3, 6, 8));		
		border.dgBottom		= static_cast<unsigned char>(GETBITS(flags2, 22, 24));	
		border.dgDiag		= 0;
		border.grbitDiag	= 0;

		border.icvLeft		= (0 != border.dgLeft)	? static_cast<unsigned char>(GETBITS(flags3, 16, 22))	: 0;
		border.icvRight		= (0 != border.dgRight)	? static_cast<unsigned char>(GETBITS(flags3, 23, 29))	: 0;
		border.icvTop		= (0 != border.dgTop)	? static_cast<unsigned char>(GETBITS(flags3,  9, 15))	: 0;
		border.icvBottom	= (0 != border.dgBottom)? static_cast<unsigned char>(GETBITS(flags2, 25, 31))	: 0;
		border.icvDiag		= 0;
	}
开发者ID:alexandervnuchkov,项目名称:core,代码行数:49,代码来源:StyleXF.cpp

示例10: readFields

void ExternSheet::readFields(CFRecord& record)
{
	if (record.getGlobalWorkbookInfo()->Version < 0x0600)
	{
		unsigned char type;

		ShortXLAnsiString stName;
		record >> type >> stName;

		name = stName.value();
		//int type	= stName.value().substr(0, 1).c_str()[0];
		//if (!name.empty())
		//	record.getGlobalWorkbookInfo()->arExternalNames.push_back(name);

	}
开发者ID:ONLYOFFICE,项目名称:core,代码行数:15,代码来源:ExternSheet.cpp

示例11: readFields

void MulRk::readFields(CFRecord& record)
{
	global_info_ = record.getGlobalWorkbookInfo();

// A little hack to extract colLast before it is used
	record.skipNunBytes(record.getDataSize() - sizeof(unsigned short));
	record >> colLast;
	record.resetPointerToBegin();
//------------------
	record >> rw >> colFirst;
	for(unsigned short i = colFirst; i <= colLast; ++i)
	{
		RkRec rec;
		record >> rec;
		rgrkrec.push_back(RkRecPtr(new RkRec(rec)));
		cells.push_back(CellPtr(new Cell(rw, i, rec.get_ixfe())));
	}

	record.skipNunBytes(sizeof(unsigned short));
}
开发者ID:alexandervnuchkov,项目名称:core,代码行数:20,代码来源:MulRk.cpp

示例12: loadFields

void PtgArea::loadFields(CFRecord& record)
{
	if (record.getGlobalWorkbookInfo()->Version < 0x600)
	{
		unsigned char	colFirst, colLast;
		_UINT16			rwFirst, rwLast;

		record >> rwFirst >> rwLast >> colFirst >> colLast;

		area.rowFirstRelative	= rwFirst & 0x8000;
		area.columnLastRelative	= rwFirst & 0x4000;
		
		area.columnFirst		= colFirst;
		area.rowFirst			= rwFirst & 0x3FFF;

		area.rowLastRelative	= rwLast & 0x8000;
		area.columnLastRelative	= rwLast & 0x4000;
		
		area.columnLast			= colLast;
		area.rowLast			= rwLast & 0x3FFF;
	}
开发者ID:alexandervnuchkov,项目名称:core,代码行数:21,代码来源:PtgArea.cpp

示例13: readFields

void Palette::readFields(CFRecord& record)
{
	GlobalWorkbookInfoPtr global_info = record.getGlobalWorkbookInfo();
	
	unsigned short ccv;
	record >> ccv;
	
	for(int i = 0; i < 8; ++i)
	{	
		global_info->RegisterPaletteColor(i, standart_color[i].substr(2,6));
	}

	for(int i = 0; i < ccv; ++i)
	{
		LongRGBPtr rgb(new LongRGB);
		record >> *rgb;
		rgColor.push_back(rgb);

		global_info->RegisterPaletteColor(i+8, rgb->strRGB);
	}
}
开发者ID:ShockwaveNN,项目名称:core,代码行数:21,代码来源:Palette.cpp

示例14: load

void FtCmo::load(CFRecord& record)
{
	record.skipNunBytes(4); // reserved

	record >> ot >> id;
	
	if (record.getGlobalWorkbookInfo()->Version < 0x0600)
	{
		unsigned char flags;
		record >> flags;
		
		fLocked			= GETBIT(flags, 0);
		fDefaultSize	= GETBIT(flags, 2);
		fPublished		= GETBIT(flags, 3);
		fPrint			= GETBIT(flags, 4);
		fDisabled		= GETBIT(flags, 7);
		
		fUIObj			= false;
		fRecalcObj		= false;
		fRecalcObjAlways = false;
	}
开发者ID:ShockwaveNN,项目名称:core,代码行数:21,代码来源:FtCmo.cpp

示例15: readFields

void Text::readFields(CFRecord& record)
{
	unsigned short flags1;
	unsigned short flags2;
	record >> at  >> vat >> wBkgMode >> rgbText >> x >> y >> dx >> dy >> flags1;
	
	if (record.getGlobalWorkbookInfo()->Version < 0x0600)
	{
		int orient = GETBITS(flags1, 8, 10);
		switch(orient)
		{
			case 0:	trot = 0;		break;		// Text orientation: not rotated.
			case 1: trot = 0xff;	break;		// Text orientation: vertically stacked.
			case 2: trot = 90;		break;		// Text orientation: 90 deg counterclockwise.
			case 3: trot = 270;		break;		// Text orientation: 90 deg clockwise.
		}
	}
	else
	{
		record >> icvText >> flags2 >> trot;
		//icv -> from Palette
		dlp				= static_cast<unsigned char>(GETBITS(flags2, 0, 3));
		iReadingOrder	= static_cast<unsigned char>(GETBITS(flags2, 14, 15));
	}
	
	fAutoColor			= GETBIT(flags1, 0);
	fShowKey			= GETBIT(flags1, 1);
	fShowValue			= GETBIT(flags1, 2);
	fAutoText			= GETBIT(flags1, 4);
	fGenerated			= GETBIT(flags1, 5);
	fDeleted			= GETBIT(flags1, 6);
	fAutoMode			= GETBIT(flags1, 7);
	fShowLabelAndPerc	= GETBIT(flags1, 11);
	fShowPercent		= GETBIT(flags1, 12);
	fShowBubbleSizes	= GETBIT(flags1, 13);
	fShowLabel			= GETBIT(flags1, 14);

}
开发者ID:alexandervnuchkov,项目名称:core,代码行数:38,代码来源:Text.cpp


注:本文中的CFRecord::getGlobalWorkbookInfo方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。