Bump version to 24.04.3.4
[LibreOffice.git] / hwpfilter / source / hcode.h
blob53c1513e246f4336b04ddc0da5d9ae1186d53b7f
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 #pragma once
22 #include <sal/config.h>
24 #include <rtl/ustring.hxx>
26 #include "hwplib.h"
28 /**
29 * Codetype of Korean
30 * KSSM - Johap, KS - Wansung
32 enum { KSSM, KS, UNICODE };
33 /**
34 * Transfer combination-code for internal using of hwp to ascii
36 DLLEXPORT int hcharconv(hchar ch, hchar *dest, int codeType) ;
38 DLLEXPORT int kssm_hangul_to_ucs2(hchar ch, hchar *dest) ;
39 DLLEXPORT hchar ksc5601_han_to_ucs2 (hchar);
40 DLLEXPORT hchar ksc5601_sym_to_ucs2 (hchar);
41 DLLEXPORT OUString hstr2OUString(hchar const* hstr);
42 /**
43 * 한컴스트링을 완성형스트링으로 변환한다.
45 DLLEXPORT ::std::string hstr2ksstr(hchar const* hstr);
47 /**
48 * 한글을 포함할 수 있는 char형스트링을 한컴스트링으로 변환한다.
50 DLLEXPORT hchar_string kstr2hstr(uchar const* src);
52 /**
53 * hwp의 경로를 unix형태로 바꾼다.
55 DLLEXPORT ::std::string urltounix(const char *src);
57 /**
58 * hwp의 경로를 windows형태로 바꾼다.
60 #ifdef _WIN32
61 DLLEXPORT ::std::string urltowin(const char *src);
62 #endif
64 /**
65 * color인덱스 값과 음영값을 조합하여 스타오피스의 color로 변환
67 DLLEXPORT OUString hcolor2str(uchar color, uchar shade, bool bIsChar = false);
68 DLLEXPORT OUString rgb2str(unsigned char red, unsigned char green, unsigned char blue);
69 DLLEXPORT OUString rgb2str(int32_t rgb);
71 DLLEXPORT OUString base64_encode_string( const uchar *buf, unsigned int len );
72 DLLEXPORT double calcAngle(double x1, double y1, double x2, double y2);
74 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */