aboutsummaryrefslogtreecommitdiffstats
path: root/lib/wx/api_gen/wx_extra/wxPrintout.c_src
diff options
context:
space:
mode:
authorErlang/OTP <[email protected]>2009-11-20 14:54:40 +0000
committerErlang/OTP <[email protected]>2009-11-20 14:54:40 +0000
commit84adefa331c4159d432d22840663c38f155cd4c1 (patch)
treebff9a9c66adda4df2106dfd0e5c053ab182a12bd /lib/wx/api_gen/wx_extra/wxPrintout.c_src
downloadotp-84adefa331c4159d432d22840663c38f155cd4c1.tar.gz
otp-84adefa331c4159d432d22840663c38f155cd4c1.tar.bz2
otp-84adefa331c4159d432d22840663c38f155cd4c1.zip
The R13B03 release.OTP_R13B03
Diffstat (limited to 'lib/wx/api_gen/wx_extra/wxPrintout.c_src')
-rw-r--r--lib/wx/api_gen/wx_extra/wxPrintout.c_src30
1 files changed, 30 insertions, 0 deletions
diff --git a/lib/wx/api_gen/wx_extra/wxPrintout.c_src b/lib/wx/api_gen/wx_extra/wxPrintout.c_src
new file mode 100644
index 0000000000..c088a95e73
--- /dev/null
+++ b/lib/wx/api_gen/wx_extra/wxPrintout.c_src
@@ -0,0 +1,30 @@
+<<wxPrintout
+case ~s: { // wxPrintout::wxPrintout taylormade
+ int onPreparePrinting=0,onBeginPrinting=0,onEndPrinting=0,onBeginDocument=0,
+ onEndDocument=0,hasPage=0,getPageInfo=0;
+ int * titleLen = (int *) bp; bp += 4;
+ wxString title = wxString(bp, wxConvUTF8);
+ bp += *titleLen+((8-((4+ *titleLen) & 7)) & 7);
+ int onPrintPage=*(int *) bp; bp += 4;
+ while( * (int*) bp) {
+ switch (* (int*) bp) {
+ case 1: {bp += 4; onPreparePrinting = *(int *) bp; bp += 4;} break;
+ case 2: {bp += 4; onBeginPrinting = *(int *) bp; bp += 4;} break;
+ case 3: {bp += 4; onEndPrinting = *(int *) bp; bp += 4;} break;
+ case 4: {bp += 4; onBeginDocument = *(int *) bp; bp += 4;} break;
+ case 5: {bp += 4; onEndDocument = *(int *) bp; bp += 4;} break;
+ case 6: {bp += 4; hasPage = *(int *) bp; bp += 4;} break;
+ case 7: {bp += 4; getPageInfo = *(int *) bp; bp += 4;} break;
+ }
+ }
+ wxEPrintout *Result = new wxEPrintout(title,onPrintPage,
+ onPreparePrinting,
+ onBeginPrinting,onEndPrinting,
+ onBeginDocument,onEndDocument,
+ hasPage,getPageInfo, Ecmd.port);
+
+ rt.addRef(getRef((void *)Result,memenv), "wxPrintout");
+ break;
+}
+wxPrintout>>
+