20#ifndef INCLUDED_HWPFILTER_SOURCE_HWPLIB_H
21#define INCLUDED_HWPFILTER_SOURCE_HWPLIB_H
29#include <rtl/ustring.hxx>
48 throw std::bad_alloc();
50 return {
reinterpret_cast<char16_t const *
>(s.c_str()), sal_Int32(s.length())};
95#if !defined(_WIN32) && !defined(MAX_PATH)
109#define ONE_ENG_CH_WIDTH (ONE_POINT*(10/2))
121#define CH_ALIGNSPACE 0
125#define CH_DATE_FORM 7
126#define CH_DATE_CODE 8
128#define CH_TEXT_BOX 10
131#define CH_END_PARA 13
134#define CH_HEADER_FOOTER 16
135#define CH_FOOTNOTE 17
136#define CH_AUTO_NUM 18
139#define CH_SHOW_PAGE_NUM 20
140#define CH_PAGE_NUM_CTRL 21
141#define CH_MAIL_MERGE 22
145#define CH_TOC_MARK 25
146#define CH_INDEX_MARK 26
150#define CH_CROSSREF 29
152#define CH_KEEP_SPACE 30
153#define CH_FIXED_SPACE 31
156#define HAVE_SUBPARA_MASK ((1<<CH_TEXT_BOX) | (1<<CH_PICTURE) | (1<<CH_HIDDEN) | (1<<CH_HEADER_FOOTER) | (1<<CH_FOOTNOTE))
158#define IS_SP_SKIP_BLOCK(hch) ((hch<5) || (hch==12) || (hch==27) || (hch == 29))
161#define FILETAG_END_OF_COMPRESSED 0x00000000
163#define FILETAG_EMBEDDED_PICTURE 0x00000001
164#define FILETAG_OLE_OBJECT 0x00000002
165#define FILETAG_HYPERTEXT 0x00000003
166#define FILETAG_PRESENTATION 0x00000004
168#define FILETAG_END_OF_UNCOMPRESSED 0x80000000
169#define FILETAG_PREVIEW_IMAGE 0x80000001
170#define FILETAG_PREVIEW_TEXT 0x80000002
205#include <sys/types.h>
211# define access _access
213# define mkdir(x,y) _mkdir(x)
218# define unlink _unlink
::std::basic_string< hchar > hchar_string
char16_t hchar
size of hunit is 4 since hwp96 version
@ HWP_UNSUPPORTED_VERSION
OUString fromHcharStringToOUString(hchar_string const &s)
constexpr std::enable_if_t< std::is_signed_v< T >, std::make_unsigned_t< T > > make_unsigned(T value)