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

Public Member Functions

 Private (Definition *def)
 
TemplateVariant get (const char *n) const
 
TemplateVariant isLinkable () const
 
TemplateVariant anchor () const
 
TemplateVariant fileName () const
 
TemplateVariant text () const
 
TemplateVariant isReference () const
 
QCString relPathAsString () const
 
TemplateVariant externalReference () const
 

Private Attributes

Definitionm_def
 

Static Private Attributes

static PropertyMapper
< NavPathElemContext::Private
s_inst
 

Detailed Description

Definition at line 7626 of file context.cpp.

Constructor & Destructor Documentation

NavPathElemContext::Private::Private ( Definition def)
inline

Definition at line 7629 of file context.cpp.

References anchor(), externalReference(), fileName(), Config::init(), isLinkable(), isReference(), s_inst, and text().

: m_def(def)
{
static bool init=FALSE;
if (!init)
{
s_inst.addProperty("isLinkable", &Private::isLinkable);
s_inst.addProperty("fileName", &Private::fileName);
s_inst.addProperty("anchor", &Private::anchor);
s_inst.addProperty("text", &Private::text);
s_inst.addProperty("isReference", &Private::isReference);
s_inst.addProperty("externalReference",&Private::externalReference);
init=TRUE;
}
}

Member Function Documentation

TemplateVariant NavPathElemContext::Private::anchor ( ) const
inline

Definition at line 7651 of file context.cpp.

References Definition::anchor(), and m_def.

Referenced by Private().

{
return m_def->anchor();
}
TemplateVariant NavPathElemContext::Private::externalReference ( ) const
inline

Definition at line 7689 of file context.cpp.

References Definition::externalReference(), m_def, and relPathAsString().

Referenced by Private().

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

Definition at line 7655 of file context.cpp.

References Definition::getOutputFileBase(), and m_def.

Referenced by Private().

{
}
TemplateVariant NavPathElemContext::Private::get ( const char *  n) const
inline

Definition at line 7643 of file context.cpp.

References s_inst.

Referenced by NavPathElemContext::get().

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

Definition at line 7647 of file context.cpp.

References Definition::isLinkable(), and m_def.

Referenced by Private().

{
return m_def->isLinkable();
}
TemplateVariant NavPathElemContext::Private::isReference ( ) const
inline

Definition at line 7680 of file context.cpp.

References Definition::isReference(), and m_def.

Referenced by Private().

{
return m_def->isReference();
}
QCString NavPathElemContext::Private::relPathAsString ( ) const
inline

Definition at line 7684 of file context.cpp.

References Config_getBool.

Referenced by externalReference().

{
static bool createSubdirs = Config_getBool(CREATE_SUBDIRS);
return createSubdirs ? QCString("../../") : QCString("");
}
TemplateVariant NavPathElemContext::Private::text ( ) const
inline

Definition at line 7659 of file context.cpp.

References DefinitionIntf::definitionType(), Definition::localName(), m_def, DefinitionIntf::TypeClass, DefinitionIntf::TypeGroup, and DefinitionIntf::TypePage.

Referenced by Private().

{
QCString text = m_def->localName();
{
text = ((const GroupDef*)m_def)->groupTitle();
}
else if (type==Definition::TypePage && !(((const PageDef*)m_def)->title().isEmpty()))
{
text = ((const PageDef*)m_def)->title();
}
else if (type==Definition::TypeClass)
{
if (text.right(2)=="-p")
{
text = text.left(text.length()-2);
}
}
return text;
}

Member Data Documentation

Definition* NavPathElemContext::Private::m_def
private

Definition at line 7694 of file context.cpp.

Referenced by anchor(), externalReference(), fileName(), isLinkable(), isReference(), and text().

PropertyMapper< NavPathElemContext::Private > NavPathElemContext::Private::s_inst
staticprivate

Definition at line 7695 of file context.cpp.

Referenced by get(), and Private().


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