2015-07-13 12:01:12 +02:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
|
|
|
/*
|
|
|
|
* This file is part of the LibreOffice project.
|
|
|
|
*
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef INCLUDED_SVTOOLS_FOLDERTREE_HXX
|
|
|
|
#define INCLUDED_SVTOOLS_FOLDERTREE_HXX
|
|
|
|
|
|
|
|
#include <com/sun/star/uno/Sequence.hxx>
|
|
|
|
#include <com/sun/star/ucb/XCommandEnvironment.hpp>
|
|
|
|
#include <com/sun/star/task/InteractionHandler.hpp>
|
|
|
|
|
|
|
|
#include <officecfg/Office/Common.hxx>
|
|
|
|
|
|
|
|
#include <svtools/svtdllapi.h>
|
2017-06-11 20:56:30 +01:00
|
|
|
#include <svtools/strings.hrc>
|
2015-07-13 12:01:12 +02:00
|
|
|
#include <svtools/svtresid.hxx>
|
|
|
|
#include <svtools/treelistentry.hxx>
|
|
|
|
|
|
|
|
#include <tools/urlobj.hxx>
|
|
|
|
|
|
|
|
#include <ucbhelper/commandenvironment.hxx>
|
|
|
|
|
|
|
|
#include <vcl/image.hxx>
|
|
|
|
#include <vcl/lstbox.hxx>
|
|
|
|
|
|
|
|
using namespace ::com::sun::star::ucb;
|
|
|
|
using namespace ::com::sun::star::uno;
|
|
|
|
using namespace ::com::sun::star::task;
|
|
|
|
using namespace ::svt;
|
|
|
|
|
|
|
|
class SVT_DLLPUBLIC FolderTree : public SvTreeListBox
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
Reference< XCommandEnvironment > m_xEnv;
|
|
|
|
::osl::Mutex m_aMutex;
|
|
|
|
Sequence< OUString > m_aBlackList;
|
|
|
|
Image m_aFolderImage;
|
2015-07-21 11:59:45 +02:00
|
|
|
Image m_aFolderExpandedImage;
|
2015-07-13 12:01:12 +02:00
|
|
|
|
2015-07-28 10:30:58 +02:00
|
|
|
OUString m_sLastUpdatedDir;
|
|
|
|
|
2015-07-13 12:01:12 +02:00
|
|
|
public:
|
|
|
|
FolderTree( vcl::Window* pParent, WinBits nBits );
|
|
|
|
|
2015-10-12 16:04:04 +02:00
|
|
|
virtual void RequestingChildren( SvTreeListEntry* pEntry ) override;
|
2015-07-13 12:01:12 +02:00
|
|
|
|
|
|
|
void FillTreeEntry( SvTreeListEntry* pEntry );
|
2015-07-28 10:30:58 +02:00
|
|
|
void FillTreeEntry( const OUString & rUrl, const ::std::vector< std::pair< OUString, OUString > >& rFolders );
|
2015-07-16 10:09:57 +02:00
|
|
|
void SetTreePath( OUString const & sUrl );
|
2015-10-23 09:07:12 +02:00
|
|
|
void SetBlackList( const css::uno::Sequence< OUString >& rBlackList );
|
2015-07-13 12:01:12 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|