PhoenixLecture  2.0.0
Set of tools to make lectures
PEnvironement Class Reference

describe a CSS environement for latex More...

#include <PLatexObj.h>

+ Collaboration diagram for PEnvironement:

Public Member Functions

PStringgetBalise ()
 Gets the balise of the PEnvironement. More...
 
const PStringgetBalise () const
 Gets the balise of the PEnvironement. More...
 
PStringgetCss ()
 Gets the css of the PEnvironement. More...
 
const PStringgetCss () const
 Gets the css of the PEnvironement. More...
 
bool & getIsAllowComment ()
 Gets the isAllowComment of the PEnvironement. More...
 
bool getIsAllowComment () const
 Gets the isAllowComment of the PEnvironement. More...
 
bool & getIsAlloxMath ()
 Gets the isAlloxMath of the PEnvironement. More...
 
bool getIsAlloxMath () const
 Gets the isAlloxMath of the PEnvironement. More...
 
PStringgetName ()
 Gets the name of the PEnvironement. More...
 
const PStringgetName () const
 Gets the name of the PEnvironement. More...
 
PEnvironementoperator= (const PEnvironement &other)
 Operator = of class PEnvironement. More...
 
 PEnvironement ()
 Constructor of class PEnvironement. More...
 
 PEnvironement (const PEnvironement &other)
 Copy Constructor of class PEnvironement. More...
 
void setBalise (const PString &balise)
 Sets the balise of the PEnvironement. More...
 
void setCss (const PString &css)
 Sets the css of the PEnvironement. More...
 
void setIsAllowComment (bool isAllowComment)
 Sets the isAllowComment of the PEnvironement. More...
 
void setIsAlloxMath (bool isAlloxMath)
 Sets the isAlloxMath of the PEnvironement. More...
 
void setName (const PString &name)
 Sets the name of the PEnvironement. More...
 
virtual ~PEnvironement ()
 Destructor of class PEnvironement. More...
 

Protected Member Functions

void copyPEnvironement (const PEnvironement &other)
 Copy Function of class PEnvironement. More...
 

Private Member Functions

void initialisationPEnvironement ()
 Initialisation Function of class PEnvironement. More...
 

Private Attributes

PString p_balise
 balise to be used in the environement More...
 
PString p_css
 CSS style of the environement. More...
 
bool p_isAllowComment
 True to allow comments. More...
 
bool p_isAlloxMath
 True to allow math. More...
 
PString p_name
 Name of the environement. More...
 

Detailed Description

describe a CSS environement for latex

Definition at line 272 of file PLatexObj.h.

Constructor & Destructor Documentation

◆ PEnvironement() [1/2]

PEnvironement::PEnvironement ( )

Constructor of class PEnvironement.

Definition at line 1054 of file PLatexObj.cpp.

1054  {
1056 }
void initialisationPEnvironement()
Initialisation Function of class PEnvironement.
Definition: PLatexObj.cpp:1196

References initialisationPEnvironement().

+ Here is the call graph for this function:

◆ PEnvironement() [2/2]

PEnvironement::PEnvironement ( const PEnvironement other)

Copy Constructor of class PEnvironement.

Parameters
other: PEnvironement we want ot copy

Definition at line 1061 of file PLatexObj.cpp.

1061  {
1062  copyPEnvironement(other);
1063 }
void copyPEnvironement(const PEnvironement &other)
Copy Function of class PEnvironement.
Definition: PLatexObj.cpp:1187

References copyPEnvironement().

+ Here is the call graph for this function:

◆ ~PEnvironement()

PEnvironement::~PEnvironement ( )
virtual

Destructor of class PEnvironement.

Definition at line 1066 of file PLatexObj.cpp.

1066  {
1067 
1068 }

Member Function Documentation

◆ copyPEnvironement()

void PEnvironement::copyPEnvironement ( const PEnvironement other)
protected

Copy Function of class PEnvironement.

Parameters
other: PEnvironement we want ot copy

Definition at line 1187 of file PLatexObj.cpp.

