xref: /AOO41X/main/sw/source/ui/inc/javaedit.hxx (revision cdf0e10c4e3984b49a9502b011690b615761d4a3)
1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * Copyright 2000, 2010 Oracle and/or its affiliates.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * This file is part of OpenOffice.org.
10  *
11  * OpenOffice.org is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * OpenOffice.org is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU Lesser General Public License version 3 for more details
19  * (a copy is included in the LICENSE file that accompanied this code).
20  *
21  * You should have received a copy of the GNU Lesser General Public License
22  * version 3 along with OpenOffice.org.  If not, see
23  * <http://www.openoffice.org/license.html>
24  * for a copy of the LGPLv3 License.
25  *
26  ************************************************************************/
27 #ifndef _SW_JAVAEDIT_HXX
28 #define _SW_JAVAEDIT_HXX
29 
30 // include ---------------------------------------------------------------
31 
32 #include <svx/stddlg.hxx>
33 
34 #ifndef _FIXED_HXX //autogen
35 #include <vcl/fixed.hxx>
36 #endif
37 
38 #ifndef _SV_SVMEDIT_HXX //autogen
39 #include <svtools/svmedit.hxx>
40 #endif
41 
42 #ifndef _BUTTON_HXX //autogen
43 #include <vcl/button.hxx>
44 #endif
45 
46 #ifndef _IMAGEBTN_HXX //autogen
47 #include <vcl/button.hxx>
48 #endif
49 
50 class SwWrtShell;
51 class SwFldMgr;
52 class SwScriptField;
53 
54 namespace sfx2 { class FileDialogHelper; }
55 
56 // class SwJavaEditDialog -------------------------------------------------
57 
58 class SwJavaEditDialog : public SvxStandardDialog
59 {
60 private:
61 	FixedText           aTypeFT;
62 	Edit				aTypeED;
63 	RadioButton         aUrlRB;
64 	RadioButton         aEditRB;
65 	PushButton			aUrlPB;
66 	Edit				aUrlED;
67 	MultiLineEdit       aEditED;
68     FixedLine           aPostItFL;
69 
70 	OKButton            aOKBtn;
71 	CancelButton        aCancelBtn;
72 	ImageButton         aPrevBtn;
73 	ImageButton         aNextBtn;
74 	HelpButton          aHelpBtn;
75 
76     String              aText;
77     String              aType;
78 
79 	sal_Bool				bNew;
80     sal_Bool                bIsUrl;
81 
82     SwScriptField*          pFld;
83     SwFldMgr*               pMgr;
84     SwWrtShell*             pSh;
85     sfx2::FileDialogHelper* pFileDlg;
86     Window*                 pOldDefDlgParent;
87 
88 	DECL_LINK( OKHdl, Button* );
89 	DECL_LINK( PrevHdl, Button* );
90 	DECL_LINK( NextHdl, Button* );
91 	DECL_LINK( RadioButtonHdl, RadioButton* pBtn );
92     DECL_LINK( InsertFileHdl, PushButton * );
93     DECL_LINK( DlgClosedHdl, sfx2::FileDialogHelper * );
94 
95 	virtual void 	Apply();
96 
97 	void			CheckTravel();
98 	void			SetFld();
99 
100     using Window::GetText;
101     using Window::GetType;
102 
103 public:
104 	SwJavaEditDialog(Window* pParent, SwWrtShell* pWrtSh);
105 	~SwJavaEditDialog();
106 
107     String              GetText() { return aText; }
108 
109     String              GetType() { return aType; }
110 
111     sal_Bool                IsUrl() { return bIsUrl; }
112     sal_Bool                IsNew() { return bNew; }
113     sal_Bool                IsUpdate();
114 };
115 
116 
117 #endif
118 
119