예제 #1
0
파일: Printer.cs 프로젝트: wshcdr/wxnet
        //-----------------------------------------------------------------------------

        internal Printout(IntPtr wxObject)
            : base(wxObject)
        {
            onBeginDocument   = new Virtual_OnBeginDocument(OnBeginDocument);
            onEndDocument     = new Virtual_NoParams(OnEndDocument);
            onBeginPrinting   = new Virtual_NoParams(OnBeginPrinting);
            onEndPrinting     = new Virtual_NoParams(OnEndPrinting);
            onPreparePrinting = new Virtual_NoParams(OnPreparePrinting);
            hasPage           = new Virtual_ParamsInt(HasPage);
            onPrintPage       = new Virtual_ParamsInt(OnPrintPage);
            getPageInfo       = new Virtual_GetPageInfo(GetPageInfo);

            wxPrintout_RegisterVirtual(wxObject,
                                       onBeginDocument,
                                       onEndDocument,
                                       onBeginPrinting,
                                       onEndPrinting,
                                       onPreparePrinting,
                                       hasPage,
                                       onPrintPage,
                                       getPageInfo);
        }
예제 #2
0
파일: Printer.cs 프로젝트: wshcdr/wxnet
 [DllImport("wx-c"), System.Security.SuppressUnmanagedCodeSecurity] static extern void   wxPrintout_RegisterVirtual(IntPtr self, Virtual_OnBeginDocument onBeginDocument, Virtual_NoParams onEndDocument, Virtual_NoParams onBeginPrinting, Virtual_NoParams onEndPrinting, Virtual_NoParams onPreparePrinting, Virtual_ParamsInt hasPage, Virtual_ParamsInt onPrintPage, Virtual_GetPageInfo getPageInfo);