Bump version to 6.4.7.2.M8
[LibreOffice.git] / cui / source / inc / hldoctp.hxx
blob9f5f8395f3c1ab49950b6d1b43d96e0957cbda6a
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 INCLUDED_CUI_SOURCE_INC_HLDOCTP_HXX
20 #define INCLUDED_CUI_SOURCE_INC_HLDOCTP_HXX
22 #include "hltpbase.hxx"
24 /*************************************************************************
26 |* Tabpage : Hyperlink - Document
28 \************************************************************************/
29 class SvxHyperlinkDocTp final : public SvxHyperlinkTabPageBase
31 private:
32 std::unique_ptr<SvxHyperURLBox> m_xCbbPath;
33 std::unique_ptr<weld::Button> m_xBtFileopen;
34 std::unique_ptr<weld::Entry> m_xEdTarget;
35 std::unique_ptr<weld::Label> m_xFtFullURL;
36 std::unique_ptr<weld::Button> m_xBtBrowse;
38 OUString maStrURL;
40 bool m_bMarkWndOpen;
42 DECL_LINK (ClickFileopenHdl_Impl, weld::Button&, void );
43 DECL_LINK (ClickTargetHdl_Impl, weld::Button&, void );
45 DECL_LINK (ModifiedPathHdl_Impl, weld::ComboBox&, void ); ///< Contents of combobox "Path" modified
46 DECL_LINK (ModifiedTargetHdl_Impl, weld::Entry&, void ); ///< Contents of editfield "Target" modified
48 DECL_LINK( LostFocusPathHdl_Impl, weld::Widget&, void ); ///< Combobox "path" lost its focus
50 DECL_LINK( TimeoutHdl_Impl, Timer *, void ); ///< Handler for timer -timeout
52 enum class EPathType { Invalid, ExistsFile };
53 static EPathType GetPathType ( const OUString& rStrPath );
55 void FillDlgFields(const OUString& rStrURL) override;
56 void GetCurentItemData ( OUString& rStrURL, OUString& aStrName,
57 OUString& aStrIntName, OUString& aStrFrame,
58 SvxLinkInsertMode& eMode ) override;
59 virtual bool ShouldOpenMarkWnd () override {return m_bMarkWndOpen;}
60 virtual void SetMarkWndShouldOpen (bool bOpen) override {m_bMarkWndOpen=bOpen;}
61 OUString GetCurrentURL() const;
63 public:
64 SvxHyperlinkDocTp(weld::Container* pParent, SvxHpLinkDlg* pDlg, const SfxItemSet* pItemSet);
65 virtual ~SvxHyperlinkDocTp() override;
67 static std::unique_ptr<IconChoicePage> Create(weld::Container* pWindow, SvxHpLinkDlg* pDlg, const SfxItemSet* pItemSet);
69 virtual void SetMarkStr ( const OUString& aStrMark ) override;
71 virtual void SetInitFocus() override;
74 #endif // INCLUDED_CUI_SOURCE_INC_HLDOCTP_HXX
76 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */