xref: /trunk/main/sw/source/ui/inc/chrdlg.hxx (revision cdf0e10c)
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 _SWCHARDLG_HXX
28 #define _SWCHARDLG_HXX
29 #include <sfx2/tabdlg.hxx>
30 
31 #ifndef _GROUP_HXX //autogen
32 #include <vcl/group.hxx>
33 #endif
34 
35 #ifndef _FIXED_HXX //autogen
36 #include <vcl/fixed.hxx>
37 #endif
38 
39 #ifndef _EDIT_HXX //autogen
40 #include <vcl/edit.hxx>
41 #endif
42 
43 #ifndef _COMBOBOX_HXX //autogen
44 #include <vcl/combobox.hxx>
45 #endif
46 
47 #ifndef _BUTTON_HXX //autogen
48 #include <vcl/button.hxx>
49 #endif
50 
51 #ifndef _LSTBOX_HXX //autogen
52 #include <vcl/lstbox.hxx>
53 #endif
54 
55 class SwView;
56 class SvxMacroItem;
57 
58 /*--------------------------------------------------------------------
59    Beschreibung:	Der Tabdialog Traeger der TabPages
60  --------------------------------------------------------------------*/
61 
62 class SwCharDlg: public SfxTabDialog
63 {
64 	SwView&   rView;
65 	sal_Bool      bIsDrwTxtMode;
66 
67 public:
68 	SwCharDlg(Window* pParent, SwView& pVw, const SfxItemSet& rCoreSet,
69 			  const String* pFmtStr = 0, sal_Bool bIsDrwTxtDlg = sal_False);
70 
71 	~SwCharDlg();
72 
73 	virtual void PageCreated( sal_uInt16 nId, SfxTabPage &rPage );
74 };
75 
76 /*-----------------14.08.96 11.03-------------------
77 	Beschreibung: Tabpage fuer URL-Attribut
78 --------------------------------------------------*/
79 
80 class SwCharURLPage : public SfxTabPage
81 {
82     FixedLine           aURLFL;
83 
84 	FixedText			aURLFT;
85 	Edit                aURLED;
86 	FixedText			aTextFT;
87 	Edit                aTextED;
88 	FixedText			aNameFT;
89 	Edit                aNameED;
90 	FixedText			aTargetFrmFT;
91 	ComboBox 			aTargetFrmLB;
92 	PushButton			aURLPB;
93 	PushButton			aEventPB;
94     FixedLine           aStyleFL;
95 	FixedText			aVisitedFT;
96 	ListBox             aVisitedLB;
97 	FixedText           aNotVisitedFT;
98 	ListBox             aNotVisitedLB;
99 
100 	SvxMacroItem*		pINetItem;
101 	sal_Bool 				bModified;
102 
103 	DECL_LINK( InsertFileHdl, PushButton * );
104 	DECL_LINK( EventHdl, PushButton * );
105 
106 public:
107 						SwCharURLPage( Window* pParent,
108 										   const SfxItemSet& rSet );
109 
110 						~SwCharURLPage();
111 	static SfxTabPage*  Create( Window* pParent,
112 								const SfxItemSet& rAttrSet);
113 
114 	virtual sal_Bool        FillItemSet( SfxItemSet& rSet );
115 	virtual void        Reset( const SfxItemSet& rSet );
116 };
117 
118 #endif
119 
120