LibreOffice Module hwpfilter (master) 1
Enumerations | Functions
hcode.h File Reference
#include <sal/config.h>
#include <rtl/ustring.hxx>
#include "hwplib.h"
Include dependency graph for hcode.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  {
  KSSM ,
  KS ,
  UNICODE
}
 Codetype of Korean KSSM - Johap, KS - Wansung. More...
 

Functions

DLLEXPORT int hcharconv (hchar ch, hchar *dest, int codeType)
 Transfer combination-code for internal using of hwp to ascii. More...
 
DLLEXPORT int kssm_hangul_to_ucs2 (hchar ch, hchar *dest)
 
DLLEXPORT hchar ksc5601_han_to_ucs2 (hchar)
 
DLLEXPORT hchar ksc5601_sym_to_ucs2 (hchar)
 
DLLEXPORT OUString hstr2OUString (hchar const *hstr)
 
DLLEXPORT::std::string hstr2ksstr (hchar const *hstr)
 한컴스트링을 완성형스트링으로 변환한다. More...
 
DLLEXPORT hchar_string kstr2hstr (uchar const *src)
 한글을 포함할 수 있는 char형스트링을 한컴스트링으로 변환한다. More...
 
DLLEXPORT::std::string urltounix (const char *src)
 hwp의 경로를 unix형태로 바꾼다. More...
 
DLLEXPORT OUString hcolor2str (uchar color, uchar shade, bool bIsChar=false)
 hwp의 경로를 windows형태로 바꾼다. More...
 
DLLEXPORT OUString rgb2str (unsigned char red, unsigned char green, unsigned char blue)
 
DLLEXPORT OUString rgb2str (int32_t rgb)
 
DLLEXPORT OUString base64_encode_string (const uchar *buf, unsigned int len)
 
DLLEXPORT double calcAngle (double x1, double y1, double x2, double y2)
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum

Codetype of Korean KSSM - Johap, KS - Wansung.

Enumerator
KSSM 
KS 
UNICODE 

Definition at line 32 of file hcode.h.

Function Documentation

◆ base64_encode_string()

DLLEXPORT OUString base64_encode_string ( const uchar buf,
unsigned int  len 
)

◆ calcAngle()

DLLEXPORT double calcAngle ( double  x1,
double  y1,
double  x2,
double  y2 
)

Definition at line 1402 of file hcode.cxx.

References basegfx::rad2deg().

Referenced by HwpReader::makePictureDRAW().

◆ hcharconv()

DLLEXPORT int hcharconv ( hchar  ch,
hchar dest,
int  codeType 
)

◆ hcolor2str()

DLLEXPORT OUString hcolor2str ( uchar  color,
uchar  shade,
bool  bIsChar = false 
)

hwp의 경로를 windows형태로 바꾼다.

color인덱스 값과 음영값을 조합하여 스타오피스의 color로 변환

Definition at line 1241 of file hcode.cxx.

References rgb2str().

Referenced by HwpReader::makeCaptionStyle(), HwpReader::makeFStyle(), HwpReader::makeTableStyle(), HwpReader::parseCharShape(), and HwpReader::parseParaShape().

◆ hstr2ksstr()

DLLEXPORT::std::string hstr2ksstr ( hchar const *  hstr)

한컴스트링을 완성형스트링으로 변환한다.

한컴스트링을 완성형스트링으로 변환한다.

Definition at line 1186 of file hcode.cxx.

References hcharconv(), and KS.

Referenced by HwpReader::makeHyperText(), and HwpReader::parseCharShape().

◆ hstr2OUString()

DLLEXPORT OUString hstr2OUString ( hchar const *  hstr)

◆ ksc5601_han_to_ucs2()

DLLEXPORT hchar ksc5601_han_to_ucs2 ( hchar  input)

Definition at line 1158 of file hcode.cxx.

References ch, idx, ksc5601_2uni_page21, o3tl::make_unsigned(), SAL_N_ELEMENTS, and value.

Referenced by hcharconv().

◆ ksc5601_sym_to_ucs2()

DLLEXPORT hchar ksc5601_sym_to_ucs2 ( hchar  input)

Definition at line 1146 of file hcode.cxx.

References ch, idx, ksc5601_2uni_page21, o3tl::make_unsigned(), SAL_N_ELEMENTS, and value.

Referenced by hcharconv().

◆ kssm_hangul_to_ucs2()

DLLEXPORT int kssm_hangul_to_ucs2 ( hchar  ch,
hchar dest 
)

◆ kstr2hstr()

DLLEXPORT hchar_string kstr2hstr ( uchar const *  src)

한글을 포함할 수 있는 char형스트링을 한컴스트링으로 변환한다.

Definition at line 1217 of file hcode.cxx.

References i.

Referenced by HwpReader::makeDrawMiscStyle(), HwpReader::makeHyperText(), HwpReader::makePageStyle(), HwpReader::makePicture(), HwpReader::makeStyles(), and HwpReader::parseCharShape().

◆ rgb2str() [1/2]

DLLEXPORT OUString rgb2str ( int32_t  rgb)

Definition at line 1304 of file hcode.cxx.

References rgb2str().

◆ rgb2str() [2/2]

DLLEXPORT OUString rgb2str ( unsigned char  red,
unsigned char  green,
unsigned char  blue 
)

◆ urltounix()

DLLEXPORT::std::string urltounix ( const char *  src)

hwp의 경로를 unix형태로 바꾼다.

Definition at line 1307 of file hcode.cxx.

References i.

Referenced by HwpReader::makeDrawMiscStyle(), HwpReader::makeHyperText(), HwpReader::makePageStyle(), and HwpReader::makePicture().