Scribus
Open source desktop publishing at your fingertips
spalette.h
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  spalette.h - description
9  -------------------
10  begin : Wed Apr 25 2001
11  copyright : (C) 2001 by Franz Schmid
12  email : Franz.Schmid@altmuehlnet.de
13  ***************************************************************************/
14 
15 /***************************************************************************
16  * *
17  * This program is free software; you can redistribute it and/or modify *
18  * it under the terms of the GNU General Public License as published by *
19  * the Free Software Foundation; either version 2 of the License, or *
20  * (at your option) any later version. *
21  * *
22  ***************************************************************************/
23 
24 #ifndef SPALETTE_H
25 #define SPALETTE_H
26 
27 #include <QComboBox>
28 #include <QLayout>
29 #include "scribusapi.h"
30 class ScribusDoc;
31 
36 class SCRIBUS_API ParaStyleComboBox : public QComboBox
37 {
38  Q_OBJECT
39 
40 public:
41  ParaStyleComboBox(QWidget* parent);
42  ~ParaStyleComboBox() {};
43 
44  ScribusDoc *currentDoc;
45 
46 public slots:
47  void setDoc(ScribusDoc *newCurrentDoc);
48  void setFormat(QString name);
49  void updateFormatList();
50  void selFormat(int e);
51 
52 signals:
53  void newStyle(const QString&);
54  void editStyle();
55 };
56 
57 class SCRIBUS_API CharStyleComboBox : public QComboBox
58 {
59  Q_OBJECT
60 
61 public:
62  CharStyleComboBox(QWidget* parent);
63  ~CharStyleComboBox() {};
64 
65  ScribusDoc *currentDoc;
66 
67 public slots:
68  void setDoc(ScribusDoc *newCurrentDoc);
69  void setFormat(QString name);
70  void updateFormatList();
71  void selFormat(int e);
72 
73 signals:
74  void newStyle(const QString&);
75  void editCharStyle();
76 };
77 
78 class SCRIBUS_API CellStyleComboBox : public QComboBox
79 {
80  Q_OBJECT
81 
82 public:
83  CellStyleComboBox(QWidget* parent);
84  ~CellStyleComboBox() {};
85 
86  ScribusDoc *currentDoc;
87 
88 public slots:
89  void setDoc(ScribusDoc *newCurrentDoc);
90  void setFormat(QString name);
91  void updateFormatList();
92  void selFormat(int e);
93 
94 signals:
95  void newStyle(const QString&);
96  void editCharStyle();
97 };
98 
99 class SCRIBUS_API TableStyleComboBox : public QComboBox
100 {
101  Q_OBJECT
102 
103 public:
104  TableStyleComboBox(QWidget* parent);
105  ~TableStyleComboBox() {};
106 
107  ScribusDoc *currentDoc;
108 
109 public slots:
110  void setDoc(ScribusDoc *newCurrentDoc);
111  void setFormat(QString name);
112  void updateFormatList();
113  void selFormat(int e);
114 
115 signals:
116  void newStyle(const QString&);
117  void editCharStyle();
118 };
119 
120 #endif
Definition: spalette.h:57
the Document Class
Definition: scribusdoc.h:90
Definition: spalette.h:36
Definition: spalette.h:99
Definition: spalette.h:78