xref: /aoo42x/main/sc/source/ui/inc/scendlg.hxx (revision 38d50f7b)
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 #ifndef SC_SCENDLG_HXX
25 #define SC_SCENDLG_HXX
26 
27 
28 #include <vcl/dialog.hxx>
29 #include <vcl/edit.hxx>
30 #include <vcl/fixed.hxx>
31 #include <vcl/button.hxx>
32 #include <svtools/svmedit.hxx>
33 #include <svtools/ctrlbox.hxx>
34 
35 //===================================================================
36 
37 class ScNewScenarioDlg : public ModalDialog
38 {
39 public:
40 		ScNewScenarioDlg( Window* pParent, const String& rName, sal_Bool bEdit = sal_False, sal_Bool bSheetProtected = sal_False );
41 		~ScNewScenarioDlg();
42 
43 	void SetScenarioData( const String& rName, const String& rComment,
44 							const Color& rColor, sal_uInt16 nFlags );
45 
46 	void GetScenarioData( String& rName, String& rComment,
47 							Color& rColor, sal_uInt16& rFlags ) const;
48 
49 private:
50     FixedLine           aFlName;
51 	Edit				aEdName;
52     FixedLine           aFlComment;
53 	MultiLineEdit		aEdComment;
54     FixedLine           aFlOptions;
55 	CheckBox			aCbShowFrame;
56 	ColorListBox		aLbColor;
57 	//CheckBox			aCbPrintFrame;
58 	CheckBox			aCbTwoWay;
59 	//CheckBox			aCbAttrib;
60 	//CheckBox			aCbValue;
61 	CheckBox			aCbCopyAll;
62     CheckBox            aCbProtect;
63 	OKButton			aBtnOk;
64 	CancelButton		aBtnCancel;
65 	HelpButton			aBtnHelp;
66 	const String		aDefScenarioName;
67 	sal_Bool				bIsEdit;
68 
69 	DECL_LINK( OkHdl, OKButton * );
70     DECL_LINK( EnableHdl, CheckBox * );
71 };
72 
73 
74 #endif // SC_SCENDLG_HXX
75 
76 
77