update dev300-m58
[ooovba.git] / sw / source / ui / inc / dbui.hxx
blobf23c0896e073c323cb715a9f18f429e007364269
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: dbui.hxx,v $
10 * $Revision: 1.5.136.1 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef _DBUI_HXX
31 #define _DBUI_HXX
33 #include <svx/stddlg.hxx>
35 #ifndef _BUTTON_HXX //autogen
36 #include <vcl/button.hxx>
37 #endif
38 #include <vcl/fixed.hxx>
41 class SW_DLLPUBLIC PrintMonitor: public ModelessDialog
43 public:
44 enum PrintMonitorType
46 MONITOR_TYPE_PRINT,
47 MONITOR_TYPE_MAIL,
48 MONITOR_TYPE_SAVE
50 FixedText aDocName;
51 FixedText aPrinting;
52 FixedText aPrinter;
53 FixedText aPrintInfo;
54 CancelButton aCancel;
56 PrintMonitor( Window *pParent, PrintMonitorType eType );
58 void ResizeControls();
61 class CreateMonitor : public ModelessDialog
63 public:
64 CreateMonitor( Window *pParent );
66 void SetTotalCount( sal_Int32 nTotal );
67 void SetCurrentPosition( sal_Int32 nCurrent );
69 void SetCancelHdl( const Link& rLink );
71 private: //methods
72 void UpdateCountingText();
74 private: //member
75 FixedText m_aStatus;
76 FixedText m_aProgress;
77 FixedText m_aCreateDocuments;
78 FixedText m_aCounting;
79 CancelButton m_aCancelButton;
81 String m_sCountingPattern;
82 String m_sVariable_Total;
83 String m_sVariable_Position;
84 sal_Int32 m_nTotalCount;
85 sal_Int32 m_nCurrentPosition;
88 #endif