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

« back to all changes in this revision

Viewing changes to libs/kopageapp/KoPADocument.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:
68
68
    QList<KoPAPageBase *> loadOdfMasterPages( const QHash<QString, KoXmlElement*> masterStyles, KoPALoadingContext & context );
69
69
 
70
70
    /**
71
 
     * Load pages
72
 
     *
73
 
     * @param body
74
 
     * @param context
75
 
     */
76
 
    QList<KoPAPageBase *> loadOdfPages( const KoXmlElement & body, KoPALoadingContext & context );
77
 
 
78
 
    /**
79
71
     * Save pages
80
72
     *
81
73
     * This is used by saveOdf and for copy and paste of pages.
127
119
    /**
128
120
     * Insert page to the document at index
129
121
     *
130
 
     * The function checks if it is a normal or a master page and puts it in 
 
122
     * The function checks if it is a normal or a master page and puts it in
131
123
     * the correct list.
132
124
     *
133
125
     * @param page to insert to document
138
130
    /**
139
131
     * Insert @p page to the document after page @p before
140
132
     *
141
 
     * The function checks if it is a normal or a master page and puts it in 
 
133
     * The function checks if it is a normal or a master page and puts it in
142
134
     * the correct list.
143
135
     *
144
136
     * @param page to insert to document
173
165
     *
174
166
     * The page is created with new.
175
167
     *
176
 
     * Reimplement when you need a derivered class in your kopageapplication 
 
168
     * Reimplement when you need a derivered class in your kopageapplication
177
169
     */
178
170
    virtual KoPAPage *newPage(KoPAMasterPage *masterPage);
179
171
 
182
174
     *
183
175
     * The page is created with new.
184
176
     *
185
 
     * Reimplement when you need a derivered class in your kopageapplication 
 
177
     * Reimplement when you need a derivered class in your kopageapplication
186
178
     */
187
179
    virtual KoPAMasterPage * newMasterPage();
188
180
 
221
213
    virtual KoPageApp::PageType pageType() const;
222
214
 
223
215
    /**
224
 
     * Get the thumbnail for the page. 
 
216
     * Get the thumbnail for the page.
225
217
     *
226
 
     * Us this method instead the on in the pages directly
 
218
     * Use this method instead the one in the pages directly
227
219
     */
228
220
    QPixmap pageThumbnail(KoPAPageBase* page, const QSize& size);
229
221
 
280
272
    void loadOdfSettings( const KoXmlDocument & settingsDoc );
281
273
 
282
274
    /**
283
 
     * This function is called by at the end of addShape. This is used 
 
275
     * This function is called by at the end of addShape. This is used
284
276
     * e.g. for doing work on the application which is in the KoShapeAppData.
285
277
     *
286
278
     * The default impementation does nothing
288
280
    virtual void postAddShape( KoPAPageBase * page, KoShape * shape );
289
281
 
290
282
    /**
291
 
     * This function is called by at the end of removeShape. This is used 
 
283
     * This function is called by at the end of removeShape. This is used
292
284
     * e.g. for doing work on the application which is in the KoShapeAppData.
293
285
     *
294
286
     * The default impementation does nothing
324
316
    void updatePageCount();
325
317
 
326
318
private:
 
319
 
 
320
    friend class KoPAPastePage;
 
321
    /**
 
322
     * Load pages
 
323
     *
 
324
     * @param body
 
325
     * @param context
 
326
     */
 
327
    QList<KoPAPageBase *> loadOdfPages( const KoXmlElement & body, KoPALoadingContext & context );
 
328
 
 
329
 
 
330
private:
327
331
    class Private;
328
332
    Private * const d;
329
333
};