equal
deleted
inserted
replaced
24 ****************************************************************************/ |
24 ****************************************************************************/ |
25 |
25 |
26 #include "hbdocumentloader.h" |
26 #include "hbdocumentloader.h" |
27 #include "hbdocumentloader_p.h" |
27 #include "hbdocumentloader_p.h" |
28 #include "hbdocumentloaderactions_p.h" |
28 #include "hbdocumentloaderactions_p.h" |
29 #include <hbmainwindow.h> |
29 #include "hbdocumentloadersyntax_p.h" |
30 |
30 |
31 #include <QString> |
31 #include <QString> |
32 #include <QGraphicsWidget> |
32 #include <QGraphicsWidget> |
33 #include <QFile> |
33 #include <QFile> |
34 |
34 |
158 QObjectList HbDocumentLoader::load( QIODevice *device, bool *ok ) |
158 QObjectList HbDocumentLoader::load( QIODevice *device, bool *ok ) |
159 { |
159 { |
160 return load( device, QString(), ok ); |
160 return load( device, QString(), ok ); |
161 } |
161 } |
162 |
162 |
|
163 /*! |
|
164 Converts DocML document to binary document. |
|
165 \param srcDevice source IO device to be processed. |
|
166 \param dstDevice destination IO device where to write to. |
|
167 \return true if conversion was ok. |
|
168 */ |
|
169 bool HbDocumentLoader::createBinary( QIODevice *srcDevice, QIODevice *dstDevice ) |
|
170 { |
|
171 Q_D(HbDocumentLoader); |
|
172 return d->createBinary( srcDevice, dstDevice ); |
|
173 } |
163 |
174 |
164 /*! |
175 /*! |
165 Retrieves widget of which object name equals to \a name. |
176 Retrieves widget of which object name equals to \a name. |
166 \param name object name of desired widget. |
177 \param name object name of desired widget. |
167 \return widget or 0 if not found. |
178 \return widget or 0 if not found. |
206 \param name object name of the desired object. |
217 \param name object name of the desired object. |
207 \return object or 0 if not found. |
218 \return object or 0 if not found. |
208 */ |
219 */ |
209 QObject *HbDocumentLoader::createObject(const QString& type, const QString &name) |
220 QObject *HbDocumentLoader::createObject(const QString& type, const QString &name) |
210 { |
221 { |
|
222 #ifdef HB_BOOTSTRAPPED |
|
223 Q_UNUSED(type); |
|
224 Q_UNUSED(name); |
|
225 return 0; |
|
226 #else |
211 Q_D(HbDocumentLoader); |
227 Q_D(HbDocumentLoader); |
212 return d->actions->createObjectWithFactory(type, name); |
228 return d->actions->createObjectWithFactory(type, name); |
|
229 #endif |
213 } |
230 } |
214 |
231 |
215 |
232 |
216 /*! |
233 /*! |
217 Sets loader to initial state. |
234 Sets loader to initial state. |