Bump version to 24.04.3.4
[LibreOffice.git] / fpicker / source / office / foldertree.hxx
blobe1ba25699c3b72a814fc9b32875e12273fab1def
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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 */
10 #pragma once
12 #include <com/sun/star/uno/Sequence.hxx>
13 #include <vcl/weld.hxx>
15 namespace com :: sun :: star :: ucb { class XCommandEnvironment; }
17 using namespace ::com::sun::star::ucb;
18 using namespace ::com::sun::star::uno;
20 class FolderTree
22 private:
23 std::unique_ptr<weld::TreeView> m_xTreeView;
24 std::unique_ptr<weld::TreeIter> m_xScratchIter;
25 weld::Window* m_pTopLevel;
26 Reference< XCommandEnvironment > m_xEnv;
27 ::osl::Mutex m_aMutex;
28 Sequence< OUString > m_aDenyList;
30 OUString m_sLastUpdatedDir;
32 DECL_LINK(RequestingChildrenHdl, const weld::TreeIter&, bool);
34 public:
35 FolderTree(std::unique_ptr<weld::TreeView> xTreeView, weld::Window* pTopLevel);
37 void clear() { m_xTreeView->clear(); }
39 void connect_changed(const Link<weld::TreeView&, void>& rLink) { m_xTreeView->connect_changed(rLink); }
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);
48 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */