You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
971 B
C++

#include "StdAfx.h"
#include "FontBarcode.h"
CFontBarcode::CFontBarcode(void)
{
}
CFontBarcode::~CFontBarcode(void)
{
}
//<2F><>ʼ<EFBFBD><CABC><EFBFBD><EFBFBD>Ҫ<EFBFBD><D2AA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͣ<EFBFBD>m_BarcodeTypeVec <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֺ<EFBFBD>CTbarcode51 <20>ؼ<EFBFBD><D8BC><EFBFBD>Ӧö<D3A6>ٵ<EFBFBD>ӳ<EFBFBD><D3B3>
void CFontBarcode::IniBarcodeTypeVec()
{
m_BarcodeTypeVec.push_back(make_pair("DataMatrix",71));
m_BarcodeTypeVec.push_back(make_pair("QRCode",58));
m_BarcodeTypeVec.push_back(make_pair("MAXICODE",57));
}
void CFontBarcode::Initialize()
{
IniBarcodeTypeVec();
vector<BarcodeType>::iterator iter = m_BarcodeTypeVec.begin();
vector<BarcodeType>::iterator iter_end = m_BarcodeTypeVec.end();
for(;iter!=iter_end;iter++)
{
AddTypeName((*iter).first);
}
}
//ת<><D7AA>ΪCTbarcode51 <20><>Ӧ<EFBFBD><D3A6><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֵ
int CFontBarcode::GetCurFontNameIdx()
{
int size = m_BarcodeTypeVec.size();
if(m_CurFontNameIdx>=0 && m_CurFontNameIdx<size)
{
return m_BarcodeTypeVec[m_CurFontNameIdx].second;
}
return 0;
}