LibreOffice Module cui (master)  1
hldoctp.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
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/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
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 .
18  */
19 #ifndef INCLUDED_CUI_SOURCE_INC_HLDOCTP_HXX
20 #define INCLUDED_CUI_SOURCE_INC_HLDOCTP_HXX
21 
22 #include "hltpbase.hxx"
23 
24 /*************************************************************************
25 |*
26 |* Tabpage : Hyperlink - Document
27 |*
28 \************************************************************************/
30 {
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;
37 
38  OUString maStrURL;
39 
41 
42  DECL_LINK (ClickFileopenHdl_Impl, weld::Button&, void );
43  DECL_LINK (ClickTargetHdl_Impl, weld::Button&, void );
44 
45  DECL_LINK (ModifiedPathHdl_Impl, weld::ComboBox&, void );
46  DECL_LINK (ModifiedTargetHdl_Impl, weld::Entry&, void );
47 
48  DECL_LINK( LostFocusPathHdl_Impl, weld::Widget&, void );
49 
50  DECL_LINK( TimeoutHdl_Impl, Timer *, void );
51 
52  enum class EPathType { Invalid, ExistsFile };
53  static EPathType GetPathType ( const OUString& rStrPath );
54 
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;
62 
63 public:
64  SvxHyperlinkDocTp(weld::Container* pParent, SvxHpLinkDlg* pDlg, const SfxItemSet* pItemSet);
65  virtual ~SvxHyperlinkDocTp() override;
66 
67  static std::unique_ptr<IconChoicePage> Create(weld::Container* pWindow, SvxHpLinkDlg* pDlg, const SfxItemSet* pItemSet);
68 
69  virtual void SetMarkStr ( const OUString& aStrMark ) override;
70 
71  virtual void SetInitFocus() override;
72 };
73 
74 #endif // INCLUDED_CUI_SOURCE_INC_HLDOCTP_HXX
75 
76 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual void SetInitFocus() override
Definition: hldoctp.cxx:159
std::unique_ptr< SvxHyperURLBox > m_xCbbPath
Definition: hldoctp.hxx:32
static EPathType GetPathType(const OUString &rStrPath)
Definition: hldoctp.cxx:308
virtual bool ShouldOpenMarkWnd() override
Definition: hldoctp.hxx:59
static std::unique_ptr< IconChoicePage > Create(weld::Container *pWindow, SvxHpLinkDlg *pDlg, const SfxItemSet *pItemSet)
Definition: hldoctp.cxx:149
std::unique_ptr< weld::Label > m_xFtFullURL
Definition: hldoctp.hxx:35
std::unique_ptr< weld::Button > m_xBtBrowse
Definition: hldoctp.hxx:36
SvxHyperlinkDocTp(weld::Container *pParent, SvxHpLinkDlg *pDlg, const SfxItemSet *pItemSet)
Definition: hldoctp.cxx:37
std::unique_ptr< weld::Button > m_xBtFileopen
Definition: hldoctp.hxx:33
virtual ~SvxHyperlinkDocTp() override
Definition: hldoctp.cxx:66
virtual void SetMarkStr(const OUString &aStrMark) override
Definition: hldoctp.cxx:296
OUString maStrURL
Definition: hldoctp.hxx:38
void GetCurentItemData(OUString &rStrURL, OUString &aStrName, OUString &aStrIntName, OUString &aStrFrame, SvxLinkInsertMode &eMode) override
Definition: hldoctp.cxx:131
SvxLinkInsertMode
DECL_LINK(ClickFileopenHdl_Impl, weld::Button &, void)
OUString GetCurrentURL() const
Definition: hldoctp.cxx:95
virtual void SetMarkWndShouldOpen(bool bOpen) override
Definition: hldoctp.hxx:60
void FillDlgFields(const OUString &rStrURL) override
Definition: hldoctp.cxx:75
std::unique_ptr< weld::Entry > m_xEdTarget
Definition: hldoctp.hxx:34
Tabpage : Basisclass.
Definition: hltpbase.hxx:47