Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data RichTextRun = RichTextRun {}
- data RunProperties = RunProperties {
- _runPropertiesBold :: Maybe Bool
- _runPropertiesCharset :: Maybe Int
- _runPropertiesColor :: Maybe Color
- _runPropertiesCondense :: Maybe Bool
- _runPropertiesExtend :: Maybe Bool
- _runPropertiesFontFamily :: Maybe FontFamily
- _runPropertiesItalic :: Maybe Bool
- _runPropertiesOutline :: Maybe Bool
- _runPropertiesFont :: Maybe Text
- _runPropertiesScheme :: Maybe FontScheme
- _runPropertiesShadow :: Maybe Bool
- _runPropertiesStrikeThrough :: Maybe Bool
- _runPropertiesSize :: Maybe Double
- _runPropertiesUnderline :: Maybe FontUnderline
- _runPropertiesVertAlign :: Maybe FontVerticalAlignment
- applyRunProperties :: RunProperties -> RichTextRun -> RichTextRun
- richTextRunProperties :: Lens' RichTextRun (Maybe RunProperties)
- richTextRunText :: Lens' RichTextRun Text
- runPropertiesBold :: Lens' RunProperties (Maybe Bool)
- runPropertiesCharset :: Lens' RunProperties (Maybe Int)
- runPropertiesColor :: Lens' RunProperties (Maybe Color)
- runPropertiesCondense :: Lens' RunProperties (Maybe Bool)
- runPropertiesExtend :: Lens' RunProperties (Maybe Bool)
- runPropertiesFontFamily :: Lens' RunProperties (Maybe FontFamily)
- runPropertiesItalic :: Lens' RunProperties (Maybe Bool)
- runPropertiesOutline :: Lens' RunProperties (Maybe Bool)
- runPropertiesFont :: Lens' RunProperties (Maybe Text)
- runPropertiesScheme :: Lens' RunProperties (Maybe FontScheme)
- runPropertiesShadow :: Lens' RunProperties (Maybe Bool)
- runPropertiesStrikeThrough :: Lens' RunProperties (Maybe Bool)
- runPropertiesSize :: Lens' RunProperties (Maybe Double)
- runPropertiesUnderline :: Lens' RunProperties (Maybe FontUnderline)
- runPropertiesVertAlign :: Lens' RunProperties (Maybe FontVerticalAlignment)
Main types
data RichTextRun Source #
Rich Text Run
This element represents a run of rich text. A rich text run is a region of text that share a common set of properties, such as formatting properties.
Section 18.4.4, "r (Rich Text Run)" (p. 1724)
RichTextRun | |
|
Eq RichTextRun Source # | |
Ord RichTextRun Source # | |
Show RichTextRun Source # | |
Default RichTextRun Source # | |
ToElement RichTextRun Source # | See |
FromCursor RichTextRun Source # | See |
data RunProperties Source #
Run properties
Section 18.4.7, "rPr (Run Properties)" (p. 1725)
RunProperties | |
|
Eq RunProperties Source # | |
Ord RunProperties Source # | |
Show RunProperties Source # | |
Monoid RunProperties Source # | The |
Default RunProperties Source # | |
ToElement RunProperties Source # | See |
FromCursor RunProperties Source # | See |
applyRunProperties :: RunProperties -> RichTextRun -> RichTextRun Source #
Apply properties to a RichTextRun
If the RichTextRun
specifies its own properties, then these overrule the
properties specified here. For example, adding bold
to a RichTextRun
which is already italic
will make the RichTextRun
both bold and
italic@
but adding it to one that that is explicitly _not_ bold will leave the
RichTextRun
unchanged.