Name

DocTemplateHolder

Synopsis

class DocTemplateHolder
  :  (SimpleWrappedObjectSernaApi::SimpleWrappedObject) 
:
  # construct/copy/destruct
  __init__(SernaApiBase * = 0)

  # public member functions

  bool getDocProperties(const SString &, PropertyNode &) 
  PropertyNode getDocTemplates() 
  bool findMatchedTemplates(PropertyNode &, const PropertyNode &, 
                            const SString &) const

  # public static functions

  DocTemplateHolder instance() 

Description

DocTemplateHolder construct/copy/destruct

  1. __init__(SernaApiBase * = 0)


DocTemplateHolder public member functions

  1. bool getDocProperties(const SString & path, PropertyNode & root)

    Returns properties taken from document and matched template.


  2. PropertyNode getDocTemplates()

    Returns properties for all loaded document templates.


  3. bool findMatchedTemplates(PropertyNode & result,                           const PropertyNode & fileProps,                           const SString & fileName) const

    Returns matched templates sorted by priority.


DocTemplateHolder public static functions

  1. DocTemplateHolder instance()