LibreOffice Module fpicker (master) 1
foldertree.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
10#pragma once
11
12#include <com/sun/star/uno/Sequence.hxx>
13#include <vcl/weld.hxx>
14
15namespace com :: sun :: star :: ucb { class XCommandEnvironment; }
16
17using namespace ::com::sun::star::ucb;
18using namespace ::com::sun::star::uno;
19
21{
22private:
23 std::unique_ptr<weld::TreeView> m_xTreeView;
24 std::unique_ptr<weld::TreeIter> m_xScratchIter;
26 Reference< XCommandEnvironment > m_xEnv;
27 ::osl::Mutex m_aMutex;
28 Sequence< OUString > m_aDenyList;
29
31
32 DECL_LINK(RequestingChildrenHdl, const weld::TreeIter&, bool);
33
34public:
35 FolderTree(std::unique_ptr<weld::TreeView> xTreeView, weld::Window* pTopLevel);
36
37 void clear() { m_xTreeView->clear(); }
38
39 void connect_changed(const Link<weld::TreeView&, void>& rLink) { m_xTreeView->connect_changed(rLink); }
40
41 void InsertRootEntry(const OUString& rId, const OUString& rRootLabel);
42 void FillTreeEntry(const weld::TreeIter& rEntry);
43 void FillTreeEntry(const OUString & rUrl, const ::std::vector< std::pair< OUString, OUString > >& rFolders);
44 void SetTreePath(std::u16string_view sUrl);
45 void SetDenyList(const css::uno::Sequence< OUString >& rDenyList);
46};
47
48/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
OUString m_sLastUpdatedDir
Definition: foldertree.hxx:30
Reference< XCommandEnvironment > m_xEnv
Definition: foldertree.hxx:26
void InsertRootEntry(const OUString &rId, const OUString &rRootLabel)
Definition: foldertree.cxx:47
FolderTree(std::unique_ptr< weld::TreeView > xTreeView, weld::Window *pTopLevel)
Definition: foldertree.cxx:22
void SetTreePath(std::u16string_view sUrl)
Definition: foldertree.cxx:129
weld::Window * m_pTopLevel
Definition: foldertree.hxx:25
void FillTreeEntry(const weld::TreeIter &rEntry)
Definition: foldertree.cxx:55
DECL_LINK(RequestingChildrenHdl, const weld::TreeIter &, bool)
std::unique_ptr< weld::TreeIter > m_xScratchIter
Definition: foldertree.hxx:24
void SetDenyList(const css::uno::Sequence< OUString > &rDenyList)
Definition: foldertree.cxx:173
::osl::Mutex m_aMutex
Definition: foldertree.hxx:27
void clear()
Definition: foldertree.hxx:37
void connect_changed(const Link< weld::TreeView &, void > &rLink)
Definition: foldertree.hxx:39
std::unique_ptr< weld::TreeView > m_xTreeView
Definition: foldertree.hxx:23
Sequence< OUString > m_aDenyList
Definition: foldertree.hxx:28