]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed problems with HTML printing w/o using wxHtmlWindow
authorVáclav Slavík <vslavik@fastmail.fm>
Wed, 19 Sep 2001 22:44:17 +0000 (22:44 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Wed, 19 Sep 2001 22:44:17 +0000 (22:44 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11651 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/html/forcelnk.h
src/html/htmlwin.cpp
src/html/htmprint.cpp

index 2a9c70f5c683a59aee66bbf8b762fac30e3a0259..6fb8810fdb7026ff7e41e88048994fe581a31c67 100644 (file)
@@ -57,5 +57,17 @@ See mod_*.cpp and htmlwin.cpp for example :-)
                 static int _link_dummy_var_##module_name =            \
                                _link_dummy_func_##module_name ();
 
+#define FORCE_WXHTML_MODULES() \
+    FORCE_LINK(m_layout) \
+    FORCE_LINK(m_fonts) \
+    FORCE_LINK(m_image) \
+    FORCE_LINK(m_list) \
+    FORCE_LINK(m_dflist) \
+    FORCE_LINK(m_pre) \
+    FORCE_LINK(m_hline) \
+    FORCE_LINK(m_links) \
+    FORCE_LINK(m_tables) \
+    FORCE_LINK(m_meta)
+
 
 #endif // _WX_FORCELNK_H_
index d80cb51617deb3705265a09e122086261c688537..c029c706fc9fa94469069fd7aae0ab334bd42192 100644 (file)
@@ -30,7 +30,6 @@
 #endif
 
 #include "wx/html/htmlwin.h"
-#include "wx/html/forcelnk.h"
 #include "wx/html/htmlproc.h"
 #include "wx/list.h"
 
@@ -777,20 +776,9 @@ public:
 IMPLEMENT_DYNAMIC_CLASS(wxHtmlWinModule, wxModule)
 
 
-
-
-///// default mod handlers are forced there:
-
-FORCE_LINK(m_layout)
-FORCE_LINK(m_fonts)
-FORCE_LINK(m_image)
-FORCE_LINK(m_list)
-FORCE_LINK(m_dflist)
-FORCE_LINK(m_pre)
-FORCE_LINK(m_hline)
-FORCE_LINK(m_links)
-FORCE_LINK(m_tables)
-FORCE_LINK(m_meta)
-
+// This hack forces the linker to always link in m_* files
+// (wxHTML doesn't work without handlers from these files)
+#include "wx/html/forcelnk.h"
+FORCE_WXHTML_MODULES()
 
 #endif
index b3eee134e879b03ea4af2c50ae7de656bc4dab49..3dd7639e7b7380dac3df8e8708016d23b6d5b158 100644 (file)
@@ -595,5 +595,9 @@ wxHtmlPrintout *wxHtmlEasyPrinting::CreatePrintout()
 }
 
 
+// This hack forces the linker to always link in m_* files
+// (wxHTML doesn't work without handlers from these files)
+#include "wx/html/forcelnk.h"
+FORCE_WXHTML_MODULES()
 
 #endif // wxUSE_HTML & wxUSE_PRINTING_ARCHITECTURE