fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / dbaccess / source / core / recovery / storagexmlstream.hxx
blobdae294c5df4a3ab8d8a3031582127d9f48b3ec71
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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 .
20 #ifndef INCLUDED_DBACCESS_SOURCE_CORE_RECOVERY_STORAGEXMLSTREAM_HXX
21 #define INCLUDED_DBACCESS_SOURCE_CORE_RECOVERY_STORAGEXMLSTREAM_HXX
23 #include "storagestream.hxx"
25 #include <com/sun/star/embed/XStorage.hpp>
26 #include <com/sun/star/xml/sax/XDocumentHandler.hpp>
28 #include <memory>
30 namespace dbaccess
33 // StorageXMLOutputStream
34 struct StorageXMLOutputStream_Data;
35 class DBACCESS_DLLPRIVATE StorageXMLOutputStream : public StorageOutputStream
37 public:
38 StorageXMLOutputStream(
39 const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& i_rContext,
40 const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& i_rParentStorage,
41 const OUString& i_rStreamName
43 virtual ~StorageXMLOutputStream();
45 // StorageOutputStream overridables
46 virtual void close() SAL_OVERRIDE;
48 void addAttribute( const OUString& i_rName, const OUString& i_rValue ) const;
50 void startElement( const OUString& i_rElementName ) const;
51 void endElement() const;
53 void ignorableWhitespace( const OUString& i_rWhitespace ) const;
54 void characters( const OUString& i_rCharacters ) const;
56 private:
57 StorageXMLOutputStream( const StorageXMLOutputStream& ) SAL_DELETED_FUNCTION;
58 StorageXMLOutputStream& operator=( const StorageXMLOutputStream& ) SAL_DELETED_FUNCTION;
60 private:
61 ::std::unique_ptr< StorageXMLOutputStream_Data > m_pData;
64 // StorageXMLInputStream
65 struct StorageXMLInputStream_Data;
66 class DBACCESS_DLLPRIVATE StorageXMLInputStream : public StorageInputStream
68 public:
69 StorageXMLInputStream(
70 const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& i_rContext,
71 const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& i_rParentStorage,
72 const OUString& i_rStreamName
74 virtual ~StorageXMLInputStream();
76 void import(
77 const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XDocumentHandler >& i_rHandler
80 private:
81 StorageXMLInputStream( const StorageXMLInputStream& ) SAL_DELETED_FUNCTION;
82 StorageXMLInputStream& operator=( const StorageXMLInputStream& ) SAL_DELETED_FUNCTION;
84 private:
85 ::std::unique_ptr< StorageXMLInputStream_Data > m_pData;
88 } // namespace dbaccess
90 #endif // INCLUDED_DBACCESS_SOURCE_CORE_RECOVERY_STORAGEXMLSTREAM_HXX
92 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */