Line data Source code
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 :
20 : #ifndef SC_EXP_OP_HXX
21 : #define SC_EXP_OP_HXX
22 :
23 : #include "filter.hxx"
24 : #include "root.hxx"
25 : #include "xeroot.hxx"
26 :
27 :
28 : class ScDocument;
29 : class ScPatternAttr;
30 : class ScFormulaCell;
31 : class ExcDocument;
32 :
33 :
34 : class ExportTyp
35 : {
36 : protected:
37 0 : ~ExportTyp() {}
38 :
39 : SvStream& aOut; // Ausgabe-Stream
40 : ScDocument* pD; // Dokument
41 : rtl_TextEncoding eZielChar; // Ziel-Zeichensatz
42 : public:
43 0 : ExportTyp( SvStream& aStream, ScDocument* pDoc, rtl_TextEncoding eDest ):
44 0 : aOut( aStream )
45 : {
46 0 : eZielChar = eDest;
47 0 : pD = pDoc;
48 0 : }
49 :
50 : virtual FltError Write() = 0;
51 : };
52 :
53 : class ExportBiff5 : public ExportTyp, protected XclExpRoot
54 : {
55 : private:
56 : ExcDocument* pExcDoc;
57 :
58 : protected:
59 : RootData* pExcRoot;
60 :
61 : public:
62 : ExportBiff5( XclExpRootData& rExpData, SvStream& rStrm );
63 : virtual ~ExportBiff5();
64 : FltError Write() SAL_OVERRIDE;
65 : };
66 :
67 :
68 : class ExportBiff8 : public ExportBiff5
69 : {
70 : public:
71 : ExportBiff8( XclExpRootData& rExpData, SvStream& rStrm );
72 : virtual ~ExportBiff8();
73 : };
74 :
75 :
76 : #endif
77 :
78 :
79 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|