LibreOffice Module hwpfilter (master) 1
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
HWPPara Class Reference

It represents the paragraph. More...

#include <hpara.h>

Collaboration diagram for HWPPara:
[legend]

Public Member Functions

 HWPPara (void)
 
 ~HWPPara (void)
 
bool Read (HWPFile &hwpf, unsigned char flag)
 
void SetNext (HWPPara *n)
 
CharShapeGetCharShape (int pos)
 Returns the character style of paragraph. More...
 
ParaShapeGetParaShape (void)
 Returns the style of paragraph. More...
 
HWPParaNext (void)
 Returns next paragraph. More...
 

Public Attributes

unsigned char reuse_shape
 Zero is for the new paragraph style. More...
 
unsigned short nch
 
unsigned short nline
 
hunit begin_ypos
 
unsigned char scflag
 
unsigned char contain_cshape
 If the value is 0, all character of paragraph have same style given cshape. More...
 
unsigned char etcflag
 
uint ctrlflag
 Checks the special characters in the paragraph. More...
 
unsigned char pstyno
 
std::shared_ptr< CharShapecshape
 
std::shared_ptr< ParaShapepshape
 
std::unique_ptr< LineInfo[]> linfo
 
std::vector< std::shared_ptr< CharShape > > cshapep
 
std::vector< std::unique_ptr< HBox > > hhstr
 Box object list. More...
 

Private Member Functions

std::unique_ptr< HBoxreadHBox (HWPFile &)
 

Private Attributes

HWPPara_next
 

Detailed Description

It represents the paragraph.

Paragraph

Definition at line 68 of file hpara.h.

Constructor & Destructor Documentation

◆ HWPPara()

HWPPara::HWPPara ( void  )

Definition at line 67 of file hpara.cxx.

References make_shared().

◆ ~HWPPara()

HWPPara::~HWPPara ( void  )

Definition at line 83 of file hpara.cxx.

Member Function Documentation

◆ GetCharShape()

CharShape * HWPPara::GetCharShape ( int  pos)

Returns the character style of paragraph.

Definition at line 179 of file hpara.cxx.

References contain_cshape, cshape, cshapep, and pos.

Referenced by HwpReader::make_text_p1(), and HwpReader::make_text_p3().

◆ GetParaShape()

ParaShape & HWPPara::GetParaShape ( void  )
inline

Returns the style of paragraph.

Definition at line 121 of file hpara.h.

Referenced by HwpReader::make_text_p0(), HwpReader::make_text_p1(), HwpReader::make_text_p3(), and HwpReader::parsePara().

◆ Next()

HWPPara * HWPPara::Next ( void  )
inline

◆ Read()

bool HWPPara::Read ( HWPFile hwpf,
unsigned char  flag 
)

◆ readHBox()

std::unique_ptr< HBox > HWPPara::readHBox ( HWPFile hwpf)
private

◆ SetNext()

void HWPPara::SetNext ( HWPPara n)
inline

Definition at line 111 of file hpara.h.

References n.

Member Data Documentation

◆ _next

HWPPara* HWPPara::_next
private

Definition at line 71 of file hpara.h.

◆ begin_ypos

hunit HWPPara::begin_ypos

Definition at line 83 of file hpara.h.

Referenced by Read(), and readHBox().

◆ contain_cshape

unsigned char HWPPara::contain_cshape

If the value is 0, all character of paragraph have same style given cshape.

Definition at line 89 of file hpara.h.

Referenced by GetCharShape(), HwpReader::parsePara(), and Read().

◆ cshape

std::shared_ptr<CharShape> HWPPara::cshape

Definition at line 96 of file hpara.h.

Referenced by GetCharShape(), HwpReader::make_text_p0(), HwpReader::make_text_p1(), and Read().

◆ cshapep

std::vector<std::shared_ptr<CharShape> > HWPPara::cshapep

Definition at line 100 of file hpara.h.

Referenced by GetCharShape(), and Read().

◆ ctrlflag

uint HWPPara::ctrlflag

Checks the special characters in the paragraph.

Definition at line 94 of file hpara.h.

Referenced by HwpReader::parsePara(), and Read().

◆ etcflag

unsigned char HWPPara::etcflag

Definition at line 90 of file hpara.h.

Referenced by Read().

◆ hhstr

std::vector<std::unique_ptr<HBox> > HWPPara::hhstr

◆ linfo

std::unique_ptr<LineInfo[]> HWPPara::linfo

Definition at line 99 of file hpara.h.

Referenced by Read().

◆ nch

unsigned short HWPPara::nch

Definition at line 79 of file hpara.h.

Referenced by HwpReader::parsePara(), and Read().

◆ nline

unsigned short HWPPara::nline

Definition at line 80 of file hpara.h.

Referenced by Read().

◆ pshape

std::shared_ptr<ParaShape> HWPPara::pshape

Definition at line 97 of file hpara.h.

Referenced by Read().

◆ pstyno

unsigned char HWPPara::pstyno

Definition at line 95 of file hpara.h.

Referenced by Read().

◆ reuse_shape

unsigned char HWPPara::reuse_shape

Zero is for the new paragraph style.

Definition at line 78 of file hpara.h.

Referenced by Read().

◆ scflag

unsigned char HWPPara::scflag

Definition at line 84 of file hpara.h.

Referenced by Read(), and readHBox().


The documentation for this class was generated from the following files: