typeset 0.1.0
縦書き・横書きの日本語組版ライブラリ(JLReq 水準、ラスタ / PDF / SVG)
読み取り中…
検索中…
一致する文字列を見つけられません
typeset::inl::Paragraph 構造体

#include <typeset/inl/paragraph.hpp>

公開メンバ関数

std::u16string text () const
 
const TextStylebaseStyle () const
 本文スタイル(先頭の run。無ければ既定)
 
void addImage (std::shared_ptr< const dl::Image > image, Size size, TextStyle style)
 行内画像を足す(本文中の位置は U+FFFC 1 文字ぶん)
 
void addPlaceholder (Size size, TextStyle style, std::string id=std::string())
 行内プレースホルダ(大きさだけの空箱)を足す。本文中の位置は U+FFFC 1 文字ぶん。描かれないので、 組んだあと placeholderRects() / charBoxes() で位置を取り、ホストがウィジェットや画像を重ねる。 中心が行の中心線に載る(行内画像と同じ)。行送りの箱から出れば行送りが広がる
 
void addObject (std::string handler, std::u16string source, std::map< std::string, std::string > params, TextStyle style)
 外部ハンドラのオブジェクト(数式など)を行内に足す。style は周囲の本文(サイズの基準・ベースライン)
 
void addObject (std::shared_ptr< const obj::ObjectResult > object, TextStyle style)
 解決済みのオブジェクトを行内に足す
 
void addFootnote (Paragraph note, TextStyle markerStyle)
 脚注を足す。本文のこの位置に記号(番号。markerStyle は上付きにしておく: superscriptStyle)が入り、 注の本文 note は FlowLayouter がその行の載る段の末尾に置く(番号は文書を通して連番)
 

静的公開メンバ関数

static Paragraph plain (std::u16string text, TextStyle style, ParagraphStyle pstyle={})
 

公開変数類

std::vector< InlineRunruns
 
std::vector< Annotationannotations
 範囲は段落全体の UTF-16 位置
 
ParagraphStyle style
 

詳解

paragraph.hpp56 行目に定義があります。

関数詳解

◆ text()

std::u16string typeset::inl::Paragraph::text ( ) const

◆ baseStyle()

const TextStyle & typeset::inl::Paragraph::baseStyle ( ) const

本文スタイル(先頭の run。無ければ既定)

◆ plain()

static Paragraph typeset::inl::Paragraph::plain ( std::u16string  text,
TextStyle  style,
ParagraphStyle  pstyle = {} 
)
inlinestatic

paragraph.hpp65 行目に定義があります。

◆ addImage()

void typeset::inl::Paragraph::addImage ( std::shared_ptr< const dl::Image image,
Size  size,
TextStyle  style 
)
inline

行内画像を足す(本文中の位置は U+FFFC 1 文字ぶん)

paragraph.hpp73 行目に定義があります。

参照先 typeset::inl::InlineRun::image, typeset::inl::InlineRun::imageSize, runs, typeset::inl::InlineRun::style, style, typeset::inl::InlineRun::text.

◆ addPlaceholder()

void typeset::inl::Paragraph::addPlaceholder ( Size  size,
TextStyle  style,
std::string  id = std::string() 
)
inline

行内プレースホルダ(大きさだけの空箱)を足す。本文中の位置は U+FFFC 1 文字ぶん。描かれないので、 組んだあと placeholderRects() / charBoxes() で位置を取り、ホストがウィジェットや画像を重ねる。 中心が行の中心線に載る(行内画像と同じ)。行送りの箱から出れば行送りが広がる

paragraph.hpp87 行目に定義があります。

参照先 typeset::inl::InlineRun::imageSize, typeset::inl::InlineRun::placeholder, typeset::inl::InlineRun::placeholderId, runs, typeset::inl::InlineRun::style, style, typeset::inl::InlineRun::text.

◆ addObject() [1/2]

void typeset::inl::Paragraph::addObject ( std::string  handler,
std::u16string  source,
std::map< std::string, std::string >  params,
TextStyle  style 
)
inline

外部ハンドラのオブジェクト(数式など)を行内に足す。style は周囲の本文(サイズの基準・ベースライン)

paragraph.hpp98 行目に定義があります。

参照先 typeset::inl::InlineRun::objectRef, runs, typeset::inl::InlineRun::style, style, typeset::inl::InlineRun::text.

◆ addObject() [2/2]

void typeset::inl::Paragraph::addObject ( std::shared_ptr< const obj::ObjectResult object,
TextStyle  style 
)
inline

解決済みのオブジェクトを行内に足す

paragraph.hpp107 行目に定義があります。

参照先 typeset::inl::InlineRun::object, runs, typeset::inl::InlineRun::style, style, typeset::inl::InlineRun::text.

◆ addFootnote()

void typeset::inl::Paragraph::addFootnote ( Paragraph  note,
TextStyle  markerStyle 
)
inline

脚注を足す。本文のこの位置に記号(番号。markerStyle は上付きにしておく: superscriptStyle)が入り、 注の本文 note は FlowLayouter がその行の載る段の末尾に置く(番号は文書を通して連番)

paragraph.hpp129 行目に定義があります。

参照先 typeset::inl::InlineRun::footnote, runs, typeset::inl::InlineRun::style, typeset::inl::InlineRun::text.

メンバ詳解

◆ runs

std::vector<InlineRun> typeset::inl::Paragraph::runs

paragraph.hpp57 行目に定義があります。

参照元 addFootnote(), addImage(), addObject(), addObject(), addPlaceholder().

◆ annotations

std::vector<Annotation> typeset::inl::Paragraph::annotations

範囲は段落全体の UTF-16 位置

paragraph.hpp58 行目に定義があります。

◆ style

ParagraphStyle typeset::inl::Paragraph::style

paragraph.hpp59 行目に定義があります。

参照元 addImage(), addObject(), addObject(), addPlaceholder().


この構造体詳解は次のファイルから抽出されました: