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 #pragma once
20 
21 #include "hltpbase.hxx"
22 
23 /*************************************************************************
24 |*
25 |* Tabpage : Hyperlink - Document
26 |*
27 \************************************************************************/
29 {
30 private:
31  std::unique_ptr<SvxHyperURLBox> m_xCbbPath;
32  std::unique_ptr<weld::Button> m_xBtFileopen;
33  std::unique_ptr<weld::Entry> m_xEdTarget;
34  std::unique_ptr<weld::Label> m_xFtFullURL;
35  std::unique_ptr<weld::Button> m_xBtBrowse;
36 
37  OUString maStrURL;
38 
40 
41  DECL_LINK (ClickFileopenHdl_Impl, weld::Button&, void );
42  DECL_LINK (ClickTargetHdl_Impl, weld::Button&, void );
43 
44  DECL_LINK (ModifiedPathHdl_Impl, weld::ComboBox&, void );
45  DECL_LINK (ModifiedTargetHdl_Impl, weld::Entry&, void );
46 
47  DECL_LINK( LostFocusPathHdl_Impl, weld::Widget&, void );
48 
49  DECL_LINK( TimeoutHdl_Impl, Timer *, void );
50 
51  enum class EPathType { Invalid, ExistsFile };
52  static EPathType GetPathType ( const OUString& rStrPath );
53 
54  void FillDlgFields(const OUString& rStrURL) override;
55  void GetCurentItemData ( OUString& rStrURL, OUString& aStrName,
56  OUString& aStrIntName, OUString& aStrFrame,
57  SvxLinkInsertMode& eMode ) override;
58  virtual bool ShouldOpenMarkWnd () override {return m_bMarkWndOpen;}
59  virtual void SetMarkWndShouldOpen (bool bOpen) override {m_bMarkWndOpen=bOpen;}
60  OUString GetCurrentURL() const;
61 
62 public:
63  SvxHyperlinkDocTp(weld::Container* pParent, SvxHpLinkDlg* pDlg, const SfxItemSet* pItemSet);
64  virtual ~SvxHyperlinkDocTp() override;
65 
66  static std::unique_ptr<IconChoicePage> Create(weld::Container* pWindow, SvxHpLinkDlg* pDlg, const SfxItemSet* pItemSet);
67 
68  virtual void SetMarkStr ( const OUString& aStrMark ) override;
69 
70  virtual void SetInitFocus() override;
71 };
72 
73 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual void SetInitFocus() override
Definition: hldoctp.cxx:159
std::unique_ptr< SvxHyperURLBox > m_xCbbPath
Definition: hldoctp.hxx:31
static EPathType GetPathType(const OUString &rStrPath)
Definition: hldoctp.cxx:308
virtual bool ShouldOpenMarkWnd() override
Definition: hldoctp.hxx:58
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:34
std::unique_ptr< weld::Button > m_xBtBrowse
Definition: hldoctp.hxx:35
SvxHyperlinkDocTp(weld::Container *pParent, SvxHpLinkDlg *pDlg, const SfxItemSet *pItemSet)
Definition: hldoctp.cxx:37
std::unique_ptr< weld::Button > m_xBtFileopen
Definition: hldoctp.hxx:32
virtual ~SvxHyperlinkDocTp() override
Definition: hldoctp.cxx:66
virtual void SetMarkStr(const OUString &aStrMark) override
Definition: hldoctp.cxx:296
OUString maStrURL
Definition: hldoctp.hxx:37
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:59
void FillDlgFields(const OUString &rStrURL) override
Definition: hldoctp.cxx:75
std::unique_ptr< weld::Entry > m_xEdTarget
Definition: hldoctp.hxx:33
Tabpage : Basisclass.
Definition: hltpbase.hxx:46