18 #ifndef ASSIGNVARIABLES_H 19 #define ASSIGNVARIABLES_H 23 #include <QStringList> 45 QDomElement
toXml(QDomDocument &document,
const QString& tag_name = QString(
"sequentialNumbers"))
const;
46 void fromXml(
const QDomElement &element);
90 #endif // ASSIGNVARIABLES_H const Element * m_element
static QString formulaToLabel(QString formula, sequentialNumbers &seqStruct, Diagram *diagram, const Element *elmt=nullptr)
AssignVariables::formulaToLabel Return the with variable assigned (ready to be displayed) ...
void setSequentialToList(QStringList &list, NumerotationContext &context, const QString &type)
setSequentialToList Append all sequential of type owned by in list
QDomElement toXml(QDomDocument &document, const QString &tag_name=QString("sequentialNumbers")) const
sequentialNumbers::toXml export this sequential numbers into a QDomElement.
void setSequential(const QString &label, sequentialNumbers &seqStruct, NumerotationContext &context, Diagram *diagram, const QString &hashKey)
setSequential Fill seqStruct
QString numerotationContextToFormula(const NumerotationContext &nc)
numerotationContextToFormula
bool operator==(const sequentialNumbers &other) const
AssignVariables(const QString &formula, const sequentialNumbers &seqStruct, Diagram *diagram, const Element *elmt=nullptr)
bool operator!=(const sequentialNumbers &other) const
QString elementPrefixForLocation(const ElementsLocation &location)
elementPrefixForLocation
sequentialNumbers & operator=(const sequentialNumbers &other)
void setFolioSequentialToHash(QStringList &list, QHash< QString, QStringList > &hash, const QString &autoNumName)
setFolioSequentialToHash Insert all value of in with key
sequentialNumbers m_seq_struct
void fromXml(const QDomElement &element)
sequentialNumbers::fromXml Import sequential values from a QDomElement
QStringList hundred_folio
Q_DECLARE_METATYPE(NamesList)
void assignTitleBlockVar()
The AssignVariables class This class assign variable of a formula string. Return the final string use...
sequentialNumbers()
sequentialNumbers::sequentialNumbers
static QString replaceVariable(const QString &formula, const DiagramContext &dc)
AssignVariables::replaceVariable Replace the variables in in form %{my-var} to the corresponding val...