xref: /aoo42x/main/sw/source/ui/inc/javaedit.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 _SW_JAVAEDIT_HXX
24 #define _SW_JAVAEDIT_HXX
25 
26 // include ---------------------------------------------------------------
27 
28 #include <svx/stddlg.hxx>
29 
30 #ifndef _FIXED_HXX //autogen
31 #include <vcl/fixed.hxx>
32 #endif
33 
34 #ifndef _SV_SVMEDIT_HXX //autogen
35 #include <svtools/svmedit.hxx>
36 #endif
37 
38 #ifndef _BUTTON_HXX //autogen
39 #include <vcl/button.hxx>
40 #endif
41 
42 #ifndef _IMAGEBTN_HXX //autogen
43 #include <vcl/button.hxx>
44 #endif
45 
46 class SwWrtShell;
47 class SwFldMgr;
48 class SwScriptField;
49 
50 namespace sfx2 { class FileDialogHelper; }
51 
52 // class SwJavaEditDialog -------------------------------------------------
53 
54 class SwJavaEditDialog : public SvxStandardDialog
55 {
56 private:
57 	FixedText           aTypeFT;
58 	Edit				aTypeED;
59 	RadioButton         aUrlRB;
60 	RadioButton         aEditRB;
61 	PushButton			aUrlPB;
62 	Edit				aUrlED;
63 	MultiLineEdit       aEditED;
64     FixedLine           aPostItFL;
65 
66 	OKButton            aOKBtn;
67 	CancelButton        aCancelBtn;
68 	ImageButton         aPrevBtn;
69 	ImageButton         aNextBtn;
70 	HelpButton          aHelpBtn;
71 
72     String              aText;
73     String              aType;
74 
75 	sal_Bool				bNew;
76     sal_Bool                bIsUrl;
77 
78     SwScriptField*          pFld;
79     SwFldMgr*               pMgr;
80     SwWrtShell*             pSh;
81     sfx2::FileDialogHelper* pFileDlg;
82     Window*                 pOldDefDlgParent;
83 
84 	DECL_LINK( OKHdl, Button* );
85 	DECL_LINK( PrevHdl, Button* );
86 	DECL_LINK( NextHdl, Button* );
87 	DECL_LINK( RadioButtonHdl, RadioButton* pBtn );
88     DECL_LINK( InsertFileHdl, PushButton * );
89     DECL_LINK( DlgClosedHdl, sfx2::FileDialogHelper * );
90 
91 	virtual void 	Apply();
92 
93 	void			CheckTravel();
94 	void			SetFld();
95 
96     using Window::GetText;
97     using Window::GetType;
98 
99 public:
100 	SwJavaEditDialog(Window* pParent, SwWrtShell* pWrtSh);
101 	~SwJavaEditDialog();
102 
GetText()103     String              GetText() { return aText; }
104 
GetType()105     String              GetType() { return aType; }
106 
IsUrl()107     sal_Bool                IsUrl() { return bIsUrl; }
IsNew()108     sal_Bool                IsNew() { return bNew; }
109     sal_Bool                IsUpdate();
110 };
111 
112 
113 #endif
114 
115