Classes | Defines | Functions | Variables

ie_imp_MSWrite.cpp File Reference

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <glib.h>
#include <gsf/gsf-input.h>
#include "ie_imp_MSWrite.h"
#include "ap_Args.h"
#include "fg_Graphic.h"
#include "ie_impGraphic.h"
#include "ut_assert.h"
#include "ut_debugmsg.h"
#include "ut_locale.h"
#include "ut_types.h"
#include "ut_std_string.h"
#include "xap_Module.h"

Classes

struct  ffn_suff_cp

Defines

#define ABI_BUILTIN_FAR_CALL   ABI_FAR_CALL
#define PIC_OR_OLE_HEADER_SIZE   40
#define OLE_Version   0
#define OLE_FormatID   4
#define OLE_ClassNameLength   8
#define OLE_ClassNameString   12
#define OLE_TopicNameLength   12
#define OLE_TopicNameString   16
#define OLE_ItemNameLength   16
#define OLE_ItemNameString   20
#define OLE_ObjDataSize   20
#define OLE_Object   24
#define OLE_MF_Reserved   24
#define OLE_MF_Object   32
#define BM16_Type   0
#define BM16_Width   2
#define BM16_Height   4
#define BM16_WidthBytes   6
#define BM16_Planes   8
#define BM16_BitsPixel   9
#define BM16_Bits   10

Functions

ABI_BUILTIN_FAR_CALL int abi_plugin_register (XAP_ModuleInfo *mi)
ABI_BUILTIN_FAR_CALL int abi_plugin_unregister (XAP_ModuleInfo *mi)
ABI_BUILTIN_FAR_CALL int abi_plugin_supports_version (UT_uint32 major, UT_uint32 minor, UT_uint32 release)

Variables

static IE_Imp_MSWrite_Snifferm_sniffer = 0
static const IE_SuffixConfidence IE_Imp_MSWrite_Sniffer__SuffixConfidence []
static const wri_struct WRI_FILE_HEADER []
static const wri_struct WRI_PICTURE_HEADER []
static const wri_struct WRI_OLE_HEADER []
static struct ffn_suff_cp ffn_suff_cp_tbl []

Define Documentation

#define ABI_BUILTIN_FAR_CALL   ABI_FAR_CALL
#define BM16_Bits   10
#define BM16_BitsPixel   9
#define BM16_Height   4
#define BM16_Planes   8
#define BM16_Type   0
#define BM16_Width   2
#define BM16_WidthBytes   6
#define OLE_ClassNameLength   8
#define OLE_ClassNameString   12
#define OLE_FormatID   4
#define OLE_ItemNameLength   16
#define OLE_ItemNameString   20
#define OLE_MF_Object   32
#define OLE_MF_Reserved   24
#define OLE_ObjDataSize   20
#define OLE_Object   24
#define OLE_TopicNameLength   12
#define OLE_TopicNameString   16
#define OLE_Version   0
#define PIC_OR_OLE_HEADER_SIZE   40

Function Documentation

ABI_BUILTIN_FAR_CALL int abi_plugin_register ( XAP_ModuleInfo mi  ) 
ABI_BUILTIN_FAR_CALL int abi_plugin_supports_version ( UT_uint32  major,
UT_uint32  minor,
UT_uint32  release 
)

References UT_UNUSED.

ABI_BUILTIN_FAR_CALL int abi_plugin_unregister ( XAP_ModuleInfo mi  ) 

Variable Documentation

struct ffn_suff_cp ffn_suff_cp_tbl[] [static]
Initial value:
const wri_struct WRI_FILE_HEADER[] [static]
Initial value:
{
          
    {0, NULL, 2, CT_VALUE, "wIdent"},        
    {0, NULL, 2, CT_VALUE, "dty"},           
    {0, NULL, 2, CT_VALUE, "wTool"},         
    {0, NULL, 2, CT_VALUE, "reserved1"},     
    {0, NULL, 2, CT_VALUE, "reserved2"},     
    {0, NULL, 2, CT_VALUE, "reserved3"},     
    {0, NULL, 2, CT_VALUE, "reserved4"},     
    {0, NULL, 4, CT_VALUE, "fcMac"},         
    {0, NULL, 2, CT_VALUE, "pnPara"},        
    {0, NULL, 2, CT_VALUE, "pnFntb"},        
    {0, NULL, 2, CT_VALUE, "pnSep"},         
    {0, NULL, 2, CT_VALUE, "pnSetb"},        
    {0, NULL, 2, CT_VALUE, "pnPgtb"},        
    {0, NULL, 2, CT_VALUE, "pnFfntb"},       
    {0, NULL, 64, CT_IGNORE, "szSsht"},      
    {0, NULL, 2, CT_VALUE, "pnMac"},         
    {0, NULL, 0, CT_IGNORE, NULL}            
}
const wri_struct WRI_OLE_HEADER[] [static]
Initial value:
{
           
    {0, NULL, 2, CT_VALUE, "mm"},             
    {0, NULL, 4, CT_IGNORE, "not_used"},      
    {0, NULL, 2, CT_VALUE, "objectType"},     
    {0, NULL, 2, CT_VALUE, "dxaOffset"},      
    {0, NULL, 2, CT_VALUE, "dxaSize"},        
    {0, NULL, 2, CT_VALUE, "dyaSize"},        
    {0, NULL, 2, CT_IGNORE, "not_used2"},     
    {0, NULL, 4, CT_VALUE, "dwDataSize"},     
    {0, NULL, 4, CT_IGNORE, "not_used3"},     
    {0, NULL, 4, CT_VALUE, "dwObjNum"},       
    {0, NULL, 2, CT_VALUE, "not_used4"},      
    {0, NULL, 2, CT_VALUE, "cbHeader"},       
    {0, NULL, 4, CT_IGNORE, "not_used5"},     
    {0, NULL, 2, CT_VALUE, "mx"},             
    {0, NULL, 2, CT_VALUE, "my"},             
    {0, NULL, 0, CT_IGNORE, NULL}             
}
const wri_struct WRI_PICTURE_HEADER[] [static]
Initial value:
{
             
    
    {0, NULL, 2, CT_VALUE, "mm"},               
    {0, NULL, 2, CT_VALUE, "xExt"},             
    {0, NULL, 2, CT_VALUE, "yExt"},             
    {0, NULL, 2, CT_IGNORE, "hMF"},             
    
    {0, NULL, 2, CT_VALUE, "dxaOffset"},        
    {0, NULL, 2, CT_VALUE, "dxaSize"},          
    {0, NULL, 2, CT_VALUE, "dyaSize"},          
    {0, NULL, 2, CT_VALUE, "cbOldSize"},        
    
    {0, NULL, 2, CT_VALUE, "bmType"},           
    {0, NULL, 2, CT_VALUE, "bmWidth"},          
    {0, NULL, 2, CT_VALUE, "bmHeight"},         
    {0, NULL, 2, CT_VALUE, "bmWidthBytes"},     
    {0, NULL, 1, CT_VALUE, "bmPlanes"},         
    {0, NULL, 1, CT_VALUE, "bmBitsPixel"},      
    {0, NULL, 4, CT_VALUE, "bmBits"},           
    
    {0, NULL, 2, CT_VALUE, "cbHeader"},         
    {0, NULL, 4, CT_VALUE, "cbSize"},           
    {0, NULL, 2, CT_VALUE, "mx"},               
    {0, NULL, 2, CT_VALUE, "my"},               
    {0, NULL, 0, CT_IGNORE, NULL}               
}