Get the style color and number just once
[LibreOffice.git] / sc / source / filter / lotus / lotfilter.hxx
blob596b9a9de7429e0e3f7490a30e8fcf89ddca4f9b
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 <map>
23 #include <decl.h>
24 #include <optab.h>
25 #include <patattr.hxx>
26 #include <lotattr.hxx>
27 #include <lotrange.hxx>
28 #include <lotfntbf.hxx>
29 #include <flttypes.hxx>
30 #include <namebuff.hxx>
32 class SvxHorJustifyItem;
33 class FormCache;
35 struct LotusContext
37 static const sal_uInt16 nBOF = 0x0000;
38 static OPCODE_FKT pOpFkt[ FKT_LIMIT ];
39 static OPCODE_FKT pOpFkt123[ FKT_LIMIT123 ]; // -> optab.cxx; table of possible Opcodes
41 WKTYP eTyp; // type of file being processed
42 bool bEOF; // shows end of file
43 rtl_TextEncoding eCharset;
44 ScDocument& rDoc; // reference to access document
45 std::map<sal_uInt16, ScPatternAttr> aLotusPatternPool;
47 std::unique_ptr<SvxHorJustifyItem> xAttrRight, xAttrLeft, xAttrCenter, xAttrRepeat, xAttrStandard;
49 std::unique_ptr<FormCache> xValueFormCache; // -> initialized in memory.cxx
51 LotusRangeList maRangeNames;
52 Lotus123Typ eFirstType;
53 Lotus123Typ eActType;
54 ScRange aActRange;
55 std::unique_ptr<RangeNameBufferWK3> pRngNmBffWK3;
56 LotusFontBuffer maFontBuff;
57 LotAttrTable maAttrTable;
59 LotusContext(ScDocument& rDocP, rtl_TextEncoding eQ);
60 ~LotusContext();
63 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */