1 #ifndef PAGEITEM_NOTEFRAME_H
2 #define PAGEITEM_NOTEFRAME_H
4 #include "pageitem_textframe.h"
5 #include "notesstyles.h"
21 virtual bool isAutoNoteFrame()
const {
return m_nstyle->isAutoRemoveEmptyNotesFrames(); }
35 void updateNotes(QList<TextNote*> nList,
bool clear =
true);
37 void updateNotesText();
41 bool isEndNotesFrame() {
return m_nstyle->isEndNotes(); }
42 bool isAutoWelded() {
return m_nstyle->isAutoWeldNotesFrames(); }
43 bool isAutoHeight() {
return m_nstyle->isAutoNotesHeight(); }
44 bool isAutoWidth() {
return m_nstyle->isAutoNotesWidth(); }
47 QList<TextNote*> notesList() {
return l_notes; }
49 void removeNote(
TextNote* note) { l_notes.removeOne(note); }
51 void restoreDeleteNoteText(
SimpleState *state,
bool isUndo);
52 void restoreInsertNoteText(
SimpleState *state,
bool isUndo);
54 void unWeld(
bool doUndo=
true);
57 QList<TextNote*> l_notes;
70 #endif // PAGEITEM_NOTEFRAME_H
Definition: pageitem_noteframe.h:8
virtual PageItem_NoteFrame * asNoteFrame()
Return self if Note item, otherwise null.
Definition: pageitem_noteframe.h:19
virtual bool isNoteFrame() const
Return true if Note item, otherwise false.
Definition: pageitem_noteframe.h:20
virtual void layout()
creates valid layout information
Definition: pageitem_textframe.cpp:1304
Definition: pageitem_textframe.h:45
Definition: notesstyles.h:28
the Document Class
Definition: scribusdoc.h:90
Definition: pageitem.h:92
virtual bool isAutoNoteFrame() const
Return true if Auto Note item, otherwise false.
Definition: pageitem_noteframe.h:21
Definition: notesstyles.h:91
SimpleState provides a simple implementation of the UndoState.
Definition: undostate.h:145
virtual PageItem_TextFrame * asTextFrame()
Return self if Text item, otherwise null.
Definition: pageitem.h:237