1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: scuitphfedit.hxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef SCUI_TPHFEDIT_HXX
32 #define SCUI_TPHFEDIT_HXX
34 #include "tphfedit.hxx"
36 //===================================================================
48 ePageExtFileNameEntry
,
54 class ScHeaderEditEngine
;
59 class ScAccessibleEditObject
;
62 class ScHFEditPage
: public SfxTabPage
65 virtual BOOL
FillItemSet ( SfxItemSet
& rCoreSet
);
66 virtual void Reset ( const SfxItemSet
& rCoreSet
);
68 void SetNumType(SvxNumType eNumType
);
69 void ClearTextAreas();
72 ScHFEditPage( Window
* pParent
,
74 const SfxItemSet
& rCoreSet
,
75 USHORT nWhich
, bool bHeader
);
76 virtual ~ScHFEditPage();
80 ScEditWindow aWndLeft
;
82 ScEditWindow aWndCenter
;
84 ScEditWindow aWndRight
;
85 FixedText maFtDefinedHF
;
87 FixedText maFtCustomHF
;
89 ScExtIButton aBtnFile
;
90 ImageButton aBtnTable
;
92 ImageButton aBtnLastPage
;
97 ScPopupMenu aPopUpFile
;
105 void InitPreDefinedList();
106 void ProcessDefinedListSel(ScHFEntryId eSel
, bool bTravelling
= false);
107 void InsertToDefinedList();
108 void RemoveFromDefinedList();
109 void SetSelectDefinedList();
110 bool IsPageEntry(EditEngine
*pEngine
, EditTextObject
* pTextObj
);
111 bool IsDateEntry(EditTextObject
* pTextObj
);
112 bool IsExtFileNameEntry(EditTextObject
* pTextObj
);
113 DECL_LINK( ListHdl_Impl
, ListBox
* );
114 DECL_LINK( ClickHdl
, ImageButton
* );
115 DECL_LINK( MenuHdl
, ScExtIButton
* );
119 //===================================================================
121 class ScRightHeaderEditPage
: public ScHFEditPage
124 static SfxTabPage
* Create( Window
* pParent
, const SfxItemSet
& rCoreSet
);
125 static USHORT
* GetRanges();
128 ScRightHeaderEditPage( Window
* pParent
, const SfxItemSet
& rSet
);
131 //===================================================================
133 class ScLeftHeaderEditPage
: public ScHFEditPage
136 static SfxTabPage
* Create( Window
* pParent
, const SfxItemSet
& rCoreSet
);
137 static USHORT
* GetRanges();
140 ScLeftHeaderEditPage( Window
* pParent
, const SfxItemSet
& rSet
);
143 //===================================================================
145 class ScRightFooterEditPage
: public ScHFEditPage
148 static SfxTabPage
* Create( Window
* pParent
, const SfxItemSet
& rCoreSet
);
149 static USHORT
* GetRanges();
152 ScRightFooterEditPage( Window
* pParent
, const SfxItemSet
& rSet
);
155 //===================================================================
157 class ScLeftFooterEditPage
: public ScHFEditPage
160 static SfxTabPage
* Create( Window
* pParent
, const SfxItemSet
& rCoreSet
);
161 static USHORT
* GetRanges();
164 ScLeftFooterEditPage( Window
* pParent
, const SfxItemSet
& rSet
);