|
typeset 0.1.0
縦書き・横書きの日本語組版ライブラリ(JLReq 水準、ラスタ / PDF / SVG)
|
#include <typeset/inl/paragraph.hpp>
公開メンバ関数 | |
| std::u16string | text () const |
| const TextStyle & | baseStyle () 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< InlineRun > | runs |
| std::vector< Annotation > | annotations |
| 範囲は段落全体の UTF-16 位置 | |
| ParagraphStyle | style |
paragraph.hpp の 56 行目に定義があります。
| std::u16string typeset::inl::Paragraph::text | ( | ) | const |
| const TextStyle & typeset::inl::Paragraph::baseStyle | ( | ) | const |
本文スタイル(先頭の run。無ければ既定)
|
inlinestatic |
paragraph.hpp の 65 行目に定義があります。
|
inline |
行内画像を足す(本文中の位置は U+FFFC 1 文字ぶん)
paragraph.hpp の 73 行目に定義があります。
参照先 typeset::inl::InlineRun::image, typeset::inl::InlineRun::imageSize, runs, typeset::inl::InlineRun::style, style, typeset::inl::InlineRun::text.
|
inline |
行内プレースホルダ(大きさだけの空箱)を足す。本文中の位置は U+FFFC 1 文字ぶん。描かれないので、 組んだあと placeholderRects() / charBoxes() で位置を取り、ホストがウィジェットや画像を重ねる。 中心が行の中心線に載る(行内画像と同じ)。行送りの箱から出れば行送りが広がる
paragraph.hpp の 87 行目に定義があります。
参照先 typeset::inl::InlineRun::imageSize, typeset::inl::InlineRun::placeholder, typeset::inl::InlineRun::placeholderId, runs, typeset::inl::InlineRun::style, style, typeset::inl::InlineRun::text.
|
inline |
外部ハンドラのオブジェクト(数式など)を行内に足す。style は周囲の本文(サイズの基準・ベースライン)
paragraph.hpp の 98 行目に定義があります。
参照先 typeset::inl::InlineRun::objectRef, runs, typeset::inl::InlineRun::style, style, typeset::inl::InlineRun::text.
|
inline |
解決済みのオブジェクトを行内に足す
paragraph.hpp の 107 行目に定義があります。
参照先 typeset::inl::InlineRun::object, runs, typeset::inl::InlineRun::style, style, typeset::inl::InlineRun::text.
脚注を足す。本文のこの位置に記号(番号。markerStyle は上付きにしておく: superscriptStyle)が入り、 注の本文 note は FlowLayouter がその行の載る段の末尾に置く(番号は文書を通して連番)
paragraph.hpp の 129 行目に定義があります。
参照先 typeset::inl::InlineRun::footnote, runs, typeset::inl::InlineRun::style, typeset::inl::InlineRun::text.
| std::vector<InlineRun> typeset::inl::Paragraph::runs |
paragraph.hpp の 57 行目に定義があります。
参照元 addFootnote(), addImage(), addObject(), addObject(), addPlaceholder().
| std::vector<Annotation> typeset::inl::Paragraph::annotations |
範囲は段落全体の UTF-16 位置
paragraph.hpp の 58 行目に定義があります。
| ParagraphStyle typeset::inl::Paragraph::style |
paragraph.hpp の 59 行目に定義があります。