1187  {
1188  p_name = other.p_name;
1189  p_css = other.p_css;
1190  p_balise = other.p_balise;
1192  p_isAlloxMath = other.p_isAlloxMath;
1193 }
PString p_name
Name of the environement.
Definition: PLatexObj.h:298
PString p_css
CSS style of the environement.
Definition: PLatexObj.h:300
PString p_balise
balise to be used in the environement
Definition: PLatexObj.h:302
bool p_isAlloxMath
True to allow math.
Definition: PLatexObj.h:306
bool p_isAllowComment
True to allow comments.
Definition: PLatexObj.h:304

References p_balise, p_css, p_isAllowComment, p_isAlloxMath, and p_name.

Referenced by operator=(), and PEnvironement().

+ Here is the caller graph for this function:

◆ getBalise() [1/2]

PString & PEnvironement::getBalise ( )

Gets the balise of the PEnvironement.

Returns
balise of the PEnvironement

Definition at line 1152 of file PLatexObj.cpp.

1152  {
1153  return p_balise;
1154 }

References p_balise.

◆ getBalise() [2/2]

const PString & PEnvironement::getBalise ( ) const

Gets the balise of the PEnvironement.

Returns
balise of the PEnvironement

Definition at line 1145 of file PLatexObj.cpp.

1145  {
1146  return p_balise;
1147 }

References p_balise.

Referenced by PMarkdownParser::parseExtraEnvironement(), PConfigParser::parseExtraEnvironementContent(), PConfigParser::parseExtraEnvironementFunction(), and PConfigParser::parseExtraFunction().

+ Here is the caller graph for this function:

◆ getCss() [1/2]

PString & PEnvironement::getCss ( )

Gets the css of the PEnvironement.

Returns
css of the PEnvironement

Definition at line 1138 of file PLatexObj.cpp.

1138  {
1139  return p_css;
1140 }

References p_css.

◆ getCss() [2/2]

const PString & PEnvironement::getCss ( ) const

Gets the css of the PEnvironement.

Returns
css of the PEnvironement

Definition at line 1131 of file PLatexObj.cpp.

1131  {
1132  return p_css;
1133 }

References p_css.

◆ getIsAllowComment() [1/2]

bool & PEnvironement::getIsAllowComment ( )

Gets the isAllowComment of the PEnvironement.

Returns
isAllowComment of the PEnvironement

Definition at line 1166 of file PLatexObj.cpp.

1166  {
1167  return p_isAllowComment;
1168 }

References p_isAllowComment.

◆ getIsAllowComment() [2/2]

bool PEnvironement::getIsAllowComment ( ) const

Gets the isAllowComment of the PEnvironement.

Returns
isAllowComment of the PEnvironement

Definition at line 1159 of file PLatexObj.cpp.

1159  {
1160  return p_isAllowComment;
1161 }

References p_isAllowComment.

Referenced by PConfigParser::parseExtraEnvironementContent().

+ Here is the caller graph for this function:

◆ getIsAlloxMath() [1/2]

bool & PEnvironement::getIsAlloxMath ( )

Gets the isAlloxMath of the PEnvironement.

Returns
isAlloxMath of the PEnvironement

Definition at line 1180 of file PLatexObj.cpp.

1180  {
1181  return p_isAlloxMath;
1182 }

References p_isAlloxMath.

◆ getIsAlloxMath() [2/2]

bool PEnvironement::getIsAlloxMath ( ) const

Gets the isAlloxMath of the PEnvironement.

Returns
isAlloxMath of the PEnvironement

Definition at line 1173 of file PLatexObj.cpp.

1173  {
1174  return p_isAlloxMath;
1175 }

References p_isAlloxMath.

Referenced by PConfigParser::parseExtraEnvironementContent().

+ Here is the caller graph for this function:

◆ getName() [1/2]

PString & PEnvironement::getName ( )

Gets the name of the PEnvironement.

Returns
name of the PEnvironement

Definition at line 1124 of file PLatexObj.cpp.

1124  {
1125  return p_name;
1126 }

References p_name.

◆ getName() [2/2]

const PString & PEnvironement::getName ( ) const

Gets the name of the PEnvironement.

Returns
name of the PEnvironement

Definition at line 1117 of file PLatexObj.cpp.

1117  {
1118  return p_name;
1119 }

References p_name.

◆ initialisationPEnvironement()

void PEnvironement::initialisationPEnvironement ( )
private

Initialisation Function of class PEnvironement.

Definition at line 1196 of file PLatexObj.cpp.

