fdo#74697 Add Bluez 5 support for impress remote.
[LibreOffice.git] / writerfilter / inc / resourcemodel / Protocol.hxx
bloba4fa4f7f8b177e1f7a2e660df0b02a67bd7556f6
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 #ifndef INCLUDE_WRITERFILTER_PROTOCOL_HXX
20 #define INCLUDE_WRITERFILTER_PROTOCOL_HXX
22 #ifdef DEBUG_PROTOCOL
24 #include <boost/shared_ptr.hpp>
25 #include "WW8ResourceModel.hxx"
26 #include "TagLogger.hxx"
27 namespace writerfilter
30 class StreamProtocol : public Stream
32 Stream * m_pStream;
33 TagLogger::Pointer_t m_pTagLogger;
35 public:
36 typedef boost::shared_ptr<StreamProtocol> Pointer_t;
38 StreamProtocol(Stream * pStream, TagLogger::Pointer_t pTagLogger);
39 virtual ~StreamProtocol();
41 virtual void startSectionGroup();
42 virtual void endSectionGroup();
43 virtual void startParagraphGroup();
44 virtual void endParagraphGroup();
45 virtual void startCharacterGroup();
46 virtual void endCharacterGroup();
47 virtual void text(const sal_uInt8 * data, size_t len);
48 virtual void utext(const sal_uInt8 * data, size_t len);
49 virtual void props(writerfilter::Reference<Properties>::Pointer_t ref);
50 virtual void table(Id name,
51 writerfilter::Reference<Table>::Pointer_t ref);
52 virtual void substream(Id name,
53 writerfilter::Reference<Stream>::Pointer_t ref);
54 virtual void info(const string & rInfo);
55 virtual void startShape( ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape > xShape );
56 virtual void endShape();
59 class PropertiesProtocol : public Properties
61 Properties * m_pProperties;
62 TagLogger::Pointer_t m_pTagLogger;
64 public:
65 typedef boost::shared_ptr<PropertiesProtocol> Pointer_t;
67 PropertiesProtocol(Properties * pProperties, TagLogger::Pointer_t pTagLogger);
68 virtual ~PropertiesProtocol();
70 virtual void attribute(Id name, Value & val);
71 virtual void sprm(Sprm & sprm);
74 class TableProtocol : public Table
76 Table * m_pTable;
77 TagLogger::Pointer_t m_pTagLogger;
79 public:
80 typedef boost::shared_ptr<TableProtocol> Pointer_t;
82 TableProtocol(Table * pTable, TagLogger::Pointer_t pTagLogger);
83 virtual ~TableProtocol();
85 virtual void entry(int pos, writerfilter::Reference<Properties>::Pointer_t ref);
90 #endif // DEBUG_PROTOCOL
91 #endif // INCLUDE_WRITERFILTER_PROTOCOL_HXX
93 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */