0
0
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:
Андрей Лухнов
2024-09-04 17:31:16 +03:00
parent c5b9ac265d
commit 0fca7169d3
285 changed files with 19120 additions and 17875 deletions

View File

@@ -30,35 +30,37 @@
#ifndef LRDESIGNELEMENTSFACTORY_H
#define LRDESIGNELEMENTSFACTORY_H
#include "lrbanddesignintf.h"
#include "lrattribsabstractfactory.h"
#include "lrbanddesignintf.h"
#include "lrsimpleabstractfactory.h"
#include "lrsingleton.h"
namespace LimeReport{
namespace LimeReport {
typedef BaseDesignIntf* (*CreateBand)(QObject* owner, BaseDesignIntf* parent);
typedef BaseDesignIntf* (*CreateBand)(QObject* owner, BaseDesignIntf* parent);
struct ItemAttribs{
struct ItemAttribs {
QString m_alias;
QString m_tag;
ItemAttribs(){}
ItemAttribs(const QString& alias, const QString& tag):m_alias(alias),m_tag(tag){}
bool operator==( const ItemAttribs &right) const {
return (m_alias==right.m_alias) && (m_tag==right.m_tag);
ItemAttribs() { }
ItemAttribs(const QString& alias, const QString& tag): m_alias(alias), m_tag(tag) { }
bool operator==(const ItemAttribs& right) const
{
return (m_alias == right.m_alias) && (m_tag == right.m_tag);
}
};
class DesignElementsFactory : public AttribsAbstractFactory<LimeReport::BaseDesignIntf, QString, CreateBand, ItemAttribs>
{
class DesignElementsFactory:
public AttribsAbstractFactory<LimeReport::BaseDesignIntf, QString, CreateBand, ItemAttribs> {
private:
friend class Singleton<DesignElementsFactory>;
private:
DesignElementsFactory(){}
~DesignElementsFactory(){}
DesignElementsFactory(const DesignElementsFactory&){}
DesignElementsFactory& operator = (const DesignElementsFactory&){return *this;}
DesignElementsFactory() { }
~DesignElementsFactory() { }
DesignElementsFactory(const DesignElementsFactory&) { }
DesignElementsFactory& operator=(const DesignElementsFactory&) { return *this; }
};
}
} // namespace LimeReport
#endif // LRDESIGNELEMENTSFACTORY_H