Bump version to 6.4-15
[LibreOffice.git] / hwpfilter / source / hcode.h
blob18ec72a3d6e84420c08079cff2c36ea97bd0dad3
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 .
20 #ifndef INCLUDED_HWPFILTER_SOURCE_HCODE_H
21 #define INCLUDED_HWPFILTER_SOURCE_HCODE_H
23 #include "hwplib.h"
25 /**
26 * Codetype of Korean
27 * KSSM - Johap, KS - Wansung
29 enum { KSSM, KS, UNICODE };
30 /**
31 * Transfer combination-code for internal using of hwp to ascii
33 DLLEXPORT int hcharconv(hchar ch, hchar *dest, int codeType) ;
35 DLLEXPORT int kssm_hangul_to_ucs2(hchar ch, hchar *dest) ;
36 DLLEXPORT hchar ksc5601_han_to_ucs2 (hchar);
37 DLLEXPORT hchar ksc5601_sym_to_ucs2 (hchar);
38 DLLEXPORT hchar_string hstr2ucsstr(hchar const* hstr);
39 /**
40 * 한컴스트링을 완성형스트링으로 변환한다.
42 DLLEXPORT ::std::string hstr2ksstr(hchar const* hstr);
44 /**
45 * 한글을 포함할 수 있는 char형스트링을 한컴스트링으로 변환한다.
47 DLLEXPORT hchar_string kstr2hstr(uchar const* src);
49 /**
50 * hwp의 경로를 unix형태로 바꾼다.
52 DLLEXPORT ::std::string urltounix(const char *src);
54 /**
55 * hwp의 경로를 windows형태로 바꾼다.
57 #ifdef _WIN32
58 DLLEXPORT ::std::string urltowin(const char *src);
59 #endif
60 /**
61 * Transfer integer to string following format
63 DLLEXPORT char* Int2Str(int value, const char *format, char *buf);
65 /**
66 * color인덱스 값과 음영값을 조합하여 스타오피스의 color로 변환
68 DLLEXPORT char *hcolor2str(uchar color, uchar shade, char *buf, bool bIsChar = false);
70 DLLEXPORT char *base64_encode_string( const uchar *buf, unsigned int len );
71 DLLEXPORT double calcAngle(int x1, int y1, int x2, int y2);
74 #endif // INCLUDED_HWPFILTER_SOURCE_HCODE_H
76 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */