1*353d8f4dSAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*353d8f4dSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*353d8f4dSAndrew Rist * or more contributor license agreements. See the NOTICE file 5*353d8f4dSAndrew Rist * distributed with this work for additional information 6*353d8f4dSAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*353d8f4dSAndrew Rist * to you under the Apache License, Version 2.0 (the 8*353d8f4dSAndrew Rist * "License"); you may not use this file except in compliance 9*353d8f4dSAndrew Rist * with the License. You may obtain a copy of the License at 10*353d8f4dSAndrew Rist * 11*353d8f4dSAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*353d8f4dSAndrew Rist * 13*353d8f4dSAndrew Rist * Unless required by applicable law or agreed to in writing, 14*353d8f4dSAndrew Rist * software distributed under the License is distributed on an 15*353d8f4dSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*353d8f4dSAndrew Rist * KIND, either express or implied. See the License for the 17*353d8f4dSAndrew Rist * specific language governing permissions and limitations 18*353d8f4dSAndrew Rist * under the License. 19*353d8f4dSAndrew Rist * 20*353d8f4dSAndrew Rist *************************************************************/ 21*353d8f4dSAndrew Rist 22*353d8f4dSAndrew Rist 23cdf0e10cSrcweir #ifndef _SFX_PRNMON_HXX 24cdf0e10cSrcweir #define _SFX_PRNMON_HXX 25cdf0e10cSrcweir 26cdf0e10cSrcweir #include "sal/config.h" 27cdf0e10cSrcweir #include "sfx2/dllapi.h" 28cdf0e10cSrcweir 29cdf0e10cSrcweir #include <vcl/button.hxx> 30cdf0e10cSrcweir #include <vcl/dialog.hxx> 31cdf0e10cSrcweir #include <sfx2/printer.hxx> 32cdf0e10cSrcweir //#include <sfx2/progress.hxx> 33cdf0e10cSrcweir 34cdf0e10cSrcweir class SfxViewShell; 35cdf0e10cSrcweir //class SfxProgress; 36cdf0e10cSrcweir struct SfxPrintProgress_Impl; 37cdf0e10cSrcweir 38cdf0e10cSrcweir // ------------------------------------------------------------------------ 39cdf0e10cSrcweir 40cdf0e10cSrcweir #define PAGE_MAX 9999 //max. Anzahl der Seiten die gedruckt werden 41cdf0e10cSrcweir 42cdf0e10cSrcweir //-------------------------------------------------------------------- 43cdf0e10cSrcweir /* 44cdf0e10cSrcweir class SFX2_DLLPUBLIC SfxPrintProgress: public SfxProgress 45cdf0e10cSrcweir { 46cdf0e10cSrcweir SfxPrintProgress_Impl* pImp; 47cdf0e10cSrcweir 48cdf0e10cSrcweir private: 49cdf0e10cSrcweir //#if 0 // _SOLAR__PRIVATE 50cdf0e10cSrcweir DECL_DLLPRIVATE_LINK( PrintErrorNotify, void * ); 51cdf0e10cSrcweir DECL_DLLPRIVATE_LINK( StartPrintNotify, void * ); 52cdf0e10cSrcweir DECL_DLLPRIVATE_LINK( EndPrintNotify, void * ); 53cdf0e10cSrcweir //#endif 54cdf0e10cSrcweir public: 55cdf0e10cSrcweir SfxPrintProgress( SfxViewShell* pViewSh, 56cdf0e10cSrcweir FASTBOOL bShow = sal_True ); 57cdf0e10cSrcweir virtual ~SfxPrintProgress(); 58cdf0e10cSrcweir 59cdf0e10cSrcweir virtual void SetText( const String &rText ); 60cdf0e10cSrcweir sal_Bool SetStateText( sal_uIntPtr nVal, const String &rVal, sal_uIntPtr nNewRange = 0 ); 61cdf0e10cSrcweir virtual sal_Bool SetState( sal_uIntPtr nVal, sal_uIntPtr nNewRange = 0 ); 62cdf0e10cSrcweir 63cdf0e10cSrcweir void RestoreOnEndPrint( SfxPrinter *pOldPrinter ); 64cdf0e10cSrcweir void RestoreOnEndPrint( SfxPrinter *pOldPrinter, 65cdf0e10cSrcweir sal_Bool bOldEnablePrintFile ); 66cdf0e10cSrcweir void DeleteOnEndPrint(); 67cdf0e10cSrcweir void SetCancelHdl( const Link& aCancelHdl ); 68cdf0e10cSrcweir sal_Bool IsAborted() const; 69cdf0e10cSrcweir }; 70cdf0e10cSrcweir */ 71cdf0e10cSrcweir // ------------------------------------------------------------------------ 72cdf0e10cSrcweir 73cdf0e10cSrcweir struct SfxPrintOptDlg_Impl; 74cdf0e10cSrcweir class SfxPrintOptionsDialog : public ModalDialog 75cdf0e10cSrcweir { 76cdf0e10cSrcweir private: 77cdf0e10cSrcweir OKButton aOkBtn; 78cdf0e10cSrcweir CancelButton aCancelBtn; 79cdf0e10cSrcweir HelpButton aHelpBtn; 80cdf0e10cSrcweir SfxPrintOptDlg_Impl* pDlgImpl; 81cdf0e10cSrcweir SfxViewShell* pViewSh; 82cdf0e10cSrcweir SfxItemSet* pOptions; 83cdf0e10cSrcweir SfxTabPage* pPage; 84cdf0e10cSrcweir 85cdf0e10cSrcweir public: 86cdf0e10cSrcweir SfxPrintOptionsDialog( Window *pParent, 87cdf0e10cSrcweir SfxViewShell *pViewShell, 88cdf0e10cSrcweir const SfxItemSet *rOptions ); 89cdf0e10cSrcweir virtual ~SfxPrintOptionsDialog(); 90cdf0e10cSrcweir 91cdf0e10cSrcweir sal_Bool Construct(); 92cdf0e10cSrcweir virtual short Execute(); 93cdf0e10cSrcweir virtual long Notify( NotifyEvent& rNEvt ); 94cdf0e10cSrcweir GetTabPage() const95cdf0e10cSrcweir SfxTabPage* GetTabPage() const { return pPage; } GetOptions() const96cdf0e10cSrcweir const SfxItemSet& GetOptions() const { return *pOptions; } 97cdf0e10cSrcweir void DisableHelp(); 98cdf0e10cSrcweir }; 99cdf0e10cSrcweir 100cdf0e10cSrcweir #endif 101