LibreOffice Module filter (master) 1
xmlfiltercommon.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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 *
9 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19#pragma once
20
21#include <com/sun/star/io/XInputStream.hpp>
22#include <com/sun/star/io/XOutputStream.hpp>
23
24#include <string_view>
25#include <vector>
26
27
28extern OUString string_encode( const OUString & rText );
29extern OUString string_decode( const OUString & rText );
30
31bool copyStreams( const css::uno::Reference< css::io::XInputStream >& xIS, const css::uno::Reference< css::io::XOutputStream >& xOS );
32bool createDirectory( std::u16string_view rURL );
33
34
36{
37public:
38 OUString maFilterName;
39 OUString maType;
42 OUString maComment;
43 OUString maExtension;
44 OUString maExportXSLT;
45 OUString maImportXSLT;
47 OUString maDocType;
50
51 sal_Int32 maFlags;
54
56
58
60 bool operator==( const filter_info_impl& ) const;
61
62 css::uno::Sequence< OUString > getFilterUserData() const;
63};
64
65
67{
70 OUString maXMLImporter;
71 OUString maXMLExporter;
72
73 application_info_impl(const char * pDocumentService, const OUString& rUINameRes, const char * mpXMLImporter, const char * mpXMLExporter);
74};
75
76
77extern std::vector< application_info_impl > const & getApplicationInfos();
78extern OUString getApplicationUIName( std::u16string_view rServiceName );
79extern const application_info_impl* getApplicationInfo( std::u16string_view rServiceName );
80
81/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
OUString maDocumentService
sal_Int32 maFileFormatVersion
sal_Int32 mnDocumentIconID
bool operator==(const filter_info_impl &) const
css::uno::Sequence< OUString > getFilterUserData() const
application_info_impl(const char *pDocumentService, const OUString &rUINameRes, const char *mpXMLImporter, const char *mpXMLExporter)
OUString string_encode(const OUString &rText)
std::vector< application_info_impl > const & getApplicationInfos()
const application_info_impl * getApplicationInfo(std::u16string_view rServiceName)
bool createDirectory(std::u16string_view rURL)
OUString getApplicationUIName(std::u16string_view rServiceName)
bool copyStreams(const css::uno::Reference< css::io::XInputStream > &xIS, const css::uno::Reference< css::io::XOutputStream > &xOS)
OUString string_decode(const OUString &rText)