mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/MI-38.git
synced 2026-01-24 01:15:41 +03:00
44 lines
959 B
C++
44 lines
959 B
C++
#ifndef HTML_H
|
|
#define HTML_H
|
|
|
|
#include "s1000d_manager.h"
|
|
#include "ru_const.h"
|
|
#include "splashform.h"
|
|
|
|
class HTML
|
|
{
|
|
public:
|
|
HTML();
|
|
void Generate(S1000D_Manager* SM, bool _toScorm, SplashForm* _splash);
|
|
void parseNode(QDomNode node, int lvl);
|
|
QString spc(int n);
|
|
void add(int lvl, QString s);
|
|
void cat(QString s);
|
|
QString searchSVGNodeForText(QDomNode g);
|
|
|
|
S1000D_Manager* SM;
|
|
RU_Const *ru_const;
|
|
SplashForm* splash;
|
|
bool DBG = true;
|
|
bool toScorm;
|
|
int ID_pars, ID_tabs, ID_figs, ID_mmos;
|
|
struct labelStruct {
|
|
QString title, id;
|
|
QString type;
|
|
};
|
|
QList<labelStruct> idList;
|
|
struct acronymStruct {
|
|
QString id, term, definition;
|
|
};
|
|
QList<acronymStruct> acrList;
|
|
QString footnoteID;
|
|
int svgUI;
|
|
bool paraIdent=true;
|
|
QString paraTextAlign;
|
|
int iframeDivCnt;
|
|
|
|
QString domElementToXML(const QDomElement& elem, int lvl);
|
|
};
|
|
|
|
#endif // HTML_H
|