~ubuntu-branches/ubuntu/precise/koffice/precise

« back to all changes in this revision

Viewing changes to libs/kotext/styles/KoTableColumnStyle.h

  • Committer: Bazaar Package Importer
  • Author(s): Alessandro Ghersi
  • Date: 2010-10-27 17:52:57 UTC
  • mfrom: (0.12.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20101027175257-s04zqqk5bs8ckm9o
Tags: 1:2.2.83-0ubuntu1
* Merge with Debian git remaining changes:
 - Add build-deps on librcps-dev, opengtl-dev, libqtgtl-dev, freetds-dev,
   create-resources, libspnav-dev
 - Remove needless build-dep on libwv2-dev
 - koffice-libs recommends create-resources
 - krita recommends pstoedit
 - Keep our patches
* New upstream release 2.3 beta 3
  - Remove debian/patches fixed by upstream
  - Update install files

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
 *
52
52
 * @see KoStyleManager, KoTableRowAndColumnStyleManager
53
53
 */
54
 
class KOTEXT_EXPORT KoTableColumnStyle : public QObject
 
54
class KOTEXT_EXPORT KoTableColumnStyle
55
55
{
56
 
    Q_OBJECT
57
56
public:
58
57
    enum Property {
59
58
        StyleId = QTextTableFormat::UserProperty + 1,
65
64
    };
66
65
 
67
66
    /// Constructor
68
 
    KoTableColumnStyle(QObject *parent = 0);
 
67
    KoTableColumnStyle();
 
68
    /// Constructor
 
69
    KoTableColumnStyle(const KoTableColumnStyle &rhs);
 
70
    /// assign operator
 
71
    KoTableColumnStyle &operator=(const KoTableColumnStyle &rhs);
69
72
 
70
73
    /// Destructor
71
74
    ~KoTableColumnStyle();
72
75
 
73
 
    /// Creates a clone of this style with the specified parent.
74
 
    KoTableColumnStyle *clone(QObject *parent = 0);
75
 
 
76
76
    /// Set the column width.
77
77
    void setColumnWidth(qreal width);
78
78
 
124
124
    /// Set the name of the master-page.
125
125
    void setMasterPageName(const QString &name);
126
126
 
127
 
    /// Copy all the properties from the other style to this style, effectively duplicating it.
128
 
    void copyProperties(const KoTableColumnStyle *style);
129
 
 
130
127
    /// Remove the property \key from this style.
131
128
    void remove(int key);
132
129
 
171
168
     */
172
169
    QVariant value(int key) const;
173
170
 
174
 
signals:
175
 
    void nameChanged(const QString &newName);
176
 
 
177
171
private:
178
172
    /**
179
173
     * Load the style from the \a KoStyleStack style stack using the
188
182
    QColor propertyColor(int key) const;
189
183
 
190
184
    class Private;
191
 
    Private * const d;
 
185
    QSharedDataPointer<Private> d;
192
186
};
193
187
 
194
188
#endif