Version 4.0.0.1, tag libreoffice-4.0.0.1
[LibreOffice.git] / cui / source / inc / hldoctp.hxx
blobc610aa78fcd910b148e61c4942587dc221791768
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 #ifndef _SVX_TABPAGE_DOC_HYPERLINK_HXX
20 #define _SVX_TABPAGE_DOC_HYPERLINK_HXX
22 #include "hltpbase.hxx"
24 /*************************************************************************
26 |* Tabpage : Hyperlink - Document
28 \************************************************************************/
30 class SvxHyperlinkDocTp : public SvxHyperlinkTabPageBase
32 private:
33 FixedLine maGrpDocument;
34 FixedText maFtPath;
35 SvxHyperURLBox maCbbPath;
36 ImageButton maBtFileopen;
38 FixedLine maGrpTarget;
39 FixedText maFtTarget;
40 Edit maEdTarget;
41 FixedText maFtURL;
42 FixedText maFtFullURL;
43 ImageButton maBtBrowse;
45 String maStrURL;
47 sal_Bool mbMarkWndOpen;
49 DECL_LINK (ClickFileopenHdl_Impl , void * );
50 DECL_LINK (ClickTargetHdl_Impl , void * );
52 DECL_LINK (ModifiedPathHdl_Impl , void * ); ///< Contens of combobox "Path" modified
53 DECL_LINK (ModifiedTargetHdl_Impl, void * ); ///< Contens of editfield "Target" modified
55 DECL_LINK (LostFocusPathHdl_Impl, void * ); ///< Combobox "path" lost its focus
57 DECL_LINK(TimeoutHdl_Impl , void *); ///< Handler for timer -timeout
59 enum EPathType { Type_Unknown, Type_Invalid,
60 Type_ExistsFile, Type_File,
61 Type_ExistsDir, Type_Dir };
62 EPathType GetPathType ( String& aStrPath );
64 protected:
65 void FillDlgFields ( String& aStrURL );
66 void GetCurentItemData ( String& aStrURL, String& aStrName,
67 String& aStrIntName, String& aStrFrame,
68 SvxLinkInsertMode& eMode );
69 virtual sal_Bool ShouldOpenMarkWnd () {return mbMarkWndOpen;}
70 virtual void SetMarkWndShouldOpen (sal_Bool bOpen) {mbMarkWndOpen=bOpen;}
71 String GetCurrentURL ();
73 public:
74 SvxHyperlinkDocTp ( Window *pParent, const SfxItemSet& rItemSet);
75 ~SvxHyperlinkDocTp ();
77 static IconChoicePage* Create( Window* pWindow, const SfxItemSet& rItemSet );
79 virtual void SetMarkStr ( String& aStrMark );
81 virtual void SetInitFocus();
85 #endif // _SVX_TABPAGE_DOC_HYPERLINK_HXX
87 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */