Changeset View
Changeset View
Standalone View
Standalone View
plugins/textshape/dialogs/SimpleTableOfContentsWidget.h
Show All 24 Lines | |||||
25 | #include <QWidget> | 25 | #include <QWidget> | ||
26 | #include <QTextBlock> | 26 | #include <QTextBlock> | ||
27 | #include <QList> | 27 | #include <QList> | ||
28 | 28 | | |||
29 | class ReferencesTool; | 29 | class ReferencesTool; | ||
30 | class KoStyleManager; | 30 | class KoStyleManager; | ||
31 | class KoTableOfContentsGeneratorInfo; | 31 | class KoTableOfContentsGeneratorInfo; | ||
32 | class TableOfContentsPreview; | 32 | class TableOfContentsPreview; | ||
33 | class QSignalMapper; | | |||
34 | class TableOfContentsTemplate; | 33 | class TableOfContentsTemplate; | ||
35 | 34 | | |||
36 | class SimpleTableOfContentsWidget : public QWidget | 35 | class SimpleTableOfContentsWidget : public QWidget | ||
37 | { | 36 | { | ||
38 | Q_OBJECT | 37 | Q_OBJECT | ||
39 | public: | 38 | public: | ||
40 | explicit SimpleTableOfContentsWidget(ReferencesTool *tool, QWidget *parent = 0); | 39 | explicit SimpleTableOfContentsWidget(ReferencesTool *tool, QWidget *parent = 0); | ||
41 | ~SimpleTableOfContentsWidget() override; | 40 | ~SimpleTableOfContentsWidget() override; | ||
Show All 15 Lines | 54 | private: | |||
57 | KoStyleManager *m_styleManager; | 56 | KoStyleManager *m_styleManager; | ||
58 | bool m_blockSignals; | 57 | bool m_blockSignals; | ||
59 | QTextBlock m_currentBlock; | 58 | QTextBlock m_currentBlock; | ||
60 | QList<KoTableOfContentsGeneratorInfo *> m_templateList; | 59 | QList<KoTableOfContentsGeneratorInfo *> m_templateList; | ||
61 | //each template in the template list will have have a previewGenerator that will be deleted after preview is generated | 60 | //each template in the template list will have have a previewGenerator that will be deleted after preview is generated | ||
62 | QList<TableOfContentsPreview *> m_previewGenerator; | 61 | QList<TableOfContentsPreview *> m_previewGenerator; | ||
63 | ItemChooserAction *m_chooser; | 62 | ItemChooserAction *m_chooser; | ||
64 | ReferencesTool *m_referenceTool; | 63 | ReferencesTool *m_referenceTool; | ||
65 | QSignalMapper *m_signalMapper; | | |||
66 | TableOfContentsTemplate *m_templateGenerator; | 64 | TableOfContentsTemplate *m_templateGenerator; | ||
67 | }; | 65 | }; | ||
68 | 66 | | |||
69 | #endif | 67 | #endif |