1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
21 #include <com/sun/star/io/XInputStream.hpp>
22 #include <com/sun/star/io/XOutputStream.hpp>
24 #include <string_view>
28 extern OUString
string_encode( const OUString
& rText
);
29 extern OUString
string_decode( const OUString
& rText
);
31 bool copyStreams( const css::uno::Reference
< css::io::XInputStream
>& xIS
, const css::uno::Reference
< css::io::XOutputStream
>& xOS
);
32 bool createDirectory( std::u16string_view rURL
);
35 class filter_info_impl
38 OUString maFilterName
;
40 OUString maDocumentService
;
41 OUString maInterfaceName
;
44 OUString maExportXSLT
;
45 OUString maImportXSLT
;
46 OUString maImportTemplate
;
48 OUString maImportService
;
49 OUString maExportService
;
52 sal_Int32 maFileFormatVersion
;
53 sal_Int32 mnDocumentIconID
;
60 bool operator==( const filter_info_impl
& ) const;
62 css::uno::Sequence
< OUString
> getFilterUserData() const;
66 struct application_info_impl
68 OUString maDocumentService
;
69 OUString maDocumentUIName
;
70 OUString maXMLImporter
;
71 OUString maXMLExporter
;
73 application_info_impl(const OUString
& rDocumentService
, const OUString
& rUINameRes
, const OUString
& rXMLImporter
, const OUString
& rXMLExporter
);
77 extern std::vector
< application_info_impl
> const & getApplicationInfos();
78 extern OUString
getApplicationUIName( std::u16string_view rServiceName
);
79 extern const application_info_impl
* getApplicationInfo( std::u16string_view rServiceName
);
81 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */