5 #include "scribusapi.h"
6 #include "desaxe/saxiohelper.h"
7 #include "desaxe/simple_actions.h"
19 MARKVariableTextType = 3,
20 MARKNoteMasterType = 4,
21 MARKNoteFrameType = 5,
31 MarkType destmarkType;
37 MarkData() : strtxt(
""), itemPtr(NULL), destmarkName(
""), destmarkType(MARKNoType), notePtr(NULL), itemName(
""), markTyp(MARKNoType) {}
47 Mark() : label(
""), OwnPage(-1), typ(MARKNoType), data() {}
48 Mark(
const Mark& other) : label(other.label), OwnPage(other.OwnPage), typ(other.typ), data(other.data) {}
54 void setValues(QString l,
int p, MarkType t,
MarkData d) { label = l; OwnPage = p; typ = t; data = d; }
55 const MarkType getType() {
return typ; }
56 void setType(MarkType t) { typ = t; }
57 const MarkData getData() {
return data; }
58 void setData(
const MarkData d) { data = d; }
59 PageItem* getItemPtr() {
return data.itemPtr; }
60 void setItemPtr(
PageItem* ptr ) { data.itemPtr = ptr; }
61 const QString getItemName() {
return data.itemName; }
62 void setItemName(
const QString name ) { data.itemName = name; }
65 const void getMark(QString &l, MarkType &t) { l = data.destmarkName; t = data.destmarkType; }
67 void setMark(
Mark* mP)
71 data.destmarkName =
"";
72 data.destmarkType = MARKNoType;
76 data.destmarkName = mP->label;
77 data.destmarkType = mP->getType();
80 void setMark(QString l, MarkType t) { data.destmarkName = l; data.destmarkType = t; }
81 const MarkType getMarkType() {
return data.markTyp; }
82 void setMarkType(MarkType t) { data.markTyp = t; }
83 const QString getString() {
return data.strtxt; }
84 void setString(
const QString str ) { data.strtxt = str; }
85 TextNote* getNotePtr() {
return data.notePtr; }
86 void setNotePtr(
TextNote *note) { data.notePtr = note; }
88 bool hasItemPtr() {
return data.itemPtr != NULL; }
89 bool hasString() {
return !data.strtxt.isEmpty(); }
90 bool hasMark() {
return data.destmarkName !=
""; }
91 bool isUnique() {
return ((typ != MARKVariableTextType) && (typ != MARKIndexType) && (typ != MARKBullNumType)); }
92 bool isNoteType() {
return ((typ == MARKNoteMasterType) || (typ==MARKNoteFrameType)); }
93 bool isType(
const MarkType t) {
return t==typ; }
105 BulNumMark() :
Mark() { label =
"BullNumMark"; typ = MARKBullNumType; }
This Class is the base class for your application. It sets up the main window and providing a menubar...
Definition: scribus.h:123
the Document Class
Definition: scribusdoc.h:90
Definition: pageitem.h:92
Definition: notesstyles.h:91