My Project
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Public Member Functions | Private Attributes | Static Private Attributes | List of all members
PageTreeContext::Private Class Reference

Classes

struct  Cachable
 

Public Member Functions

 Private (const PageSDict *pages)
 
TemplateVariant get (const char *n) const
 
TemplateVariant tree () const
 
TemplateVariant fileName () const
 
TemplateVariant relPath () const
 
TemplateVariant highlight () const
 
TemplateVariant subhighlight () const
 
TemplateVariant title () const
 
TemplateVariant maxDepth () const
 
TemplateVariant preferredDepth () const
 

Private Attributes

SharedPtr< NestingContextm_pageTree
 
Cachable m_cache
 

Static Private Attributes

static PropertyMapper
< PageTreeContext::Private
s_inst
 

Detailed Description

Definition at line 7265 of file context.cpp.

Constructor & Destructor Documentation

PageTreeContext::Private::Private ( const PageSDict pages)
inline

Definition at line 7268 of file context.cpp.

References NestingContext::addPages(), NestingContext::alloc(), fileName(), highlight(), Config::init(), m_pageTree, maxDepth(), preferredDepth(), relPath(), SharedPtr< T >::reset(), s_inst, subhighlight(), title(), and tree().

{
// Add pages
if (pages)
{
m_pageTree->addPages(*pages,TRUE);
}
//%% PageNodeList tree:
static bool init=FALSE;
if (!init)
{
s_inst.addProperty("tree", &Private::tree);
s_inst.addProperty("fileName", &Private::fileName);
s_inst.addProperty("relPath", &Private::relPath);
s_inst.addProperty("highlight", &Private::highlight);
s_inst.addProperty("subhighlight", &Private::subhighlight);
s_inst.addProperty("title", &Private::title);
s_inst.addProperty("preferredDepth",&Private::preferredDepth);
s_inst.addProperty("maxDepth", &Private::maxDepth);
init=TRUE;
}
}

Member Function Documentation

TemplateVariant PageTreeContext::Private::fileName ( ) const
inline

Definition at line 7300 of file context.cpp.

Referenced by Private().

{
return "pages";
}
TemplateVariant PageTreeContext::Private::get ( const char *  n) const
inline

Definition at line 7292 of file context.cpp.

References s_inst.

Referenced by PageTreeContext::get().

{
return s_inst.get(this,n);
}
TemplateVariant PageTreeContext::Private::highlight ( ) const
inline

Definition at line 7308 of file context.cpp.

Referenced by Private().

{
return "pages";
}
TemplateVariant PageTreeContext::Private::maxDepth ( ) const
inline
TemplateVariant PageTreeContext::Private::preferredDepth ( ) const
inline
TemplateVariant PageTreeContext::Private::relPath ( ) const
inline

Definition at line 7304 of file context.cpp.

Referenced by Private().

{
return "";
}
TemplateVariant PageTreeContext::Private::subhighlight ( ) const
inline

Definition at line 7312 of file context.cpp.

Referenced by Private().

{
return "";
}
TemplateVariant PageTreeContext::Private::title ( ) const
inline

Definition at line 7316 of file context.cpp.

References theTranslator, and Translator::trRelatedPages().

Referenced by Private().

{
}
TemplateVariant PageTreeContext::Private::tree ( ) const
inline

Definition at line 7296 of file context.cpp.

References SharedPtr< T >::get(), and m_pageTree.

Referenced by Private().

{
return m_pageTree.get();
}

Member Data Documentation

Cachable PageTreeContext::Private::m_cache
mutableprivate

Definition at line 7348 of file context.cpp.

Referenced by maxDepth(), and preferredDepth().

SharedPtr<NestingContext> PageTreeContext::Private::m_pageTree
private

Definition at line 7339 of file context.cpp.

Referenced by maxDepth(), preferredDepth(), Private(), and tree().

PropertyMapper< PageTreeContext::Private > PageTreeContext::Private::s_inst
staticprivate

Definition at line 7349 of file context.cpp.

Referenced by get(), and Private().


The documentation for this class was generated from the following file: