Classes | Defines | Typedefs | Enumerations | Functions

pp_Property.h File Reference

#include <memory>
#include <string>
#include <vector>
#include "ut_types.h"
#include "ut_misc.h"
#include "ut_units.h"
#include "pp_PropertyMap.h"

Go to the source code of this file.

Classes

class  PP_PropertyType
class  PP_PropertyTypeBool
class  PP_PropertyTypeInt
class  PP_PropertyTypeSize
class  PP_PropertyTypeColor
class  PP_Property

Defines

#define pp_BASEDON_DEPTH_LIMIT   10
#define ASSERT_PV_SIZE(x)   UT_ASSERT(x.size() % 2 == 0)
#define PP_LEVEL_CHAR   0x00000001
#define PP_LEVEL_BLOCK   0x00000002
#define PP_LEVEL_SECT   0x00000004
#define PP_LEVEL_DOC   0x00000008
#define PP_LEVEL_TABLE   0x00000010
#define PP_LEVEL_OBJ   0x00000020
#define PP_LEVEL_IMG   0x00000040
#define PP_LEVEL_FIELD   0x00000080
#define PP_LEVEL_FRAME   0x00000100

Typedefs

typedef std::vector< std::string > PP_PropertyVector
 A basic container of properties vector.
typedef unsigned int tPropLevel

Enumerations

enum  tProperty_type { Property_type_bool, Property_type_int, Property_type_size, Property_type_color }

Functions

ABI_EXPORT const PP_PropertyPP_lookupProperty (const gchar *pszName)
ABI_EXPORT void PP_resetInitialBiDiValues (const gchar *pszValue)
ABI_EXPORT void PP_setDefaultFontFamily (const char *pszFamily)
ABI_EXPORT const gchar * PP_evalProperty (const gchar *pszName, const PP_AttrProp *pSpanAttrProp, const PP_AttrProp *pBlockAttrProp, const PP_AttrProp *pSectionAttrProp, const PD_Document *pDoc, bool bExpandStyles=false)
ABI_EXPORT std::unique_ptr
< PP_PropertyType
PP_evalPropertyType (const gchar *pszName, const PP_AttrProp *pSpanAttrProp, const PP_AttrProp *pBlockAttrProp, const PP_AttrProp *pSectionAttrProp, tProperty_type Type, const PD_Document *pDoc=NULL, bool bExpandStyles=false)
ABI_EXPORT UT_uint32 PP_getPropertyCount ()
ABI_EXPORT const gchar * PP_getNthPropertyName (UT_uint32 n)
ABI_EXPORT tPropLevel PP_getNthPropertyLevel (UT_uint32 n)

Define Documentation

#define ASSERT_PV_SIZE (   x  )     UT_ASSERT(x.size() % 2 == 0)
#define pp_BASEDON_DEPTH_LIMIT   10
#define PP_LEVEL_BLOCK   0x00000002

Referenced by FV_View::getBlockFormat().

#define PP_LEVEL_CHAR   0x00000001

Referenced by FV_View::getCharFormat().

#define PP_LEVEL_DOC   0x00000008
#define PP_LEVEL_FIELD   0x00000080
#define PP_LEVEL_FRAME   0x00000100
#define PP_LEVEL_IMG   0x00000040
#define PP_LEVEL_OBJ   0x00000020
#define PP_LEVEL_SECT   0x00000004
#define PP_LEVEL_TABLE   0x00000010

Referenced by FV_View::getCellFormat().


Typedef Documentation

typedef std::vector<std::string> PP_PropertyVector

A basic container of properties vector.

This replaces the gchar**

typedef unsigned int tPropLevel

Enumeration Type Documentation

Enumerator:
Property_type_bool 
Property_type_int 
Property_type_size 
Property_type_color 

Function Documentation

ABI_EXPORT const gchar* PP_evalProperty ( const gchar *  pszName,
const PP_AttrProp pSpanAttrProp,
const PP_AttrProp pBlockAttrProp,
const PP_AttrProp pSectionAttrProp,
const PD_Document pDoc,
bool  bExpandStyles = false 
)
ABI_EXPORT std::unique_ptr<PP_PropertyType> PP_evalPropertyType ( const gchar *  pszName,
const PP_AttrProp pSpanAttrProp,
const PP_AttrProp pBlockAttrProp,
const PP_AttrProp pSectionAttrProp,
tProperty_type  Type,
const PD_Document pDoc = NULL,
bool  bExpandStyles = false 
)
ABI_EXPORT tPropLevel PP_getNthPropertyLevel ( UT_uint32  n  ) 
ABI_EXPORT const gchar* PP_getNthPropertyName ( UT_uint32  n  ) 
ABI_EXPORT UT_uint32 PP_getPropertyCount (  ) 
ABI_EXPORT const PP_Property* PP_lookupProperty ( const gchar *  pszName  ) 
ABI_EXPORT void PP_resetInitialBiDiValues ( const gchar *  pszValue  ) 
ABI_EXPORT void PP_setDefaultFontFamily ( const char *  pszFamily  )