LibreOffice Module cui (master)  1
linkdlg.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 
20 #pragma once
21 
22 #include <vcl/idle.hxx>
23 #include <vcl/virdev.hxx>
24 #include <vcl/weld.hxx>
25 
26 /********************** SvUpdateLinksDialog ******************************
27 *************************************************************************/
28 namespace sfx2
29 {
30 class LinkManager;
31 class SvBaseLink;
32 }
33 
34 enum class SfxLinkUpdateMode;
35 
37 {
38  OUString aStrAutolink;
39  OUString aStrManuallink;
40  OUString aStrBrokenlink;
41  OUString aStrCloselinkmsg;
43  OUString aStrWaitinglink;
46 
47  std::unique_ptr<weld::TreeView> m_xTbLinks;
48  std::unique_ptr<weld::LinkButton> m_xFtFullFileName;
49  std::unique_ptr<weld::Label> m_xFtFullSourceName;
50  std::unique_ptr<weld::Label> m_xFtFullTypeName;
51  std::unique_ptr<weld::RadioButton> m_xRbAutomatic;
52  std::unique_ptr<weld::RadioButton> m_xRbManual;
53  std::unique_ptr<weld::Button> m_xPbUpdateNow;
54  std::unique_ptr<weld::Button> m_xPbChangeSource;
55  std::unique_ptr<weld::Button> m_xPbBreakLink;
56 
58 
60  DECL_LINK(LinksDoubleClickHdl, weld::TreeView&, bool);
61  DECL_LINK(AutomaticClickHdl, weld::Button&, void);
62  DECL_LINK(ManualClickHdl, weld::Button&, void);
63  DECL_LINK(UpdateNowClickHdl, weld::Button&, void);
64  DECL_LINK(ChangeSourceClickHdl, weld::Button&, void);
65  DECL_LINK(BreakLinkClickHdl, weld::Button&, void);
66  DECL_LINK(UpdateWaitingHdl, Timer*, void);
67  DECL_LINK(EndEditHdl, sfx2::SvBaseLink&, void);
68  void LinksSelectHdl(weld::TreeView* pTreeView);
69  sfx2::SvBaseLink* GetSelEntry(int* pPos);
70  OUString ImplGetStateStr(const sfx2::SvBaseLink&);
71  void SetType(sfx2::SvBaseLink& rLink, int nPos, SfxLinkUpdateMode nType);
72  void InsertEntry(const sfx2::SvBaseLink& rLink, int nPos = -1, bool bSelect = false);
73 
75 
76 public:
77  SvBaseLinksDlg(weld::Window* pParent, sfx2::LinkManager*, bool bHtml);
78  virtual ~SvBaseLinksDlg() override;
79  void SetActLink(sfx2::SvBaseLink const* pLink);
80 };
81 
82 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
void SetType(sfx2::SvBaseLink &rLink, int nPos, SfxLinkUpdateMode nType)
Definition: linkdlg.cxx:601
OUString aStrWaitinglink
Definition: linkdlg.hxx:43
std::unique_ptr< weld::Button > m_xPbUpdateNow
Definition: linkdlg.hxx:53
OUString aStrCloselinkmsg
Definition: linkdlg.hxx:41
void SetActLink(sfx2::SvBaseLink const *pLink)
Definition: linkdlg.cxx:612
std::unique_ptr< weld::RadioButton > m_xRbManual
Definition: linkdlg.hxx:52
sfx2::SvBaseLink * GetSelEntry(int *pPos)
Definition: linkdlg.cxx:589
virtual ~SvBaseLinksDlg() override
Definition: linkdlg.cxx:129
std::unique_ptr< weld::Label > m_xFtFullSourceName
Definition: linkdlg.hxx:49
std::unique_ptr< weld::Label > m_xFtFullTypeName
Definition: linkdlg.hxx:50
std::unique_ptr< weld::Button > m_xPbBreakLink
Definition: linkdlg.hxx:55
std::unique_ptr< weld::Button > m_xPbChangeSource
Definition: linkdlg.hxx:54
void SetManager(sfx2::LinkManager *)
Definition: linkdlg.cxx:515
SvBaseLinksDlg(weld::Window *pParent, sfx2::LinkManager *, bool bHtml)
Definition: linkdlg.cxx:76
std::unique_ptr< weld::TreeView > m_xTbLinks
Definition: linkdlg.hxx:47
void InsertEntry(const sfx2::SvBaseLink &rLink, int nPos=-1, bool bSelect=false)
Definition: linkdlg.cxx:556
OUString aStrAutolink
Definition: linkdlg.hxx:38
OUString aStrBrokenlink
Definition: linkdlg.hxx:40
sfx2::LinkManager * pLinkMgr
Definition: linkdlg.hxx:44
void LinksSelectHdl(weld::TreeView *pTreeView)
Definition: linkdlg.cxx:141
std::unique_ptr< weld::LinkButton > m_xFtFullFileName
Definition: linkdlg.hxx:48
OUString aStrCloselinkmsgMulti
Definition: linkdlg.hxx:42
ScopedVclPtr< VirtualDevice > m_xVirDev
Definition: linkdlg.hxx:57
DECL_LINK(LinksSelectHdl, weld::TreeView &, void)
Idle aUpdateIdle
Definition: linkdlg.hxx:45
OUString ImplGetStateStr(const sfx2::SvBaseLink &)
Definition: linkdlg.cxx:497
std::unique_ptr< weld::RadioButton > m_xRbAutomatic
Definition: linkdlg.hxx:51
SfxLinkUpdateMode
OUString aStrManuallink
Definition: linkdlg.hxx:39