22 #ifndef PAGEITEMTEXTFRAME_H
23 #define PAGEITEMTEXTFRAME_H
30 #include "scribusapi.h"
33 #include "notesstyles.h"
39 typedef QMap<PageItem_NoteFrame*, QList<TextNote *> > NotesInFrameMap;
58 virtual void truncateContents();
65 virtual void handleModeEditKey(QKeyEvent *k,
bool& keyRepeat);
66 void deleteSelectedTextFromFrame();
67 void setNewPos(
int oldPos,
int len,
int dir);
68 void ExpandSel(
int dir,
int oldPos);
76 bool isValidChainFromBegin();
79 bool isInChain() {
return ((prevInChain() != NULL) || (nextInChain() != NULL)); }
80 void setTextAnnotationOpen(
bool open);
85 void toggleEditModeActions();
86 QRegion availableRegion() {
return m_availableRegion; }
89 QRegion calcAvailableRegion();
90 QRegion m_availableRegion;
91 virtual void DrawObj_Item(
ScPainter *p, QRectF e);
93 virtual void DrawObj_Decoration(
ScPainter *p);
98 bool unicodeTextEditMode;
99 int unicodeInputCount;
100 QString unicodeInputString;
103 virtual bool createInfoGroup(QFrame *, QGridLayout *);
104 virtual void applicableActions(QStringList& actionList);
105 virtual QString infoDescription();
107 bool moveLinesFromPreviousFrame ();
108 void adjustParagraphEndings ();
111 bool cursorBiasBackward;
116 QList<int> incompletePositions;
119 QString currentShadow;
120 QMap<QString,StoryText> shadows;
121 bool checkKeyIsShortcut(QKeyEvent *k);
122 QRectF m_origAnnotPos;
125 void slotInvalidateLayout();
130 bool hasNoteFrame(
NotesStyle* NS,
bool inChain =
false);
132 void delAllNoteFrames(
bool doUpdate =
false);
135 void notesFramesLayout();
137 int removeMarksFromText(
bool doUndo);
141 QList<PageItem_NoteFrame*> notesFramesList() {
return m_notesFramesMap.keys(); }
143 QList<TextNote*> notesList(
PageItem_NoteFrame* nF) {
return m_notesFramesMap.value(nF); }
146 void invalidateNotesFrames();
149 NotesInFrameMap m_notesFramesMap;
150 NotesInFrameMap updateNotesFrames(QMap<int, Mark*> noteMarksPosMap);
151 void updateNotesMarks(NotesInFrameMap notesMap);
152 Mark* selectedMark(
bool onlySelection =
true);
153 TextNote* selectedNoteMark(
int& foundPos,
bool onlySelection =
true);
154 TextNote* selectedNoteMark(
bool onlySelection =
true);
158 void setMaxY(
double y);
161 void setTextFrameHeight();
Definition: pageitem_noteframe.h:8
Definition: pageitem_textframe.h:45
virtual void invalidateLayout()
invalidates current layout information
Definition: pageitem.h:381
virtual PageItem_TextFrame * asTextFrame()
Return self if Text item, otherwise null.
Definition: pageitem_textframe.h:54
virtual void layout()
creates valid layout information
Definition: pageitem.h:383
Definition: notesstyles.h:28
Definition: paragraphstyle.h:27
the Document Class
Definition: scribusdoc.h:90
Definition: scpainter.h:33
virtual void clearContents()
Clear the contents of a frame. WARNING: Currently they do not check if the user wants this...
Definition: pageitem.h:308
virtual bool isTextFrame() const
Return true if Text item, otherwise false.
Definition: pageitem_textframe.h:55
Definition: pageitem.h:92
Definition: notesstyles.h:91