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