Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Patat.Presentation.Internal
Synopsis
- type Breadcrumbs = [(Int, [Inline])]
- data Presentation = Presentation {
- pFilePath :: !FilePath
- pEncodingFallback :: !EncodingFallback
- pTitle :: ![Inline]
- pAuthor :: ![Inline]
- pSettings :: !PresentationSettings
- pSlides :: !(Seq Slide)
- pBreadcrumbs :: !(Seq Breadcrumbs)
- pActiveFragment :: !Index
- pSyntaxMap :: !SyntaxMap
- data PresentationSettings = PresentationSettings {
- psRows :: !(Maybe (FlexibleNum Int))
- psColumns :: !(Maybe (FlexibleNum Int))
- psMargins :: !(Maybe Margins)
- psWrap :: !(Maybe Bool)
- psTheme :: !(Maybe Theme)
- psIncrementalLists :: !(Maybe Bool)
- psAutoAdvanceDelay :: !(Maybe (FlexibleNum Int))
- psSlideLevel :: !(Maybe Int)
- psPandocExtensions :: !(Maybe ExtensionList)
- psImages :: !(Maybe ImageSettings)
- psBreadcrumbs :: !(Maybe Bool)
- psEval :: !(Maybe EvalSettingsMap)
- psSlideNumber :: !(Maybe Bool)
- psSyntaxDefinitions :: !(Maybe [FilePath])
- psSpeakerNotes :: !(Maybe Settings)
- defaultPresentationSettings :: PresentationSettings
- data Margins = Margins {}
- marginsOf :: PresentationSettings -> (Int, Int)
- newtype ExtensionList = ExtensionList {
- unExtensionList :: Extensions
- defaultExtensionList :: ExtensionList
- data ImageSettings = ImageSettings {}
- type EvalSettingsMap = HashMap Text EvalSettings
- data EvalSettings = EvalSettings {
- evalCommand :: !Text
- evalReplace :: !Bool
- evalFragment :: !Bool
- data Slide = Slide {}
- data SlideContent
- = ContentSlide (Instructions Block)
- | TitleSlide Int [Inline]
- newtype Fragment = Fragment [Block]
- type Index = (Int, Int)
- getSlide :: Int -> Presentation -> Maybe Slide
- numFragments :: Slide -> Int
- data ActiveFragment
- = ActiveContent Fragment
- | ActiveTitle Block
- activeFragment :: Presentation -> Maybe ActiveFragment
- activeSpeakerNotes :: Presentation -> SpeakerNotes
Documentation
type Breadcrumbs = [(Int, [Inline])] Source #
data Presentation Source #
Constructors
Presentation | |
Fields
|
Instances
Show Presentation Source # | |
Defined in Patat.Presentation.Internal Methods showsPrec :: Int -> Presentation -> ShowS show :: Presentation -> String showList :: [Presentation] -> ShowS |
data PresentationSettings Source #
These are patat-specific settings. That is where they differ from more general metadata (author, title...)
Constructors
PresentationSettings | |
Fields
|
Instances
FromJSON PresentationSettings Source # | |
Defined in Patat.Presentation.Internal Methods parseJSON :: Value -> Parser PresentationSettings parseJSONList :: Value -> Parser [PresentationSettings] | |
Monoid PresentationSettings Source # | |
Defined in Patat.Presentation.Internal | |
Semigroup PresentationSettings Source # | |
Defined in Patat.Presentation.Internal Methods (<>) :: PresentationSettings -> PresentationSettings -> PresentationSettings sconcat :: NonEmpty PresentationSettings -> PresentationSettings stimes :: Integral b => b -> PresentationSettings -> PresentationSettings | |
Show PresentationSettings Source # | |
Defined in Patat.Presentation.Internal Methods showsPrec :: Int -> PresentationSettings -> ShowS show :: PresentationSettings -> String showList :: [PresentationSettings] -> ShowS |
marginsOf :: PresentationSettings -> (Int, Int) Source #
newtype ExtensionList Source #
Constructors
ExtensionList | |
Fields
|
Instances
FromJSON ExtensionList Source # | |
Defined in Patat.Presentation.Internal | |
Show ExtensionList Source # | |
Defined in Patat.Presentation.Internal Methods showsPrec :: Int -> ExtensionList -> ShowS show :: ExtensionList -> String showList :: [ExtensionList] -> ShowS |
data ImageSettings Source #
Constructors
ImageSettings | |
Instances
FromJSON ImageSettings Source # | |
Defined in Patat.Presentation.Internal | |
Show ImageSettings Source # | |
Defined in Patat.Presentation.Internal Methods showsPrec :: Int -> ImageSettings -> ShowS show :: ImageSettings -> String showList :: [ImageSettings] -> ShowS |
type EvalSettingsMap = HashMap Text EvalSettings Source #
data EvalSettings Source #
Constructors
EvalSettings | |
Fields
|
Instances
FromJSON EvalSettings Source # | |
Defined in Patat.Presentation.Internal | |
Show EvalSettings Source # | |
Defined in Patat.Presentation.Internal Methods showsPrec :: Int -> EvalSettings -> ShowS show :: EvalSettings -> String showList :: [EvalSettings] -> ShowS |
Constructors
Slide | |
Fields |
data SlideContent Source #
Constructors
ContentSlide (Instructions Block) | |
TitleSlide Int [Inline] |
Instances
Show SlideContent Source # | |
Defined in Patat.Presentation.Internal Methods showsPrec :: Int -> SlideContent -> ShowS show :: SlideContent -> String showList :: [SlideContent] -> ShowS |
Constructors
Fragment [Block] |
getSlide :: Int -> Presentation -> Maybe Slide Source #
numFragments :: Slide -> Int Source #
data ActiveFragment Source #
Constructors
ActiveContent Fragment | |
ActiveTitle Block |
Instances
Show ActiveFragment Source # | |
Defined in Patat.Presentation.Internal Methods showsPrec :: Int -> ActiveFragment -> ShowS show :: ActiveFragment -> String showList :: [ActiveFragment] -> ShowS |
activeFragment :: Presentation -> Maybe ActiveFragment Source #