LibreOffice Module cui (master) 1
multipat.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 <vcl/weld.hxx>
22
24{
25private:
26 std::unique_ptr<weld::TreeView> m_xRadioLB;
27 std::unique_ptr<weld::Button> m_xAddBtn;
28 std::unique_ptr<weld::Button> m_xDelBtn;
29
30 void AppendEntry(const OUString& rText, const OUString& rId);
31 void HandleEntryChecked(int nRow);
32
33 DECL_LINK(AddHdl_Impl, weld::Button&, void);
34 DECL_LINK(DelHdl_Impl, weld::Button&, void);
35 DECL_LINK(SelectHdl_Impl, weld::TreeView&, void);
36 DECL_LINK(CheckHdl_Impl, const weld::TreeView::iter_col&, void);
37
38public:
40 virtual ~SvxMultiPathDialog() override;
41
42 OUString GetPath() const;
43 void SetPath(std::u16string_view rPath);
44 void SetTitle(const OUString& rTitle) { m_xDialog->set_title(rTitle); }
45};
46
48{
49private:
50 std::unique_ptr<weld::TreeView> m_xPathLB;
51 std::unique_ptr<weld::Button> m_xAddBtn;
52 std::unique_ptr<weld::Button> m_xDelBtn;
53
54 DECL_LINK(AddHdl_Impl, weld::Button&, void);
55 DECL_LINK(DelHdl_Impl, weld::Button&, void);
56 DECL_LINK(SelectHdl_Impl, weld::TreeView&, void);
57
58public:
60
61 OUString GetPath() const;
62 void SetPath( std::u16string_view rPath );
63 void SetTitle(const OUString& rTitle) { m_xDialog->set_title(rTitle); }
64};
65
66/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
DECL_LINK(CheckHdl_Impl, const weld::TreeView::iter_col &, void)
DECL_LINK(AddHdl_Impl, weld::Button &, void)
std::unique_ptr< weld::TreeView > m_xRadioLB
Definition: multipat.hxx:26
std::unique_ptr< weld::Button > m_xDelBtn
Definition: multipat.hxx:28
void HandleEntryChecked(int nRow)
Definition: multipat.cxx:59
void SetPath(std::u16string_view rPath)
Definition: multipat.cxx:266
DECL_LINK(SelectHdl_Impl, weld::TreeView &, void)
void SetTitle(const OUString &rTitle)
Definition: multipat.hxx:44
void AppendEntry(const OUString &rText, const OUString &rId)
Definition: multipat.cxx:80
DECL_LINK(DelHdl_Impl, weld::Button &, void)
OUString GetPath() const
Definition: multipat.cxx:228
SvxMultiPathDialog(weld::Window *pParent)
Definition: multipat.cxx:190
virtual ~SvxMultiPathDialog() override
Definition: multipat.cxx:224
std::unique_ptr< weld::Button > m_xAddBtn
Definition: multipat.hxx:27
std::unique_ptr< weld::Button > m_xAddBtn
Definition: multipat.hxx:51
OUString GetPath() const
Definition: multipat.cxx:252
std::unique_ptr< weld::TreeView > m_xPathLB
Definition: multipat.hxx:50
void SetPath(std::u16string_view rPath)
Definition: multipat.cxx:296
void SetTitle(const OUString &rTitle)
Definition: multipat.hxx:63
DECL_LINK(SelectHdl_Impl, weld::TreeView &, void)
DECL_LINK(AddHdl_Impl, weld::Button &, void)
DECL_LINK(DelHdl_Impl, weld::Button &, void)
std::unique_ptr< weld::Button > m_xDelBtn
Definition: multipat.hxx:52
SvxPathSelectDialog(weld::Window *pParent)
Definition: multipat.cxx:208
std::shared_ptr< weld::Dialog > m_xDialog
std::pair< const TreeIter &, int > iter_col