示例#1
0
MediaSizeTable* GetMediaSizeTable(short model_id)
{
	ModelTable* model_table;
	ModelTable2* model_table2;

	if( (model_table = GetModelTableEntry(model_id)) != NULL )
	{
		if( CheckLocaleJP() ) {	// Japanese
			return model_table->media_size_table_jp;
		}
		else {					// except Japanese
			return model_table->media_size_table;
		}
	}
	/* Ver.3.40 */
	if ( (model_table2 = GetModelTableEntry2( model_id )) != NULL ){
		if ( g_unit_inch == TRUE ){
			return model_table2->media_size_table_us;
		}
		else {
			if ( CheckLocaleJP() ){
				return model_table2->media_size_table_jp;
			}
			else {
				return model_table2->media_size_table;
			}
		}
	}
	return NULL;
}
示例#2
0
short GetUtilFlag(short model_id)
{
	ModelTable* model_table;

	if( (model_table = GetModelTableEntry(model_id)) != NULL )
		return model_table->util_flag;

	return 0;
}
示例#3
0
short GetDefaultExtBorderTable(short model_id)
{
	ModelTable* model_table;

	if( (model_table = GetModelTableEntry(model_id)) != NULL )
		if( model_table->ext_border != -1 )
			return model_table->ext_border;

	return 3; // Return max extension value.
}
示例#4
0
MediaSizeTable* GetMediaSizeTable(short model_id)
{
	ModelTable* model_table;

	if( (model_table = GetModelTableEntry(model_id)) != NULL )
	{
		return model_table->media_size_table;
	}
	return NULL;
}
示例#5
0
MediaSizeTable* GetMediaSizeTable(short model_id)
{
	ModelTable* model_table;

	if( (model_table = GetModelTableEntry(model_id)) != NULL )
	{
		if( CheckLocaleJP() ) {	// Japanese
			return model_table->media_size_table_japanese;
		}
		else {					// except Japanese
			return model_table->media_size_table;
		}
	}
	return NULL;
}
示例#6
0
short GetDefaultExtBorderTable(short model_id)
{
	ModelTable* model_table;
	ModelTable2* model_table2;

	if( (model_table = GetModelTableEntry(model_id)) != NULL ){
		if( model_table->ext_border != -1 ){
			return model_table->ext_border;
		}
	}
	if ( (model_table2 = GetModelTableEntry2( model_id )) != NULL ){
		if( model_table2->ext_border != -1 ){
			return model_table2->ext_border;
		}
	}
	return 3; // Return max extension value.
}
示例#7
0
short GetUtilFlag(short model_id)
{
	LPFUNCTIONCOMP lpComp;
	char resName[NAME_BUF_MAX_SIZE];
	char *modelName = GetModelName();
	short flag = 0;

	snprintf( resName, NAME_BUF_MAX_SIZE, "%s/%s", MAINTENANCE_RESPATH, MAINTENANCE_RESFILE );
	if ( ParseFunctionListTag( resName, modelName, &lpComp  ) != 0 ) goto Err;
	while( lpComp != NULL ){
		if ( lpComp->type == FUNCTYPE_CLEANING ) flag |= UF_CLEANING;
		else if ( lpComp->type == FUNCTYPE_DEEP_CLEANING ) flag |= UF_DEEP_CLEANING;
		else if ( lpComp->type == FUNCTYPE_ROLLER_CLEANING ) flag |= UF_ROLLER_CLEANING;
		else if ( lpComp->type == FUNCTYPE_PLATE_CLEANING ) flag |= UF_PLATE_CLEANING;
		else if ( lpComp->type == FUNCTYPE_NOZZLE_CHECK ) flag |= UF_NOZZLE_CHECK;
		else if ( lpComp->type == FUNCTYPE_POWER_OFF ) flag |= UF_POWER_OFF;
		else if ( lpComp->type == FUNCTYPE_AUTOPOWER ) flag |= UF_AUTO_POWER;
		else if ( lpComp->type == FUNCTYPE_INK_WARNING ) flag |= UF_INK_WARNING;
		else if ( lpComp->type == FUNCTYPE_INK_RESET ) flag |= UF_INK_RESET;
		else if ( lpComp->type == FUNCTYPE_INK_CARTRIDGE ) flag |= UF_INK_CARTRIDGE;
		else if ( lpComp->type == FUNCTYPE_QUIET ) flag |= UF_QUIET;
		else if ( lpComp->type == FUNCTYPE_HEAD_ALIGNMENT_AUTO ) flag |= UF_HEAD_ALIGNMENT;
		else if ( lpComp->type == FUNCTYPE_HEAD_ALIGNMENT_MANUAL ) flag |= UF_HEAD_ALIGNMENT;
		else if ( lpComp->type == FUNCTYPE_CUSTOM ) flag |= UF_CUSTOM;
		else if ( lpComp->type == FUNCTYPE_PAPER_SOURCE_SETTING ) flag |= UI_PAPER_SOURCE_SETTING;
		lpComp = lpComp->next;
	}
	FreeFunctionCompList( lpComp );
#if 0
	ModelTable* model_table;

	if( (model_table = GetModelTableEntry(model_id)) != NULL )
		return model_table->util_flag;

#endif
Err:
	return flag;
}