src/hbutils/document/hbdocumentloader.cpp
changeset 1 f7ac710697a9
parent 0 16d8024aca5e
child 3 11d3954df52a
--- a/src/hbutils/document/hbdocumentloader.cpp	Mon Apr 19 14:02:13 2010 +0300
+++ b/src/hbutils/document/hbdocumentloader.cpp	Mon May 03 12:48:33 2010 +0300
@@ -26,7 +26,7 @@
 #include "hbdocumentloader.h"
 #include "hbdocumentloader_p.h"
 #include "hbdocumentloaderactions_p.h"
-#include <hbmainwindow.h>
+#include "hbdocumentloadersyntax_p.h"
 
 #include <QString>
 #include <QGraphicsWidget>
@@ -160,6 +160,17 @@
     return load( device, QString(), ok );
 }
 
+/*!
+    Converts DocML document to binary document. 
+    \param srcDevice source IO device to be processed.
+    \param dstDevice destination IO device where to write to.
+    \return true if conversion was ok.
+*/
+bool HbDocumentLoader::createBinary( QIODevice *srcDevice, QIODevice *dstDevice )
+{
+    Q_D(HbDocumentLoader);
+    return d->createBinary( srcDevice, dstDevice );
+}
 
 /*!
     Retrieves widget of which object name equals to \a name.
@@ -208,8 +219,14 @@
 */
 QObject *HbDocumentLoader::createObject(const QString& type, const QString &name)
 {
+#ifdef HB_BOOTSTRAPPED
+    Q_UNUSED(type);
+    Q_UNUSED(name);
+    return 0;
+#else
     Q_D(HbDocumentLoader);
     return d->actions->createObjectWithFactory(type, name);
+#endif
 }