#include <string.h>
#include <stdlib.h>
#include "ut_types.h"
#include "ut_assert.h"
#include "ut_string.h"
#include "ut_hash.h"
#include "ut_debugmsg.h"
#include "pp_Property.h"
#include "pp_AttrProp.h"
#include "pd_Document.h"
#include "pd_Style.h"
Functions | |
static int | s_compare (const void *a, const void *b) |
const PP_Property * | PP_lookupProperty (const gchar *name) |
void | PP_resetInitialBiDiValues (const gchar *pszValue) |
void | PP_setDefaultFontFamily (const char *pszFamily) |
static PD_Style * | _getStyle (const PP_AttrProp *pAttrProp, const PD_Document *pDoc) |
static const gchar * | s_evalProperty (const PP_Property *pProp, const PP_AttrProp *pAttrProp, const PD_Document *pDoc, bool bExpandStyles) |
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) |
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, bool bExpandStyles) |
UT_uint32 | PP_getPropertyCount () |
const gchar * | PP_getNthPropertyName (UT_uint32 n) |
tPropLevel | PP_getNthPropertyLevel (UT_uint32 n) |
Variables | |
gchar | def_dom_dir [] = "ltr" |
gchar | default_direction [] = "ltr" |
gchar | text_align [] = "left\0" |
static PP_Property | _props [] |
static PD_Style* _getStyle | ( | const PP_AttrProp * | pAttrProp, | |
const PD_Document * | pDoc | |||
) | [static] |
References gchar, PP_AttrProp::getAttribute(), PD_Document::getStyle(), PT_NAME_ATTRIBUTE_NAME, PT_STYLE_ATTRIBUTE_NAME, and UT_return_val_if_fail.
Referenced by PP_evalPropertyType(), and s_evalProperty().
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 | |||
) |
References PP_Property::canInherit(), gchar, PD_Document::getAttrProp(), PP_Property::getInitial(), PD_Style::getProperty(), PP_AttrProp::getProperty(), PD_Document::getStyle(), PP_lookupProperty(), s_evalProperty(), and UT_DEBUGMSG.
Referenced by s_RTF_ListenerGetProps::_compute_span_properties(), fp_TabRun::_draw(), _fmtPair::_fmtPair(), s_RTF_ListenerWriteDoc::_getColumnWidthInches(), s_XSL_FO_Listener::_handlePageSize(), fp_TextRun::_lookupProperties(), fp_FieldRun::_lookupProperties(), fp_TabRun::_lookupProperties(), fp_MathRun::_lookupProperties(), fp_FmtMarkRun::_lookupProperties(), fp_EmbedRun::_lookupProperties(), fl_DocSectionLayout::_lookupProperties(), fl_BlockLayout::_lookupProperties(), IE_Exp_HTML_Listener::_makeStylesheet(), s_RTF_ListenerWriteDoc::_rtf_docfmt(), s_RTF_ListenerWriteDoc::_rtf_open_section(), s_RTF_ListenerGetProps::_searchCellAPI(), s_RTF_ListenerGetProps::_searchTableAPI(), IE_Exp_RTF::_write_parafmt(), s_KWord_1_Listener::_writeMarginSize(), fp_Run::drawDecors(), FL_DocLayout::findFont(), FV_View::getBlockFormat(), FV_View::getCharFormat(), s_RTF_AttrPropAdapter_AP::getProperty(), fl_BlockLayout::getProperty(), FV_View::getSectionFormat(), fl_BlockLayout::itemizeSpan(), fp_Run::lookupProperties(), Text_Listener::populateStrux(), s_RTF_ListenerGetProps::populateStrux(), and FV_View::queryCharFormat().
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, | |||
bool | bExpandStyles | |||
) |
References _getStyle(), PP_Property::canInherit(), PD_Style::getBasedOn(), PP_Property::getInitialType(), PP_Property::getName(), PD_Style::getPropertyType(), PP_AttrProp::getPropertyType(), PD_Document::getStyle(), pp_BASEDON_DEPTH_LIMIT, PP_lookupProperty(), and UT_DEBUGMSG.
Referenced by fp_TextRun::_lookupProperties(), fp_MathRun::_lookupProperties(), and fl_BlockLayout::getPropertyType().
tPropLevel PP_getNthPropertyLevel | ( | UT_uint32 | n | ) |
References PP_Property::getLevel().
Referenced by FV_View::getBlockFormat(), FV_View::getCellFormat(), FV_View::getCharFormat(), and FV_View::getSectionFormat().
const gchar* PP_getNthPropertyName | ( | UT_uint32 | n | ) |
References PP_Property::getName().
Referenced by FV_View::getBlockFormat(), FV_View::getCellFormat(), FV_View::getCharFormat(), and FV_View::getSectionFormat().
UT_uint32 PP_getPropertyCount | ( | ) |
Referenced by FV_View::getBlockFormat(), FV_View::getCellFormat(), FV_View::getCharFormat(), and FV_View::getSectionFormat().
const PP_Property* PP_lookupProperty | ( | const gchar * | name | ) |
References s_compare().
Referenced by ODe_Text_Listener::_initDefaultHeadingStyles(), IE_Exp_HTML_Listener::_insertTOC(), fl_TOCLayout::getDefaultDestStyle(), fl_TOCLayout::getDefaultSourceStyle(), ODe_Text_Listener::openTOC(), ODe_HeadingSearcher_Listener::openTOC(), PP_evalProperty(), PP_evalPropertyType(), AP_Dialog_Paragraph::setDialogData(), and AP_Dialog_FormatTOC::setPropFromDoc().
void PP_resetInitialBiDiValues | ( | const gchar * | pszValue | ) |
References gchar, PP_Property::m_pszInitial, and UT_DEBUGMSG.
Referenced by FV_View::FV_View().
void PP_setDefaultFontFamily | ( | const char * | pszFamily | ) |
References UT_String::c_str(), gchar, PP_Property::m_pszInitial, and s_compare().
Referenced by FV_View::FV_View().
static int s_compare | ( | const void * | a, | |
const void * | b | |||
) | [static] |
References PP_Property::getName().
Referenced by PP_lookupProperty(), and PP_setDefaultFontFamily().
static const gchar* s_evalProperty | ( | const PP_Property * | pProp, | |
const PP_AttrProp * | pAttrProp, | |||
const PD_Document * | pDoc, | |||
bool | bExpandStyles | |||
) | [static] |
References _getStyle(), gchar, PD_Style::getBasedOn(), PP_Property::getName(), PD_Style::getProperty(), PP_AttrProp::getProperty(), and pp_BASEDON_DEPTH_LIMIT.
Referenced by PP_evalProperty().
PP_Property _props[] [static] |
Definitions are: Property Nme: Initial Value: Can Inherit: Pointer to class : tPropLevel tPropLevel should be set by or-ing the values defined in PP_Property.h
gchar def_dom_dir[] = "ltr" |
gchar default_direction[] = "ltr" |
gchar text_align[] = "left\0" |
Referenced by IE_Imp_MSWrite::read_pap().