class AFX_EX_CLASS CNuXfsForm {
public:
CNuXfsForm();
~CNuXfsForm();

/******************************************************************************
Function:
Set parsing Form related parameters.
Input parameters:
1.lpszFormDir:Form file directory
2.lpszFormFileStr: Vertical line split file type (support access subdirectory)
The format is as follows:
*.form|*.wfm|*.xfs|form*.form|form*.wfm|form*.xfs
3.lpszFormKeySetStr: The requirement of the comma division in English is to parse the Form attribute
The format is as follows:
UNIT,POINTSIZE,ALIGNMENT,ORIENTATION,SKEW,VERSION,LANGUAGE,CPI,LPI,SIZE,COPYRIGHT,TITLE,COMMENT,USERPROMPT
4.lpszFieldKeySetStr: the requirement of the comma division in English is to parse the Field attribute
The format is as follows:
POSITION,FOLLOWS,HEADER,FOOTER,SIDE,SIZE,INDEX,TYPE,SCALING,BARCODE,COERCIVITY,CLASS,ACCESS,OVERFLOW,STYLE,CASE,HORIZONTAL,VERTICAL,COLOR,RGBCOLOR,LANGUAGE,FONT,POINTSIZE,CPI,LPI,FORMAT,INITIALVALUE
5.bCheckValidList: Check formlist or medialist is valid when load
6.bWriteFormLog: Write form log when query form or media

Output parameters:
None

Return Value
0:Success
others:WFS_ERR_PTR_...
******************************************************************************/
int NUFRM_SetFormParams(
LPSTR lpszFormDir
, LPSTR lpszFormFileStr
, LPSTR lpszFormKeySetStr
, LPSTR lpszFieldKeySetStr
, bool bCheckValidList = false
, bool bWriteFormLog = false);

/******************************************************************************
Function:
Get the list of forms available on the device..
Input parameters:
None

Output parameters:
1.lpszFormList: Form list
2.lpNumItems: Forms count

Return Value
0:Success
others:WFS_ERR_PTR_...
******************************************************************************/
int NUFRM_PtrInfFormList(
LPSTR lpszFormList
, int *lpNumItems);

/******************************************************************************
Function:
Get the list of medias available on the device..
Input parameters:
None

Output parameters:
1.lpszMediaList: Media list
2.pNumItems: Medias count

Return Value
0:Success
others:WFS_ERR_PTR_...
******************************************************************************/
int NUFRM_PtrInfMediaList(
LPSTR lpszMediaList
, int *lpNumItems);

/******************************************************************************
Function:
Gets the detailed description of the specified form.
Input parameters:
1.lpszFormName:Specified form name(NULL,empty,string)

Output parameters:
1.lpHeader: Form info
2.lpNumFields :Form fields count

Return Value
0:Success
-1:WFS_ERR_PTR_...
******************************************************************************/
int NUFRM_PtrInfQueryForm(
LPSTR lpszFormName
, LPWFSFRMHEADER lpHeader
, int *lpNumFields);

/******************************************************************************
Function:
Gets the detailed description of the specified media.
Input parameters:
1.lpszMediaName:Specified media name(NULL,empty,string)

Output parameters:
1.lpMedia: Media info

Return Value
0:Success
others:WFS_ERR_PTR_...
******************************************************************************/
int NUFRM_PtrInfQueryMedia(
LPSTR lpszMediaName
, LPWFSFRMMEDIA lpMedia);

/******************************************************************************
Function:
Gets detailed information about a single or all field description on the specified form.
Input parameters:
1.lpQueryField:A single or all field on the specified form(NULL,empty,string)

Output parameters:
1.lppFields: Form fields info

Return Value
0:Success
others:WFS_ERR_PTR_...
******************************************************************************/
int NUFRM_PtrInfQueryField(
LPWFSPTRQUERYFIELD lpQueryField
, LPWFSFRMFIELD *lppFields);

/******************************************************************************
Function:
Gets the structured definition information for the form specified for printing.
Input parameters:
1.lpPrintForm:Specified media name(NULL,empty,string)
2.bSortPosition: Whether or not to sort the position

Output parameters:
1.lpPtrForm: Generated structured Form definition information
2.lpPtrMedia: Generated structured Media definition information

Return Value
0:Success
others:WFS_ERR_PTR_...
******************************************************************************/
int NUFRM_PtrCmdPrintForm(
LPWFSPTRPRINTFORM lpPrintForm
, LPWFSPTRFORM lpPtrForm
, LPWFSPTRMEDIA lpPtrMedia
, bool bSortPosition = false);

/******************************************************************************
Function:
Gets the structured definition information for the form specified for printing.
Input parameters:
1.lpReadForm: Specify a form to limit read information(NULL,empty,string)

Output parameters:
1.lpPtrForm: Generated structured Form definition information
2.lpPtrMedia: Generated structured Media definition information

Return Value
0:Success
others:WFS_ERR_PTR_...
******************************************************************************/
int NUFRM_PtrCmdReadForm(
LPWFSPTRREADFORM lpReadForm
, LPWFSPTRFORM lpPtrForm
, LPWFSPTRMEDIA lpPtrMedia);

CNuLog *m_pLog = NULL;
char m_szFormDir[256];

/******************************************************************************
Extra:
******************************************************************************/
int NUFRM_GetPTRFormInfo(
LPSTR lpszFileName
, LPSTR lpszFormName
, LPWFSPTRFORM lpPtrForm
, bool bSortPosition = false);

int NUFRM_GetPTRMediaInfo(
LPSTR lpszFileName
, LPSTR lpszMediaName
, LPWFSPTRMEDIA lpPtrMedia);

int NUFRM_GetPTRFormListField(
LPWFSPTRPRINTFORM lpPrintForm
, LPWFSPTRFORM lpPtrForm
, std::vector<WFSPTRFIELDKEYINDEXVALUE> &listField);

int NUFRM_PTRPrintDoc(
LPWFSPTRPRINTFORM lpPrintForm
, LPWFSPTRFORM lpPtrForm
, LPWFSPTRMEDIA lpPtrMedia
, LPSTR lpszPrinterName
, LPSTR lpszDefaultFont
, float fDefalutPointSize = 10.5f);

int NUFRM_PTRGenerateImage(
LPWFSPTRPRINTFORM lpPrintForm
, LPWFSPTRFORM lpPtrForm
, LPWFSPTRMEDIA lpPtrMedia
, LPSTR lpszCreateFileName
, LPSTR lpszDefaultFont
, float fDefalutPointSize = 10.5f
, int nXmm = 0
, int nYmm = 0
, float fPixScale = 1.0);
};
typedef CNuXfsForm* (__cdecl *CNUXFSFORM)(CNuLog *pLog, char *pcExtra, DWORD dwExtra);

