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: hldoctp.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 ************************************************************************/
30 #ifndef _SVX_TABPAGE_DOC_HYPERLINK_HXX
31 #define _SVX_TABPAGE_DOC_HYPERLINK_HXX
33 #include "hltpbase.hxx"
35 /*************************************************************************
37 |* Tabpage : Hyperlink - Document
39 \************************************************************************/
41 class SvxHyperlinkDocTp
: public SvxHyperlinkTabPageBase
44 FixedLine maGrpDocument
;
46 SvxHyperURLBox maCbbPath
;
47 ImageButton maBtFileopen
;
49 FixedLine maGrpTarget
;
53 FixedText maFtFullURL
;
54 ImageButton maBtBrowse
;
60 DECL_LINK (ClickFileopenHdl_Impl
, void * ); // Button : Fileopen
61 DECL_LINK (ClickTargetHdl_Impl
, void * ); // Button : Target
63 DECL_LINK (ModifiedPathHdl_Impl
, void * ); // Contens of combobox "Path" modified
64 DECL_LINK (ModifiedTargetHdl_Impl
, void * ); // Contens of editfield "Target" modified
66 DECL_LINK (LostFocusPathHdl_Impl
, void * ); // Combobox "path" lost its focus
68 DECL_LINK (TimeoutHdl_Impl
, Timer
* ); // Handler for timer -timeout
70 enum EPathType
{ Type_Unknown
, Type_Invalid
,
71 Type_ExistsFile
, Type_File
,
72 Type_ExistsDir
, Type_Dir
};
73 EPathType
GetPathType ( String
& aStrPath
);
76 void FillDlgFields ( String
& aStrURL
);
77 void GetCurentItemData ( String
& aStrURL
, String
& aStrName
,
78 String
& aStrIntName
, String
& aStrFrame
,
79 SvxLinkInsertMode
& eMode
);
80 virtual BOOL
ShouldOpenMarkWnd () {return mbMarkWndOpen
;}
81 virtual void SetMarkWndShouldOpen (BOOL bOpen
) {mbMarkWndOpen
=bOpen
;}
82 String
GetCurrentURL ();
85 SvxHyperlinkDocTp ( Window
*pParent
, const SfxItemSet
& rItemSet
);
86 ~SvxHyperlinkDocTp ();
88 static IconChoicePage
* Create( Window
* pWindow
, const SfxItemSet
& rItemSet
);
90 virtual void SetMarkStr ( String
& aStrMark
);
92 virtual void SetInitFocus();
96 #endif // _SVX_TABPAGE_DOC_HYPERLINK_HXX