Bump version to 4.1-6
[LibreOffice.git] / writerfilter / source / resourcemodel / resourcemodel.hxx
blob2e0066d9aa4fc184d3c5c3945f2727d9389b6963
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 .
19 #include <resourcemodel/WW8ResourceModel.hxx>
21 namespace writerfilter {
22 class WW8TableManager;
23 class WW8StreamHandler : public Stream
25 int mnUTextCount;
26 WW8TableManager* mpTableManager;
28 public:
29 WW8StreamHandler();
30 virtual ~WW8StreamHandler();
32 virtual void startSectionGroup();
33 virtual void endSectionGroup();
34 virtual void startParagraphGroup();
35 virtual void endParagraphGroup();
36 virtual void startCharacterGroup();
37 virtual void endCharacterGroup();
38 virtual void text(const sal_uInt8 * data, size_t len);
39 virtual void utext(const sal_uInt8 * data, size_t len);
41 virtual void props(writerfilter::Reference<Properties>::Pointer_t ref);
42 virtual void table(Id name,
43 writerfilter::Reference<Table>::Pointer_t ref);
45 virtual void startShape( ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape > xShape );
46 virtual void endShape( );
48 virtual void substream(Id name, writerfilter::Reference<Stream>::Pointer_t ref);
50 virtual void info(const string & info);
53 class WW8PropertiesHandler : public Properties
55 typedef boost::shared_ptr<Sprm> SprmSharedPointer_t;
56 typedef vector<SprmSharedPointer_t> SprmPointers_t;
57 SprmPointers_t sprms;
58 WW8TableManager* mpTableManager;
60 public:
61 WW8PropertiesHandler(WW8TableManager* pTableManager)
62 : mpTableManager(pTableManager)
66 virtual ~WW8PropertiesHandler()
70 virtual void attribute(Id name, Value & val);
71 virtual void sprm(Sprm & sprm);
73 void dumpSprm(SprmSharedPointer_t sprm);
74 void dumpSprms();
77 class WW8BinaryObjHandler : public BinaryObj
79 public:
80 WW8BinaryObjHandler()
84 virtual ~WW8BinaryObjHandler()
88 virtual void data(const sal_uInt8* buf, size_t len,
89 writerfilter::Reference<Properties>::Pointer_t ref);
92 class WW8TableHandler : public Table
94 WW8TableManager* mpTableManager;
96 public:
97 WW8TableHandler(WW8TableManager* pTableManager)
98 : mpTableManager(pTableManager)
102 virtual ~WW8TableHandler()
106 void entry(int pos, writerfilter::Reference<Properties>::Pointer_t ref);
111 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */