Ejemplo n.º 1
0
        //-----------------------------------------------------------------------------

        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);
        }
Ejemplo n.º 2
0
 [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);