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

« back to all changes in this revision

Viewing changes to filters/libkowmf/kowmfpaint.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:
55
55
    using KoWmfRead::play;
56
56
 
57
57
    /**
58
 
     * play WMF file on a QPaintDevice. Return true on success.
 
58
     * Play a WMF file on a QPaintDevice. Return true on success.
59
59
     * Use absolute or relative coordinate :
60
60
     *   absolute coord. reset the world transfomation Matrix (by default)
61
61
     *   relative coord. use the existing world transfomation Matrix
72
72
    void  save();
73
73
    void  restore();
74
74
 
 
75
    // Windows and Viewports
 
76
    void setWindowViewport();
 
77
    void unsetWindowViewport();
 
78
 
75
79
    // Drawing tools
76
80
    void  setFont(const QFont& font);
77
81
    // the pen : the width of the pen is in logical coordinate
91
95
     * others wmf files doesn't call setWindow* at all
92
96
     * negative width and height are possible
93
97
     */
94
 
    void  setWindowOrg(int orgX, int orgY);
 
98
    void  setWindowOrg(int left, int top);
95
99
    void  setWindowExt(int width, int height);
 
100
    void  setViewportOrg(int left, int top);
 
101
    void  setViewportExt(int width, int height);
96
102
 
97
103
    // Clipping
98
104
    // the 'CoordinateMode' is ommitted : always CoordPainter in wmf
133
139
    QPen  mTextPen;
134
140
    QPaintDevice *mTarget;
135
141
    bool  mRelativeCoord;
136
 
    // memorisation of WMF matrix transformation (in relative coordinate)
137
 
    QMatrix  mInternalWorldMatrix;
138
142
    QPoint mLastPos;
139
143
 
140
 
    // For debug;
141
 
    int  mOrgX;
142
 
    int  mOrgY;
143
 
    int  mExtWidth;
144
 
    int  mExtHeight;
 
144
    // Everything that has to do with window and viewport calculation
 
145
    QPoint        mWindowOrg;
 
146
    QSize         mWindowExt;
 
147
    QPoint        mViewportOrg;
 
148
    QSize         mViewportExt;
 
149
    bool          mWindowExtIsSet;
 
150
    bool          mViewportExtIsSet;
 
151
    qreal         mWindowViewportScaleX;
 
152
    qreal         mWindowViewportScaleY;
 
153
    bool          mWindowViewportIsSet;
 
154
 
 
155
    int mSaveCount; //number of times Save() was called without Restore()
145
156
};
146
157
 
147
158
#endif