LibreOffice Module hwpfilter (master) 1
htags.h
Go to the documentation of this file.
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 INCLUDED_HWPFILTER_SOURCE_HTAGS_H
21#define INCLUDED_HWPFILTER_SOURCE_HTAGS_H
22
23#include <memory>
24#include <vector>
25#ifdef _WIN32
26#include <objidl.h>
27#endif
28
29class HWPFile;
34{
35 size_t size;
36 char name[16];
37 char type[16];
38 std::vector<uchar> data;
39
40 explicit EmPicture(size_t size);
41 ~EmPicture(void);
42
43 bool Read(HWPFile& hwpf);
44};
49{
52 char macro[325];
54 char reserve[3];
55 bool Read(HWPFile& hwpf);
56};
61{
62 int size;
64#ifdef _WIN32
65 IStorage* pis;
66#endif
67 explicit OlePicture(int tsize);
68#ifdef _WIN32
69 ~OlePicture(void);
70#endif
71 void Read(HWPFile& hwpf);
72};
73#endif // INCLUDED_HWPFILTER_SOURCE_HTAGS_H
74
75/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
unsigned int uint
The HWPFile class is the main class of hwp for reading file information from stream.
Definition: hwpfile.h:98
unsigned char kchar
Definition: hwplib.h:38
char16_t hchar
size of hunit is 4 since hwp96 version
Definition: hwplib.h:36
unsigned char uchar
Definition: hwplib.h:40
Embedded image.
Definition: htags.h:34
char name[16]
Definition: htags.h:36
size_t size
Definition: htags.h:35
char type[16]
Definition: htags.h:37
bool Read(HWPFile &hwpf)
Definition: htags.cxx:63
EmPicture(size_t size)
Definition: htags.cxx:53
~EmPicture(void)
Definition: htags.cxx:59
std::vector< uchar > data
Definition: htags.h:38
HyperText.
Definition: htags.h:49
char reserve[3]
Definition: htags.h:54
kchar filename[256]
Definition: htags.h:50
bool Read(HWPFile &hwpf)
Definition: htags.cxx:31
uchar type
Definition: htags.h:53
hchar bookmark[16]
Definition: htags.h:51
char macro[325]
Definition: htags.h:52
Win32 OLE object.
Definition: htags.h:61
int size
Definition: htags.h:62
OlePicture(int tsize)
Definition: htags.cxx:76
uint signature
Definition: htags.h:63
void Read(HWPFile &hwpf)
Definition: htags.cxx:97