LibreOffice Module hwpfilter (master)
1
hwpfilter
source
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
29
class
HWPFile
;
33
struct
EmPicture
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
};
48
struct
HyperText
49
{
50
kchar
filename
[256];
51
hchar
bookmark
[16];
52
char
macro
[325];
53
uchar
type
;
54
char
reserve
[3];
55
bool
Read
(
HWPFile
& hwpf);
56
};
60
struct
OlePicture
61
{
62
int
size
;
63
uint
signature
;
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: */
uint
unsigned int uint
HWPFile
The HWPFile class is the main class of hwp for reading file information from stream.
Definition:
hwpfile.h:98
kchar
unsigned char kchar
Definition:
hwplib.h:38
hchar
char16_t hchar
size of hunit is 4 since hwp96 version
Definition:
hwplib.h:36
uchar
unsigned char uchar
Definition:
hwplib.h:40
EmPicture
Embedded image.
Definition:
htags.h:34
EmPicture::name
char name[16]
Definition:
htags.h:36
EmPicture::size
size_t size
Definition:
htags.h:35
EmPicture::type
char type[16]
Definition:
htags.h:37
EmPicture::Read
bool Read(HWPFile &hwpf)
Definition:
htags.cxx:63
EmPicture::EmPicture
EmPicture(size_t size)
Definition:
htags.cxx:53
EmPicture::~EmPicture
~EmPicture(void)
Definition:
htags.cxx:59
EmPicture::data
std::vector< uchar > data
Definition:
htags.h:38
HyperText
HyperText.
Definition:
htags.h:49
HyperText::reserve
char reserve[3]
Definition:
htags.h:54
HyperText::filename
kchar filename[256]
Definition:
htags.h:50
HyperText::Read
bool Read(HWPFile &hwpf)
Definition:
htags.cxx:31
HyperText::type
uchar type
Definition:
htags.h:53
HyperText::bookmark
hchar bookmark[16]
Definition:
htags.h:51
HyperText::macro
char macro[325]
Definition:
htags.h:52
OlePicture
Win32 OLE object.
Definition:
htags.h:61
OlePicture::size
int size
Definition:
htags.h:62
OlePicture::OlePicture
OlePicture(int tsize)
Definition:
htags.cxx:76
OlePicture::signature
uint signature
Definition:
htags.h:63
OlePicture::Read
void Read(HWPFile &hwpf)
Definition:
htags.cxx:97
Generated on Sun Jul 30 2023 04:33:10 for LibreOffice Module hwpfilter (master) by
1.9.3