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