xref: /aoo4110/main/sd/source/ui/inc/custsdlg.hxx (revision b1cdbd2c)
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 
24 
25 #ifndef _SD_CUSTSDLG_HXX
26 #define _SD_CUSTSDLG_HXX
27 
28 #ifndef _BUTTON_HXX //autogen
29 #include <vcl/button.hxx>
30 #endif
31 #include <vcl/lstbox.hxx>
32 #include <vcl/fixed.hxx>
33 #include <vcl/edit.hxx>
34 #include <svtools/svtreebx.hxx>
35 #include <vcl/dialog.hxx>
36 
37 class SdDrawDocument;
38 class SdCustomShow;
39 
40 //------------------------------------------------------------------------
41 
42 class SdCustomShowDlg : public ModalDialog
43 {
44 private:
45 	ListBox 		aLbCustomShows;
46 	CheckBox		aCbxUseCustomShow;
47 	PushButton		aBtnNew;
48 	PushButton		aBtnEdit;
49 	PushButton		aBtnRemove;
50 	PushButton		aBtnCopy;
51 	HelpButton		aBtnHelp;
52 	PushButton  	aBtnStartShow;
53 	OKButton		aBtnOK;
54 
55 	SdDrawDocument&	rDoc;
56 	List*			pCustomShowList;
57 	SdCustomShow*	pCustomShow;
58 	sal_Bool			bModified;
59 
60 	void			CheckState();
61 
62 	DECL_LINK( ClickButtonHdl, void * );
63 	DECL_LINK( StartShowHdl, Button* );
64 
65 public:
66 				SdCustomShowDlg( Window* pWindow, SdDrawDocument& rDrawDoc );
67 				~SdCustomShowDlg();
68 
IsModified() const69 	sal_Bool		IsModified() const { return( bModified ); }
70 	sal_Bool		IsCustomShow() const;
71 };
72 
73 
74 //------------------------------------------------------------------------
75 
76 class SdDefineCustomShowDlg : public ModalDialog
77 {
78 private:
79 	FixedText		aFtName;
80 	Edit			aEdtName;
81 	FixedText		aFtPages;
82 	MultiListBox	aLbPages;
83 	PushButton		aBtnAdd;
84 	PushButton		aBtnRemove;
85 	FixedText		aFtCustomPages;
86 	SvTreeListBox	aLbCustomPages;
87 	OKButton		aBtnOK;
88 	CancelButton 	aBtnCancel;
89 	HelpButton		aBtnHelp;
90 
91 	SdDrawDocument&	rDoc;
92 	SdCustomShow*&	rpCustomShow;
93 	sal_Bool			bModified;
94 	String			aOldName;
95 
96 	void			CheckState();
97 	void			CheckCustomShow();
98 
99 	DECL_LINK( ClickButtonHdl, void * );
100 	DECL_LINK( OKHdl, Button* );
101 
102 public:
103 
104 					SdDefineCustomShowDlg( Window* pWindow,
105 							SdDrawDocument& rDrawDoc, SdCustomShow*& rpCS );
106 					~SdDefineCustomShowDlg();
107 
IsModified() const108 	sal_Bool			IsModified() const { return( bModified ); }
109 };
110 
111 #endif // _SD_CUSTSDLG_HXX
112 
113