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*************************************************************************/
28namespace sfx2
29{
30class LinkManager;
31class SvBaseLink;
32}
33
34enum class SfxLinkUpdateMode;
35
37{
38 OUString aStrAutolink;
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(ToggleHdl, weld::Toggleable&, void);
62 DECL_LINK(UpdateNowClickHdl, weld::Button&, void);
63 DECL_LINK(ChangeSourceClickHdl, weld::Button&, void);
64 DECL_LINK(BreakLinkClickHdl, weld::Button&, void);
65 DECL_LINK(UpdateWaitingHdl, Timer*, void);
66 DECL_LINK(EndEditHdl, sfx2::SvBaseLink&, void);
67 void LinksSelectHdl(weld::TreeView* pTreeView);
68 sfx2::SvBaseLink* GetSelEntry(int* pPos);
69 OUString ImplGetStateStr(const sfx2::SvBaseLink&);
70 void SetType(sfx2::SvBaseLink& rLink, int nPos, SfxLinkUpdateMode nType);
71 void InsertEntry(const sfx2::SvBaseLink& rLink, int nPos = -1, bool bSelect = false);
72
74
75public:
76 SvBaseLinksDlg(weld::Window* pParent, sfx2::LinkManager*, bool bHtml);
77 virtual ~SvBaseLinksDlg() override;
78 void SetActLink(sfx2::SvBaseLink const* pLink);
79};
80
81/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
DECL_LINK(EndEditHdl, sfx2::SvBaseLink &, void)
OUString aStrManuallink
Definition: linkdlg.hxx:39
OUString aStrCloselinkmsg
Definition: linkdlg.hxx:41
std::unique_ptr< weld::LinkButton > m_xFtFullFileName
Definition: linkdlg.hxx:48
std::unique_ptr< weld::RadioButton > m_xRbManual
Definition: linkdlg.hxx:52
std::unique_ptr< weld::Label > m_xFtFullTypeName
Definition: linkdlg.hxx:50
void SetManager(sfx2::LinkManager *)
Definition: linkdlg.cxx:523
OUString ImplGetStateStr(const sfx2::SvBaseLink &)
Definition: linkdlg.cxx:505
SvBaseLinksDlg(weld::Window *pParent, sfx2::LinkManager *, bool bHtml)
Definition: linkdlg.cxx:78
OUString aStrCloselinkmsgMulti
Definition: linkdlg.hxx:42
OUString aStrAutolink
Definition: linkdlg.hxx:38
DECL_LINK(ChangeSourceClickHdl, weld::Button &, void)
void SetType(sfx2::SvBaseLink &rLink, int nPos, SfxLinkUpdateMode nType)
Definition: linkdlg.cxx:609
std::unique_ptr< weld::TreeView > m_xTbLinks
Definition: linkdlg.hxx:47
void LinksSelectHdl(weld::TreeView *pTreeView)
Definition: linkdlg.cxx:144
void InsertEntry(const sfx2::SvBaseLink &rLink, int nPos=-1, bool bSelect=false)
Definition: linkdlg.cxx:564
std::unique_ptr< weld::RadioButton > m_xRbAutomatic
Definition: linkdlg.hxx:51
std::unique_ptr< weld::Button > m_xPbUpdateNow
Definition: linkdlg.hxx:53
DECL_LINK(ToggleHdl, weld::Toggleable &, void)
DECL_LINK(LinksDoubleClickHdl, weld::TreeView &, bool)
sfx2::LinkManager * pLinkMgr
Definition: linkdlg.hxx:44
void SetActLink(sfx2::SvBaseLink const *pLink)
Definition: linkdlg.cxx:620
virtual ~SvBaseLinksDlg() override
Definition: linkdlg.cxx:132
OUString aStrWaitinglink
Definition: linkdlg.hxx:43
OUString aStrBrokenlink
Definition: linkdlg.hxx:40
DECL_LINK(BreakLinkClickHdl, weld::Button &, void)
DECL_LINK(UpdateNowClickHdl, weld::Button &, void)
ScopedVclPtr< VirtualDevice > m_xVirDev
Definition: linkdlg.hxx:57
Idle aUpdateIdle
Definition: linkdlg.hxx:45
DECL_LINK(UpdateWaitingHdl, Timer *, void)
std::unique_ptr< weld::Button > m_xPbChangeSource
Definition: linkdlg.hxx:54
sfx2::SvBaseLink * GetSelEntry(int *pPos)
Definition: linkdlg.cxx:597
std::unique_ptr< weld::Button > m_xPbBreakLink
Definition: linkdlg.hxx:55
std::unique_ptr< weld::Label > m_xFtFullSourceName
Definition: linkdlg.hxx:49
DECL_LINK(LinksSelectHdl, weld::TreeView &, void)
SfxLinkUpdateMode