1196  {
1197  p_name = "";
1198  p_css = "";
1199  p_balise = "";
1200  p_isAllowComment = false;
1201  p_isAlloxMath = false;
1202 }

References p_balise, p_css, p_isAllowComment, p_isAlloxMath, and p_name.

Referenced by PEnvironement().

+ Here is the caller graph for this function:

◆ operator=()

PEnvironement & PEnvironement::operator= ( const PEnvironement other)

Operator = of class PEnvironement.

Parameters
other: PEnvironement we want ot copy
Returns
copied class PEnvironement

Definition at line 1074 of file PLatexObj.cpp.

1074  {
1075  copyPEnvironement(other);
1076  return *this;
1077 }

References copyPEnvironement().

+ Here is the call graph for this function:

◆ setBalise()

void PEnvironement::setBalise ( const PString balise)

Sets the balise of the PEnvironement.

Parameters
balise: balise of the PEnvironement

Definition at line 1096 of file PLatexObj.cpp.

1096  {
1097  p_balise = balise;
1098 }

References p_balise.

Referenced by PGenericParser::loadDirExtraEnvironementFile(), and PGenericParser::loadDirExtraFunctionFile().

+ Here is the caller graph for this function:

◆ setCss()

void PEnvironement::setCss ( const PString css)

Sets the css of the PEnvironement.

Parameters
css: css of the PEnvironement

Definition at line 1089 of file PLatexObj.cpp.

1089  {
1090  p_css = css;
1091 }

References p_css.

Referenced by PGenericParser::loadDirExtraEnvironementFile(), and PGenericParser::loadDirExtraFunctionFile().

+ Here is the caller graph for this function:

◆ setIsAllowComment()

void PEnvironement::setIsAllowComment ( bool  isAllowComment)

Sets the isAllowComment of the PEnvironement.

Parameters
isAllowComment: isAllowComment of the PEnvironement

Definition at line 1103 of file PLatexObj.cpp.

1103  {
1104  p_isAllowComment = isAllowComment;
1105 }

References p_isAllowComment.

Referenced by PGenericParser::loadDirExtraEnvironementFile().

+ Here is the caller graph for this function:

◆ setIsAlloxMath()

void PEnvironement::setIsAlloxMath ( bool  isAlloxMath)

Sets the isAlloxMath of the PEnvironement.

Parameters
isAlloxMath: isAlloxMath of the PEnvironement

Definition at line 1110 of file PLatexObj.cpp.

1110  {
1111  p_isAlloxMath = isAlloxMath;
1112 }

References p_isAlloxMath.

Referenced by PGenericParser::loadDirExtraEnvironementFile().

+ Here is the caller graph for this function:

◆ setName()

void PEnvironement::setName ( const PString name)

Sets the name of the PEnvironement.

Parameters
name: name of the PEnvironement

Definition at line 1082 of file PLatexObj.cpp.

1082  {
1083  p_name = name;
1084 }

References p_name.

Referenced by PGenericParser::loadDirExtraEnvironementFile(), and PGenericParser::loadDirExtraFunctionFile().

+ Here is the caller graph for this function:

Member Data Documentation

◆ p_balise

PString PEnvironement::p_balise
private

balise to be used in the environement

Definition at line 302 of file PLatexObj.h.

Referenced by copyPEnvironement(), getBalise(), initialisationPEnvironement(), and setBalise().

◆ p_css

PString PEnvironement::p_css
private

CSS style of the environement.

Definition at line 300 of file PLatexObj.h.

Referenced by copyPEnvironement(), getCss(), initialisationPEnvironement(), and setCss().

◆ p_isAllowComment

bool PEnvironement::p_isAllowComment
private

True to allow comments.

Definition at line 304 of file PLatexObj.h.

Referenced by copyPEnvironement(), getIsAllowComment(), initialisationPEnvironement(), and setIsAllowComment().

◆ p_isAlloxMath

bool PEnvironement::p_isAlloxMath
private

True to allow math.

Definition at line 306 of file PLatexObj.h.

Referenced by copyPEnvironement(), getIsAlloxMath(), initialisationPEnvironement(), and setIsAlloxMath().

◆ p_name

PString PEnvironement::p_name
private

Name of the environement.

Definition at line 298 of file PLatexObj.h.

Referenced by copyPEnvironement(), getName(), initialisationPEnvironement(), and setName().


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