예제 #1
0
 /// <summary>
 ///  Shows Print Preview Form
 /// </summary>
 /// <param name="hWnd"> Handle of Print Preview form</param>
 internal void Show(IntPtr hWnd)
 {
     _commandType              = CommandType.PRINTPREVIEW_SHOW;
     _printPreviewData         = new PrintPreviewData();
     _printPreviewData.intPtr1 = hWnd;
     GUIMain.getInstance().invoke(new PrintPreviewDelegate(Run));
 }
예제 #2
0
 /// <summary>
 /// Update Print Preview
 /// </summary>
 /// <param name="prnPrevData">print preview data</param>
 internal void Update(IntPtr prnPrevData)
 {
     _commandType              = CommandType.PRINTPREVIEW_UPDATE;
     _printPreviewData         = new PrintPreviewData();
     _printPreviewData.intPtr1 = prnPrevData;
     GUIMain.getInstance().invoke(new PrintPreviewDelegate(Run));
 }
예제 #3
0
 /// <summary>
 /// Destroys a window
 /// </summary>
 /// <param name="hWndPtr">handle of window</param>
 internal void DestroyGuiWindow(IntPtr hWndPtr)
 {
     _commandType              = CommandType.DESTROY_WINDOW;
     _printPreviewData         = new PrintPreviewData();
     _printPreviewData.intPtr1 = hWndPtr;
     GUIMain.getInstance().invoke(new PrintPreviewDelegate(Run));
 }
예제 #4
0
 /// <summary>
 /// Returns active form
 /// </summary>
 /// <returns></returns>
 internal IntPtr GetActiveForm()
 {
     _commandType      = CommandType.PRINTPREVIEW_GETACTIVEFORM;
     _printPreviewData = new PrintPreviewData();
     GUIMain.getInstance().invoke(new PrintPreviewDelegate(Run));
     return(_printPreviewData.intPtr1);
 }
예제 #5
0
        /// <summary>
        /// Set cursor for Print Preview Form
        /// </summary>
        /// <param name="printPreviewDataPtr"></param>
        internal void SetCursor(IntPtr printPreviewDataPtr)
        {
            _commandType              = CommandType.PRINTPREVIEW_SET_CURSOR;
            _printPreviewData         = new PrintPreviewData();
            _printPreviewData.intPtr1 = printPreviewDataPtr;

            GUIMain.getInstance().invoke(new PrintPreviewDelegate(Run));
        }
예제 #6
0
 /// <summary>
 /// Show Print Dialog
 /// </summary>
 /// <param name="prnPrevData">print dialog info</param>
 internal int showPrintDialog(IntPtr gpd)
 {
     _commandType              = CommandType.SHOW_PRINT_DIALOG;
     _printPreviewData         = new PrintPreviewData();
     _printPreviewData.intPtr1 = gpd;
     GUIMain.getInstance().invoke(new PrintPreviewDelegate(Run));
     return(_printPreviewData.number1);
 }
예제 #7
0
 /// <summary>
 /// Closes Print Preview form
 /// </summary>
 /// <param name="hWnd"> Print Preview data</param>
 /// <param name="hWnd"> Handle of Print Preview form</param>
 internal void Close(IntPtr printPreviewData, IntPtr hWnd)
 {
     _commandType              = CommandType.PRINTPREVIEW_CLOSE;
     _printPreviewData         = new PrintPreviewData();
     _printPreviewData.intPtr1 = hWnd;
     _printPreviewData.intPtr2 = printPreviewData;
     GUIMain.getInstance().invoke(new PrintPreviewDelegate(Run));
 }
예제 #8
0
 /// <summary>
 /// Create Rich Edit
 /// </summary>
 /// <param name="contextId"></param>
 /// <param name="ctrlPtr"></param>
 /// <param name="prmPtr"></param>
 /// <param name="style"></param>
 /// <param name="dwExStyle"></param>
 internal void createRichWindow(Int64 contextID, IntPtr ctrlPtr, IntPtr prmPtr, uint style, uint dwExStyle)
 {
     _commandType               = CommandType.CREATE_RICH_WINDOW;
     _printPreviewData          = new PrintPreviewData();
     _printPreviewData.Int64Val = contextID;
     _printPreviewData.intPtr1  = ctrlPtr;
     _printPreviewData.intPtr2  = prmPtr;
     _printPreviewData.style    = (int)style;
     _printPreviewData.number1  = (int)dwExStyle;
     GUIMain.getInstance().invoke(new PrintPreviewDelegate(Run));
 }
예제 #9
0
        /// <summary>
        /// Creates Print Preview Form
        /// </summary>
        /// <param name="contextId">context id</param>
        /// <param name="ioPtr">pointer to current IORT object</param>
        /// <param name="copies">number of copies</param>
        /// <param name="enablePDlg">indicates whether to enable Print dialog</param>
        /// <param name="callerWindow">caller window of Print Preview</param>
        internal void Start(Int64 contextID, IntPtr ioPtr, int copies, bool enablePDlg, Form callerWindow)
        {
            _commandType                   = CommandType.PRINTPREVIEW_START;
            _printPreviewData              = new PrintPreviewData();
            _printPreviewData.Int64Val     = contextID;
            _printPreviewData.intPtr1      = ioPtr;
            _printPreviewData.boolVal      = enablePDlg;
            _printPreviewData.number1      = copies;
            _printPreviewData.callerWindow = callerWindow;

            GUIMain.getInstance().invoke(new PrintPreviewDelegate(Run));
        }
예제 #10
0
        ///<summary>
        ///  Creates a window using win32 API from GUI Thread.
        ///</summary>
        ///<param name="exStyle">!!.</param>
        ///<param name="className">!!.</param>
        ///<param name="windowName">!!.</param>
        ///<param name="style">!!.</param>
        ///<param name="x">!!.</param>
        ///<param name="y">!!.</param>
        ///<param name="width">!!.</param>
        ///<param name="height">!!.</param>
        ///<param name="hwndParent">!!.</param>
        ///<param name="hMenu">!!.</param>
        ///<param name="hInstance">!!.</param>
        ///<param name="lParam">!!.</param>
        ///<returns>handle of window</returns>
        internal IntPtr CreateGuiWindow(uint exStyle, String className, String windowName, uint style, int x, int y, int width, int height,
                                        IntPtr hwndParent, IntPtr hMenu, IntPtr hInstance, IntPtr lParam)
        {
            _commandType      = CommandType.CREATE_WINDOW;
            _printPreviewData = new PrintPreviewData();
            _printPreviewData.extendedStyle = (int)exStyle;
            _printPreviewData.style         = (int)style;
            _printPreviewData.className     = className;
            _printPreviewData.windowName    = windowName;
            _printPreviewData.number1       = x;
            _printPreviewData.number1       = y;
            _printPreviewData.number1       = width;
            _printPreviewData.number1       = height;
            _printPreviewData.intPtr1       = hwndParent;
            _printPreviewData.intPtr2       = hMenu;
            _printPreviewData.intPtr3       = hInstance;
            _printPreviewData.intPtr4       = lParam;

            GUIMain.getInstance().invoke(new PrintPreviewDelegate(Run));
            return(_printPreviewData.intPtr1);
        }