summaryrefslogtreecommitdiff
path: root/include/svtools
diff options
context:
space:
mode:
authorSzymon Kłos <eszkadev@gmail.com>2015-07-13 14:29:09 +0200
committerSzymon Kłos <eszkadev@gmail.com>2015-07-16 09:53:52 +0200
commit2239b486bffaeffafc24ed1b135aa70f3cdd8b1a (patch)
tree916b021e45487e9f55e2051b3f5a4d23ef76b60c /include/svtools
parent1abade4f92a6d1c70ab3e333770e1cb242f29063 (diff)
RemoteFilesDialog moved to fpicker
Change-Id: I8e978d40ee022d15f482aec4567c3171b75b9720
Diffstat (limited to 'include/svtools')
-rw-r--r--include/svtools/RemoteFilesDialog.hxx167
1 files changed, 0 insertions, 167 deletions
diff --git a/include/svtools/RemoteFilesDialog.hxx b/include/svtools/RemoteFilesDialog.hxx
deleted file mode 100644
index db61e1759290..000000000000
--- a/include/svtools/RemoteFilesDialog.hxx
+++ /dev/null
@@ -1,167 +0,0 @@
-/* -*- 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_REMOTEFILESDIALOG_HXX
-#define INCLUDED_SVTOOLS_REMOTEFILESDIALOG_HXX
-
-#include <svtools/foldertree.hxx>
-#include <svtools/svtdllapi.h>
-#include <svtools/place.hxx>
-#include <svtools/PlaceEditDialog.hxx>
-#include <svtools/breadcrumb.hxx>
-#include <svtools/fileview.hxx>
-
-#include <vcl/button.hxx>
-#include <vcl/menubtn.hxx>
-#include <vcl/dialog.hxx>
-#include <vcl/vclptr.hxx>
-#include <vcl/split.hxx>
-#include <vcl/svapp.hxx>
-
-#include <officecfg/Office/Common.hxx>
-#include <com/sun/star/beans/StringPair.hpp>
-#include <com/sun/star/uno/Sequence.hxx>
-
-#include <vector>
-
-#include "../../../fpicker/source/office/fpdialogbase.hxx"
-
-using namespace ::com::sun::star::beans;
-using namespace ::com::sun::star::uno;
-using namespace ::com::sun::star::ui::dialogs;
-
-enum SvtRemoteDlgMode
-{
- REMOTEDLG_MODE_OPEN = 0,
- REMOTEDLG_MODE_SAVE = 1
-};
-
-enum SvtRemoteDlgType
-{
- REMOTEDLG_TYPE_FILEDLG = 0,
- REMOTEDLG_TYPE_PATHDLG = 1
-};
-
-typedef std::shared_ptr< Place > ServicePtr;
-typedef ::com::sun::star::uno::Sequence< OUString > OUStringList;
-
-class FileViewContainer;
-
-class SVT_DLLPUBLIC RemoteFilesDialog : public SvtFileDialog_Base
-{
-public:
- RemoteFilesDialog( vcl::Window* pParent, WinBits nBits );
- virtual ~RemoteFilesDialog();
-
- virtual void dispose() SAL_OVERRIDE;
- virtual void Resize() SAL_OVERRIDE;
-
- OUString GetPath() const;
-
- // SvtFileDialog_Base
-
- virtual SvtFileView* GetView();
-
- virtual void SetHasFilename( bool );
- virtual void SetBlackList( const ::com::sun::star::uno::Sequence< OUString >& rBlackList );
- virtual const ::com::sun::star::uno::Sequence< OUString >& GetBlackList() const;
- virtual void SetStandardDir( const OUString& rStdDir );
- virtual const OUString& GetStandardDir() const;
- virtual void SetPath( const OUString& rNewURL );
- virtual const OUString& GetPath();
- virtual std::vector<OUString> GetPathList() const;
- virtual bool ContentIsFolder( const OUString& rURL );
-
- virtual void AddFilter( const OUString& rFilter, const OUString& rType );
- virtual void AddFilterGroup( const OUString& _rFilter,
- const com::sun::star::uno::Sequence< com::sun::star::beans::StringPair >& rFilters );
- virtual OUString GetCurFilter() const;
- virtual void SetCurFilter( const OUString& rFilter );
-
- virtual void SetFileCallback( ::svt::IFilePickerListener *pNotifier );
-
- virtual void EnableAutocompletion( bool );
-
- virtual sal_Int32 getTargetColorDepth();
- virtual sal_Int32 getAvailableWidth();
- virtual sal_Int32 getAvailableHeight();
-
- virtual void setImage( sal_Int16 aImageFormat, const ::com::sun::star::uno::Any& rImage );
-
- virtual bool getShowState();
-
- virtual Control* getControl( sal_Int16 nControlId, bool bLabelControl = false ) const SAL_OVERRIDE;
- virtual void enableControl( sal_Int16 nControlId, bool bEnable );
- virtual OUString getCurFilter( ) const;
-
-private:
- ::com::sun::star::uno::Reference < com::sun::star::uno::XComponentContext > m_context;
-
- SvtRemoteDlgMode m_eMode;
- SvtRemoteDlgType m_eType;
- bool m_bMultiselection;
- bool m_bIsUpdated;
- bool m_bIsConnected;
-
- OUString m_sPath;
- OUString m_sStdDir;
- unsigned int m_nCurrentFilter;
-
- ::com::sun::star::uno::Sequence< OUString > m_aBlackList;
- ::svt::IFilePickerListener* m_pFileNotifier;
-
- VclPtr< PushButton > m_pOk_btn;
- VclPtr< CancelButton > m_pCancel_btn;
- VclPtr< MenuButton > m_pAddService_btn;
- VclPtr< ListBox > m_pServices_lb;
- VclPtr< Breadcrumb > m_pPath;
- VclPtr< Splitter > m_pSplitter;
- VclPtr< FolderTree > m_pTreeView;
- VclPtr< SvtFileView > m_pFileView;
- VclPtr< FileViewContainer > m_pContainer;
- VclPtr< ListBox > m_pFilter_lb;
- VclPtr< Edit > m_pName_ed;
-
- std::vector< ServicePtr > m_aServices;
- std::vector< std::pair< OUString, OUString > > m_aFilters;
-
- void FillServicesListbox();
-
- /* If failure returns < 0 */
- int GetSelectedServicePos();
-
- FileViewResult OpenURL( OUString sURL );
-
- void AddFileExtension();
-
- void EnableControls();
-
- DECL_LINK ( AddServiceHdl, void * );
- DECL_LINK ( SelectServiceHdl, void * );
- DECL_LINK_TYPED ( EditServiceMenuHdl, MenuButton *, void );
-
- DECL_LINK( DoubleClickHdl, void * );
- DECL_LINK( SelectHdl, void * );
-
- DECL_LINK( FileNameGetFocusHdl, void * );
- DECL_LINK( FileNameModifyHdl, void * );
-
- DECL_LINK( SplitHdl, void * );
-
- DECL_LINK( SelectFilterHdl, void * );
-
- DECL_LINK( TreeSelectHdl, FolderTree * );
-
- DECL_LINK( SelectBreadcrumbHdl, Breadcrumb * );
-
- DECL_LINK( OkHdl, void * );
-};
-
-#endif // INCLUDED_SVTOOLS_REMOTEFILESDIALOG_HXX
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */