"SfR Fresh" - the SfR Freeware/Shareware Archive

Member "scribus-1.3.3.12/scribus/annotation.h" of archive scribus-1.3.3.12.tar.gz:


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