mirror of
https://github.com/fralx/LimeReport.git
synced 2025-11-20 06:30:03 +03:00
TOC generation has been changed
This commit is contained in:
@@ -61,6 +61,7 @@ private:
|
||||
class Spacer :public ItemDesignIntf{
|
||||
public:
|
||||
Spacer(QObject* owner,QGraphicsItem* parent);
|
||||
bool isEmpty() const {return true;}
|
||||
protected:
|
||||
BaseDesignIntf* createSameTypeItem(QObject *owner, QGraphicsItem *parent){
|
||||
return new Spacer(owner, parent);
|
||||
@@ -72,10 +73,17 @@ class ContentItemDesignIntf : public ItemDesignIntf
|
||||
Q_OBJECT
|
||||
public:
|
||||
ContentItemDesignIntf(const QString& xmlTypeName, QObject* owner = 0,QGraphicsItem* parent = 0)
|
||||
:ItemDesignIntf(xmlTypeName,owner,parent){}
|
||||
:ItemDesignIntf(xmlTypeName,owner,parent), m_contentBackedUp(false){}
|
||||
virtual QString content() const = 0;
|
||||
virtual void setContent(const QString& value) = 0;
|
||||
QMap<QString, QString> getStringForTranslation();
|
||||
void backupContent(){ m_contentBackUp = content(); m_contentBackedUp = true;}
|
||||
void restoreContent() {setContent(m_contentBackUp);}
|
||||
bool isContentBackedUp() const;
|
||||
void setContentBackedUp(bool contentBackedUp);
|
||||
private:
|
||||
QString m_contentBackUp;
|
||||
bool m_contentBackedUp;
|
||||
};
|
||||
|
||||
class LayoutDesignIntf : public ItemDesignIntf{
|
||||
|
||||
Reference in New Issue
Block a user