PhoenixLecture  2.0.0
Set of tools to make lectures
update_firstCss.h File Reference
#include "platexobj_utils.h"
+ Include dependency graph for update_firstCss.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void update_firstCss (PString &firstCss, const PLatexObj &source)
 Update the firstCss style to be used. More...
 

Function Documentation

◆ update_firstCss()

void update_firstCss ( PString firstCss,
const PLatexObj source 
)

Update the firstCss style to be used.

Parameters
[out]firstCss: first css style to be used
source: PLatexObj raw source

Definition at line 15 of file update_firstCss.cpp.

15  {
16  const PVecLatexObj & vecObj = source.getVecContent();
17  if(vecObj.size() == 0lu){return;}
18  const PLatexObj & firstObj = vecObj.front();
19  if(firstObj.getType() == PLatexType::UPDATESTYLE){
20  firstCss = firstObj.getName();
21  }
22 }
Describe a latex object.
Definition: PLatexObj.h:40
const std::vector< PLatexObj > & getVecContent() const
Gets the vecContent of the PLatexObj.
Definition: PLatexObj.cpp:410
const PLatexType::PLatexType & getType() const
Gets the type of the PLatexObj.
Definition: PLatexObj.cpp:298
const PString & getName() const
Gets the name of the PLatexObj.
Definition: PLatexObj.cpp:326
std::vector< PLatexObj > PVecLatexObj
Vector of obj.

References PLatexObj::getName(), PLatexObj::getType(), PLatexObj::getVecContent(), and PLatexType::UPDATESTYLE.

Referenced by processAllFile().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: