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 270 of file PLatexObj.h.

Constructor & Destructor Documentation

◆ PEnvironement() [1/2]

PEnvironement::PEnvironement ( )

Constructor of class PEnvironement.

Definition at line 1052 of file PLatexObj.cpp.

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

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 1059 of file PLatexObj.cpp.

1059  {
1060  copyPEnvironement(other);
1061 }
void copyPEnvironement(const PEnvironement &other)
Copy Function of class PEnvironement.
Definition: PLatexObj.cpp:1185

References copyPEnvironement().

+ Here is the call graph for this function:

◆ ~PEnvironement()

PEnvironement::~PEnvironement ( )
virtual

Destructor of class PEnvironement.

Definition at line 1064 of file PLatexObj.cpp.

1064  {
1065 
1066 }

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 1185 of file PLatexObj.cpp.

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

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 1150 of file PLatexObj.cpp.

1150  {
1151  return p_balise;
1152 }

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 1143 of file PLatexObj.cpp.

1143  {
1144  return p_balise;
1145 }

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 1136 of file PLatexObj.cpp.

1136  {
1137  return p_css;
1138 }

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 1129 of file PLatexObj.cpp.

1129  {
1130  return p_css;
1131 }

References p_css.

◆ getIsAllowComment() [1/2]

bool & PEnvironement::getIsAllowComment ( )

Gets the isAllowComment of the PEnvironement.

Returns
isAllowComment of the PEnvironement

Definition at line 1164 of file PLatexObj.cpp.

1164  {
1165  return p_isAllowComment;
1166 }

References p_isAllowComment.

◆ getIsAllowComment() [2/2]

bool PEnvironement::getIsAllowComment ( ) const

Gets the isAllowComment of the PEnvironement.

Returns
isAllowComment of the PEnvironement

Definition at line 1157 of file PLatexObj.cpp.

1157  {
1158  return p_isAllowComment;
1159 }

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 1178 of file PLatexObj.cpp.

1178  {
1179  return p_isAlloxMath;
1180 }

References p_isAlloxMath.

◆ getIsAlloxMath() [2/2]

bool PEnvironement::getIsAlloxMath ( ) const

Gets the isAlloxMath of the PEnvironement.

Returns
isAlloxMath of the PEnvironement

Definition at line 1171 of file PLatexObj.cpp.

1171  {
1172  return p_isAlloxMath;
1173 }

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 1122 of file PLatexObj.cpp.

1122  {
1123  return p_name;
1124 }

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 1115 of file PLatexObj.cpp.

1115  {
1116  return p_name;
1117 }

References p_name.

◆ initialisationPEnvironement()

void PEnvironement::initialisationPEnvironement ( )
private

Initialisation Function of class PEnvironement.

Definition at line 1194 of file PLatexObj.cpp.

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

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 1072 of file PLatexObj.cpp.

1072  {
1073  copyPEnvironement(other);
1074  return *this;
1075 }

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 1094 of file PLatexObj.cpp.

1094  {
1095  p_balise = balise;
1096 }

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 1087 of file PLatexObj.cpp.

1087  {
1088  p_css = css;
1089 }

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 1101 of file PLatexObj.cpp.

1101  {
1102  p_isAllowComment = isAllowComment;
1103 }

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 1108 of file PLatexObj.cpp.

1108  {
1109  p_isAlloxMath = isAlloxMath;
1110 }

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 1080 of file PLatexObj.cpp.

1080  {
1081  p_name = name;
1082 }

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 300 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 298 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 302 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 304 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 296 of file PLatexObj.h.

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


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