fileopendialog.hxx (e4a7f284) | fileopendialog.hxx (880c69c6) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 16 unchanged lines hidden (view full) --- 25#ifndef _FILEOPEN_DIALOG_HXX_ 26#define _FILEOPEN_DIALOG_HXX_ 27 28#include <vector> 29#include <com/sun/star/beans/StringPair.hpp> 30#include <com/sun/star/container/XNameAccess.hpp> 31#include <com/sun/star/ui/dialogs/XFilePicker.hpp> 32#include <com/sun/star/uno/XComponentContext.hpp> | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 16 unchanged lines hidden (view full) --- 25#ifndef _FILEOPEN_DIALOG_HXX_ 26#define _FILEOPEN_DIALOG_HXX_ 27 28#include <vector> 29#include <com/sun/star/beans/StringPair.hpp> 30#include <com/sun/star/container/XNameAccess.hpp> 31#include <com/sun/star/ui/dialogs/XFilePicker.hpp> 32#include <com/sun/star/uno/XComponentContext.hpp> |
33#include <com/sun/star/awt/XWindow.hpp> | |
34 35class FileOpenDialog 36{ 37 // a list of filters that are provided within the SaveDialog 38 struct FilterEntry 39 { 40 rtl::OUString maName; 41 rtl::OUString maType; 42 rtl::OUString maUIName; 43 rtl::OUString maFilter; 44 sal_Int32 maFlags; 45 com::sun::star::uno::Sequence< rtl::OUString > maExtensions; 46 47 FilterEntry() : 48 maFlags( 0 ) {} 49 }; | 33 34class FileOpenDialog 35{ 36 // a list of filters that are provided within the SaveDialog 37 struct FilterEntry 38 { 39 rtl::OUString maName; 40 rtl::OUString maType; 41 rtl::OUString maUIName; 42 rtl::OUString maFilter; 43 sal_Int32 maFlags; 44 com::sun::star::uno::Sequence< rtl::OUString > maExtensions; 45 46 FilterEntry() : 47 maFlags( 0 ) {} 48 }; |
50 com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext > mxContext; | 49 com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext > mxMSF; |
51 com::sun::star::uno::Reference < ::com::sun::star::ui::dialogs::XFilePicker > mxFilePicker; 52 53 std::vector< FilterEntry > aFilterEntryList; 54 55public : | 50 com::sun::star::uno::Reference < ::com::sun::star::ui::dialogs::XFilePicker > mxFilePicker; 51 52 std::vector< FilterEntry > aFilterEntryList; 53 54public : |
56 FileOpenDialog( const com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >& rxContext, 57 const com::sun::star::uno::Reference< com::sun::star::awt::XWindow > &rxParent ); | 55 FileOpenDialog( const com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >& rxMSF ); |
58 ~FileOpenDialog(); 59 60 sal_Int16 execute(); 61 62 void setDefaultName( const rtl::OUString& ); 63// void setDefaultDirectory( const rtl::OUString& ); 64 65 ::rtl::OUString getURL() const; 66 ::rtl::OUString getFilterName() const; 67}; 68 69#endif // _FILEOPEN_DIALOG_HXX_ 70 | 56 ~FileOpenDialog(); 57 58 sal_Int16 execute(); 59 60 void setDefaultName( const rtl::OUString& ); 61// void setDefaultDirectory( const rtl::OUString& ); 62 63 ::rtl::OUString getURL() const; 64 ::rtl::OUString getFilterName() const; 65}; 66 67#endif // _FILEOPEN_DIALOG_HXX_ 68 |