calc: on editing invalidation of view with different zoom is wrong
[LibreOffice.git] / dbaccess / source / core / recovery / storagexmlstream.hxx
blobfd762ae05dc8b510f861faf41f2810e7037f11eb
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 #pragma once
22 #include "storagestream.hxx"
24 #include <com/sun/star/xml/sax/XParser.hpp>
25 #include <com/sun/star/embed/XStorage.hpp>
26 #include <com/sun/star/uno/XComponentContext.hpp>
27 #include <com/sun/star/xml/sax/XDocumentHandler.hpp>
29 #include <memory>
31 namespace dbaccess
34 // StorageXMLOutputStream
35 struct StorageXMLOutputStream_Data;
36 class StorageXMLOutputStream : public StorageOutputStream
38 public:
39 StorageXMLOutputStream(
40 const css::uno::Reference< css::uno::XComponentContext >& i_rContext,
41 const css::uno::Reference< css::embed::XStorage >& i_rParentStorage,
42 const OUString& i_rStreamName
44 virtual ~StorageXMLOutputStream() override;
46 void close();
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& ) = delete;
58 StorageXMLOutputStream& operator=( const StorageXMLOutputStream& ) = delete;
60 private:
61 std::unique_ptr< StorageXMLOutputStream_Data > m_pData;
64 class StorageXMLInputStream
66 public:
67 StorageXMLInputStream(
68 const css::uno::Reference< css::uno::XComponentContext >& i_rContext,
69 const css::uno::Reference< css::embed::XStorage >& i_rParentStorage,
70 const OUString& i_rStreamName
72 ~StorageXMLInputStream();
74 void import(
75 const css::uno::Reference< css::xml::sax::XDocumentHandler >& i_rHandler
78 StorageXMLInputStream( const StorageXMLInputStream& ) = delete;
79 StorageXMLInputStream& operator=( const StorageXMLInputStream& ) = delete;
81 private:
82 css::uno::Reference< css::xml::sax::XParser > m_xParser;
83 css::uno::Reference< css::io::XInputStream > m_xInputStream;
86 } // namespace dbaccess
88 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */