/usr/include/scribus/annotation.h is in scribus-dev 1.4.6+dfsg-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 | /*
For general Scribus (>=1.3.2) copyright and licensing information please refer
to the COPYING file provided with the program. Following this notice may exist
a copyright and/or license notice that predates the release of Scribus 1.3.2
for which a new license (GPL+exception) is in place.
*/
/***************************************************************************
begin : 2005
copyright : (C) 2005 by Craig Bradney
email : cbradney@zip.com.au
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef ANNOTATION_H
#define ANNOTATION_H
#ifdef HAVE_CONFIG_H
#include "scconfig.h"
#endif
#include <QString>
#include "scribusapi.h"
#include "desaxe/saxio.h"
//FIXME: Someone please fix these variable names..
//They are simply moved here, not all fixed.
//TODO make the usage in various places a little simpler
class SCRIBUS_API Annotation : public SaxIO
{
public:
//Do we need a null or an empty QString for these? Remove the qstring initialisations if null is ok.
Annotation() : AnType(0), AnActType(0), AnAction(""), An_E_act(""), An_X_act(""), An_D_act(""),
An_Fo_act(""), An_Bl_act(""), An_K_act(""), An_F_act(""), An_V_act(""), An_C_act(""),
AnToolTip(""), AnRollOver(""), AnDown(""), AnBColor(""), An_Extern(""), AnBsty(0),
AnBwid(1), AnFeed(1), AnZiel(0), AnFlag(0), AnMaxChar(-1), AnVis(0), AnChkStil(0),
// AnFont(4), AnIsChk(false), AnAAact(false), AnHTML(false), AnUseIcons(false),
AnFont(4), AnIsChk(false), AnAAact(false), AnHTML(0), AnUseIcons(false),
AnIPlace(1), AnScaleW(0), AnFormat(0)
{
}
static const Xml_string saxxDefaultElem;
static void desaxeRules(const Xml_string& prefixPattern, desaxe::Digester& ruleset, Xml_string elemtag = saxxDefaultElem);
virtual void saxx(SaxHandler& handler, const Xml_string& elemtag) const;
virtual void saxx(SaxHandler& handler) const { saxx(handler, saxxDefaultElem); }
void setType(int newType) { AnType=newType; }
void setAction(const QString& newAction) { AnAction=newAction; }
void setE_act(const QString& newE_act) { An_E_act=newE_act; }
void setX_act(const QString& newX_act) { An_X_act=newX_act; }
void setD_act(const QString& newD_act) { An_D_act=newD_act; }
void setFo_act(const QString& newFo_act) { An_Fo_act=newFo_act; }
void setBl_act(const QString& newBl_act) { An_Bl_act=newBl_act; }
void setK_act(const QString& newK_act) { An_K_act=newK_act; }
void setF_act(const QString& newF_act) { An_F_act=newF_act; }
void setV_act(const QString& newV_act) { An_V_act=newV_act; }
void setC_act(const QString& newC_act) { An_C_act=newC_act; }
void setExtern(const QString& newExtern) { An_Extern=newExtern; }
void setZiel(int newZiel) { AnZiel=newZiel; }
void setActionType(int newActType) { AnActType=newActType; }
void setToolTip(const QString& newToolTip) { AnToolTip=newToolTip; }
void setRollOver(const QString& newRollOver) { AnRollOver=newRollOver; }
void setDown(const QString& newDown) { AnDown=newDown; }
void setBorderColor(const QString& newBorderColor) { AnBColor=newBorderColor; }
void setBwid(int newBwid) { AnBwid=newBwid; }
void setBsty(int newBsty) { AnBsty=newBsty; }
void setFeed(int newFeed) { AnFeed=newFeed; }
void setFlag(int newFlag) { AnFlag=newFlag; }
void addToFlag(int dFlag) { AnFlag+=dFlag; }
void setMaxChar(int newMaxChar) { AnMaxChar=newMaxChar; }
void setVis(int newVis) { AnVis=newVis; }
void setFont(int newFont) { AnFont=newFont; }
void setChkStil(int newChkStil) { AnChkStil=newChkStil; }
void setFormat(int newFormat) { AnFormat=newFormat; }
void setIsChk(bool newIsChk) { AnIsChk=newIsChk; }
void setAAact(bool newAAct) { AnAAact=newAAct; }
// void setHTML(bool newHTML) { AnHTML=newHTML; }
void setHTML(int newHTML) { AnHTML=newHTML; }
void setUseIcons(bool newUseIcons) { AnUseIcons=newUseIcons; }
void setIPlace(int newIPlace) { AnIPlace=newIPlace; }
void setScaleW(int newScaleW) { AnScaleW=newScaleW; }
int Type() const { return AnType; }
QString Action() const { return AnAction; }
QString E_act() const { return An_E_act; }
QString X_act() const { return An_X_act; }
QString D_act() const { return An_D_act; }
QString Fo_act() const { return An_Fo_act; }
QString Bl_act() const { return An_Bl_act; }
QString K_act() const { return An_K_act; }
QString F_act() const { return An_F_act; }
QString V_act() const { return An_V_act; }
QString C_act() const { return An_C_act; }
QString Extern() const { return An_Extern; }
int Ziel() const { return AnZiel; }
int ActionType() const { return AnActType; }
QString ToolTip() const { return AnToolTip; }
QString RollOver() const { return AnRollOver; }
QString Down() const { return AnDown; }
QString borderColor() const { return AnBColor; }
int Bwid() const { return AnBwid; }
int Bsty() const { return AnBsty; }
int Feed() const { return AnFeed; }
int Flag() const { return AnFlag; }
int MaxChar() const { return AnMaxChar; }
int Vis() const { return AnVis; }
int Font() const { return AnFont; }
int ChkStil() const { return AnChkStil; }
int Format() const { return AnFormat; }
bool IsChk() const { return AnIsChk; }
bool AAact() const { return AnAAact; }
// bool HTML() const { return AnHTML; }
int HTML() const { return AnHTML; }
bool UseIcons() const { return AnUseIcons; }
int IPlace() const { return AnIPlace; }
int ScaleW() const { return AnScaleW; }
protected:
int AnType;
int AnActType;
QString AnAction;
QString An_E_act;
QString An_X_act;
QString An_D_act;
QString An_Fo_act;
QString An_Bl_act;
QString An_K_act;
QString An_F_act;
QString An_V_act;
QString An_C_act;
QString AnToolTip;
QString AnRollOver;
QString AnDown;
QString AnBColor;
QString An_Extern;
int AnBsty;
int AnBwid;
int AnFeed;
int AnZiel;
int AnFlag;
int AnMaxChar;
int AnVis;
int AnChkStil;
int AnFont;
bool AnIsChk;
bool AnAAact;
// bool AnHTML;
int AnHTML;
bool AnUseIcons;
int AnIPlace;
int AnScaleW;
int AnFormat;
};
#endif
|