~ubuntu-branches/ubuntu/breezy/koffice/breezy

« back to all changes in this revision

Viewing changes to lib/kofficecore/koChild.h

  • Committer: Bazaar Package Importer
  • Author(s): Ben Burton
  • Date: 2004-05-09 11:33:00 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040509113300-vfrdadqsvjfuhn3b
Tags: 1:1.3.1-1
* New upstream bugfix release.
* Built against newer imagemagick (closes: #246623).
* Made koffice-libs/kformula recommend/depend on latex-xft-fonts, which
  provides mathematical fonts that the formula editor can use.  Also
  patched the kformula part to make these fonts the default.
* Changed kword menu hint from "WordProcessors" to "Word processors"
  (closes: #246209).
* Spellchecker configuration is now fixed (closes: #221256, #227568).

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
 
25
25
/**
26
26
 * KoChild is an abstract base class that represents the geometry
27
 
 * associtated with an embedded document. In general handles its position
 
27
 * associated with an embedded document. In general it handles its position
28
28
 * relative to the embedded documents parent.
29
29
 *
30
30
 * In detail it handles size, matrix operations and can give you
45
45
 
46
46
  /**
47
47
   *  Sets a new geometry for this child document.
 
48
   *  Use noEmit = true if you do not want the 'changed'-signal to be emitted
48
49
   */
49
 
  virtual void setGeometry( const QRect &rect );
 
50
  virtual void setGeometry( const QRect &rect, bool noEmit = false );
50
51
 
51
52
  /**
52
53
   * @return the rectangle that would be used to display this
75
76
  virtual QPointArray pointArray( const QWMatrix &matrix = QWMatrix() ) const;
76
77
 
77
78
  /**
78
 
   * Tests wether the part contains a certain point. The point is
79
 
   * in tghe corrdinate system of the parent.
 
79
   * Tests whether the part contains a certain point. The point is
 
80
   * in the coordinate system of the parent.
80
81
   */
81
82
  virtual bool contains( const QPoint& ) const;
82
83
 
93
94
   */
94
95
  virtual void setScaling( double x, double y );
95
96
 
 
97
  /**
 
98
   * @return the x axis scaling of the child part
 
99
   */
96
100
  virtual double xScaling() const;
97
101
 
 
102
  /**
 
103
   * @return the y axis scaling of the child part
 
104
   */
98
105
  virtual double yScaling() const;
99
106
 
100
 
  virtual void setShearing( double, double );
 
107
  /**
 
108
   * Shears the content of the child part.
 
109
   */
 
110
  virtual void setShearing( double x, double y );
101
111
 
 
112
  /**
 
113
   * @return the x axis shearing of the child part
 
114
   */
102
115
  virtual double xShearing() const;
103
116
 
 
117
  /**
 
118
   * @return the y axis shearing of the child part
 
119
   */
104
120
  virtual double yShearing() const;
105
121
 
 
122
  /**
 
123
   * Sets the angle of rotation.
 
124
   */
106
125
  virtual void setRotation( double );
107
126
 
 
127
  /**
 
128
   * @return the angle of rotation
 
129
   */
108
130
  virtual double rotation() const;
109
131
 
 
132
  /**
 
133
   * Sets the center of the rotation to the point @p pos.
 
134
   */
110
135
  virtual void setRotationPoint( const QPoint& pos );
111
136
 
 
137
  /**
 
138
   * @return the center of the rotation
 
139
   */
112
140
  virtual QPoint rotationPoint() const;
113
141
 
114
142
  /**
115
143
   * @return true if the child part is an orthogonal rectangle relative
116
 
   *         to its parents corrdinate system.
 
144
   *         to its parents coordinate system.
117
145
   */
118
146
  virtual bool isRectangle() const;
119
147
 
121
149
   * Sets the clip region of the painter, so that only pixels of the
122
150
   * child part can be drawn.
123
151
   *
124
 
   * @param combine tells wether the new clip region is an intersection
125
 
   *        of the current region with the childs region or wether only
 
152
   * @param combine tells whether the new clip region is an intersection
 
153
   *        of the current region with the childs region or whether only
126
154
   *        the childs region is set.
127
155
   */
128
156
  virtual void setClipRegion( QPainter& painter, bool combine = true );
129
157
 
130
158
  /**
131
159
   * Transforms the painter (its worldmatrix and the clipping)
132
 
   * in such a way, that the painter can be passed to the child part
 
160
   * in such a way that the painter can be passed to the child part
133
161
   * for drawing.
134
162
   */
135
163
  virtual void transform( QPainter& painter );
136
164
 
 
165
  // ### make virtual
 
166
  void setContentsPos( int x, int y );
 
167
 
137
168
  /**
138
169
   * @return the contents rectangle that is visible.
139
170
   *         This value depends on the scaling and the
140
171
   *         geometry.
141
172
   *
142
 
   * @see scaling geomtry
 
173
   * @see #xScaling #geometry
143
174
   */
144
175
  virtual QRect contentRect() const;
145
176