mirror of
https://github.com/fralx/LimeReport.git
synced 2025-11-25 08:28:06 +03:00
Define code style and format all source file using clang-format-14
except those placed in 3rdparty directories.
This commit is contained in:
@@ -30,43 +30,45 @@
|
||||
#ifndef LRXMLWRITER_H
|
||||
#define LRXMLWRITER_H
|
||||
|
||||
#include <QtXml>
|
||||
#include "lrbasedesignintf.h"
|
||||
#include "serializators/lrstorageintf.h"
|
||||
#include "serializators/lrxmlserializatorsfactory.h"
|
||||
#include "lrbasedesignintf.h"
|
||||
|
||||
namespace LimeReport{
|
||||
#include <QtXml>
|
||||
|
||||
class XMLWriter : public ItemsWriterIntf
|
||||
{
|
||||
namespace LimeReport {
|
||||
|
||||
class XMLWriter: public ItemsWriterIntf {
|
||||
public:
|
||||
XMLWriter();
|
||||
XMLWriter(QSharedPointer<QDomDocument> doc);
|
||||
~XMLWriter() {}
|
||||
~XMLWriter() { }
|
||||
|
||||
private:
|
||||
// ItemsWriterIntf interface
|
||||
void putItem(QObject* item);
|
||||
bool saveToFile(QString fileName);
|
||||
void putItem(QObject* item);
|
||||
bool saveToFile(QString fileName);
|
||||
QString saveToString();
|
||||
QByteArray saveToByteArray();
|
||||
void setPassPhrase(const QString &passPhrase);
|
||||
void setPassPhrase(const QString& passPhrase);
|
||||
|
||||
void init();
|
||||
QDomElement putQObjectItem(QString name, QObject* item);
|
||||
void putChildQObjectItem(QString name, QObject* item, QDomElement* parentNode);
|
||||
void putCollectionItem(QObject* item, QDomElement* parentNode=0);
|
||||
void putQObjectProperty(QString propertyName, QObject *item, QDomElement* parentNode=0);
|
||||
void putCollectionItem(QObject* item, QDomElement* parentNode = 0);
|
||||
void putQObjectProperty(QString propertyName, QObject* item, QDomElement* parentNode = 0);
|
||||
void saveProperties(QObject* item, QDomElement* node);
|
||||
bool setContent(QString fileName);
|
||||
void saveProperty(QString name, QObject* item, QDomElement* node);
|
||||
bool enumOrFlag(QString name, QObject* item);
|
||||
QString extractClassName(QObject* item);
|
||||
bool isCollection(QString propertyName, QObject *item);
|
||||
bool isTranslation(QString propertyName, QObject *item);
|
||||
void saveCollection(QString propertyName, QObject *item, QDomElement *node);
|
||||
void saveTranslation(QString propertyName, QObject *item, QDomElement *node);
|
||||
bool isQObject(QString propertyName, QObject *item);
|
||||
bool replaceNode(QDomElement node, QObject *item);
|
||||
bool isCollection(QString propertyName, QObject* item);
|
||||
bool isTranslation(QString propertyName, QObject* item);
|
||||
void saveCollection(QString propertyName, QObject* item, QDomElement* node);
|
||||
void saveTranslation(QString propertyName, QObject* item, QDomElement* node);
|
||||
bool isQObject(QString propertyName, QObject* item);
|
||||
bool replaceNode(QDomElement node, QObject* item);
|
||||
|
||||
private:
|
||||
QSharedPointer<QDomDocument> m_doc;
|
||||
QString m_fileName;
|
||||
@@ -74,6 +76,6 @@ private:
|
||||
QString m_passPhrase;
|
||||
};
|
||||
|
||||
}
|
||||
} // namespace LimeReport
|
||||
|
||||
#endif // LRXMLWRITER_H
|
||||
|
||||
Reference in New Issue
Block a user