xref: /aoo41x/main/sw/source/ui/inc/dbui.hxx (revision 1d2dbeb0)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 #ifndef _DBUI_HXX
24 #define _DBUI_HXX
25 
26 #include <svx/stddlg.hxx>
27 
28 #ifndef _BUTTON_HXX //autogen
29 #include <vcl/button.hxx>
30 #endif
31 #include <vcl/fixed.hxx>
32 
33 
34 class SW_DLLPUBLIC PrintMonitor: public ModelessDialog
35 {
36 public:
37     enum PrintMonitorType
38     {
39         MONITOR_TYPE_PRINT,
40         MONITOR_TYPE_MAIL,
41         MONITOR_TYPE_SAVE
42     };
43 	FixedText		aDocName;
44 	FixedText		aPrinting;
45 	FixedText		aPrinter;
46 	FixedText		aPrintInfo;
47 	CancelButton	aCancel;
48 
49 	PrintMonitor( Window *pParent, PrintMonitorType eType );
50 
51 	void ResizeControls();
52 };
53 
54 class CreateMonitor : public ModelessDialog
55 {
56 public:
57 	CreateMonitor( Window *pParent );
58 
59     void SetTotalCount( sal_Int32 nTotal );
60     void SetCurrentPosition( sal_Int32 nCurrent );
61 
62     void SetCancelHdl( const Link& rLink );
63 
64 private: //methods
65     void UpdateCountingText();
66 
67 private: //member
68     FixedText		m_aStatus;
69     FixedText		m_aProgress;
70     FixedText		m_aCreateDocuments;
71     FixedText		m_aCounting;
72 	CancelButton	m_aCancelButton;
73 
74     String          m_sCountingPattern;
75     String          m_sVariable_Total;
76     String          m_sVariable_Position;
77     sal_Int32       m_nTotalCount;
78     sal_Int32       m_nCurrentPosition;
79 };
80 
81 #endif
82 
83