WOSA/XFS PTR Form解析库—头文件的更多相关文章

  1. WOSA/XFS PTR Form解析库—FormRule.h

    #ifndef _FORMRULE_H_#define _FORMRULE_H_ #include <XFSPTR.H>#include <string>#include &l ...

  2. WOSA/XFS PTR Form解析库—xfsptrdata.h

    #ifndef _XFSPTRDATA_H_#define _XFSPTRDATA_H_ #include <XFSPTR.H>#include <Windows.h>#inc ...

  3. WOSA/XFS PTR Form解析库—测试工具预览

  4. WOSA/XFS PTR FORM—基础知识

    目录 一.XFS PTR 二.XFS PTR FORM 三.Form.子Form.字段.框架.表单和媒介的定义 正文 一.XFS PTR Class Name PTR Class Identifier ...

  5. 关于使用cocoaPods,import导入时第三方库头文件没有提示问题的解决办法

    估计有很多朋友在使用Xcode在项目中导入第三方库时,使用的是cocoaPods,但是在项目中使用此第三方库导入头文件时,输入#import后,并不会联想第三方库头文件(XXXX.h),需要我们手动输 ...

  6. boost.spirit之解析C++头文件

    环境:win7_64旗舰版,VS2008 场景:C++与lua交互是比较繁琐的,当我们编写一个C++类后,如果要给lua使用,就必须写一个lua包装类,将lua与原始C++类关联起来.其实这部分代码编 ...

  7. C++标准库头文件名字和C语言头文件名字的区别

    1.C++版本的C标准库头文件,一般是cname,而C语言头文件一般是name.h 2.命名为cname的头文件中定义的名字都是从std中来的,而如果是name.h则不是这样的. 3.与是用name. ...

  8. C++标准库头文件找不到的问题

    当你写C++程序时,在头文件中包含C++标准库的头文件,比如#include <string>,而编译器提示你找不到头文件! 原因就是你的实现源文件扩展名是".c"而不 ...

  9. [C++STDlib基础]关于日期时间的操作——C++标准库头文件<ctime>

    总结 /* A.头文件<ctime> #if _GLOBAL_USING && !defined(RC_INVOKED) _STD_BEGIN 1.四个数据类型 using ...

随机推荐

  1. Android通用简洁的下载器

    下载逻辑在android开发中可谓很常见,那么封装一个通用简洁的下载器时很有必要的.如果不想给工程引入一个很重的jar包那么可以直接复用下面的代码即可. 主要对外接口 构造函数 :     publi ...

  2. 为 git 设置 http 代理

    最近基于 PDFium 项目做一些东西.之前得了代码,今天想要更新到最新的,发现怎么都 pull 不下来.后来想起来,可能是 git 没有使用代理的原因.于是添加代理,果然更新成功. 在 git ba ...

  3. tomcat 最大并发数

    只针对BIO模式,目标请求会sleep两秒再返回结果,通过jmeter测试工具进行并发测试 操作系统:windows && linux tomcat7测试: <Connector ...

  4. 持续集成 TeamCity 的配置与使用

    环境:实现自动编译与自动化测试,发布到远程服务器,环境 VS2015 +WIN2008R2 什么是TeamCity TeamCity是由Jetbrains开发的一款功能强大的持续集成(Continue ...

  5. 异常处理:net.sf.cglib.beans.BulkBeanException

    今天下午由于各种开会,断断续续写得代码,单元测试的时候,老是报如题的错误,后来查阅资料,发现原来是从数据库查询的值如果为空,则对应实体类执行set方法会赋值null给对应属性值,但是我当时的几个值偏偏 ...

  6. springmvc json 406

    spring 4.0 <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="ht ...

  7. CAS多点登录

    转自:http://www.blogjava.net/alwayscy/archive/2012/12/01/392322.html 场景 想要用到的场景:用户访问WEB服务,WEB访问非WEB服务1 ...

  8. input输入框file类型第二次不触发onchange事件的解决办法,简单有效

    在网上看了很多办法,现在将网上大部分说法总结如下: 网上说法: 原因:选择一次后onchange事件没有绑定到input标签上:    解决办法:拷贝一份input标签的副本,每次选择后对原input ...

  9. .4-浅析express源码之applicaiton模块(3)-compile函数

    基本上application模块的api都看的差不多了,但是在app.set中还有一个遗漏点,如下: app.set = function set(setting, val) { // ...设值 / ...

  10. SpringMvc+hibernate+easyui简单的权限管理系统

    用户登录:   主界面:   资源管理:   角色管理:   用户管理:   部门管理:   源码在群共享: 189811613  群满了,直接发链接吧链接:http://pan.baidu.com/ ...