Safe Haskell | None |
---|---|
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)
- pSlideSettings :: !(Seq PresentationSettings)
- pTransitionGens :: !(Seq (Maybe TransitionGen))
- pActiveFragment :: !Index
- pSyntaxMap :: !SyntaxMap
- pEvalBlocks :: !EvalBlocks
- pUniqueGen :: !UniqueGen
- pVars :: !(HashMap Var [Block])
- data PresentationSettings = PresentationSettings {
- psRows :: !(Maybe (FlexibleNum Int))
- psColumns :: !(Maybe (FlexibleNum Int))
- psMargins :: !(Maybe MarginSettings)
- psWrap :: !(Maybe Wrap)
- psTabStop :: !(Maybe (FlexibleNum Int))
- 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 SpeakerNotesSettings)
- psTransition :: !(Maybe TransitionSettings)
- defaultPresentationSettings :: PresentationSettings
- data MarginSettings = MarginSettings {}
- data Margins = Margins {}
- margins :: PresentationSettings -> Margins
- newtype ExtensionList = ExtensionList {
- unExtensionList :: Extensions
- defaultExtensionList :: ExtensionList
- data ImageSettings = ImageSettings {}
- type EvalSettingsMap = HashMap Text EvalSettings
- data EvalSettings = EvalSettings {
- evalCommand :: !Text
- evalReplace :: !Bool
- evalReveal :: !Bool
- evalContainer :: !EvalSettingsContainer
- evalStderr :: !Bool
- data Slide = Slide {
- slideSpeakerNotes :: !SpeakerNotes
- slideSettings :: !(Either String PresentationSettings)
- slideContent :: !SlideContent
- data SlideContent
- = ContentSlide [Block]
- | TitleSlide Int [Inline]
- type Index = (Int, Int)
- getSlide :: Int -> Presentation -> Maybe Slide
- numFragments :: Slide -> Int
- data ActiveFragment
- = ActiveContent [Block] (HashSet Var) RevealState
- | ActiveTitle Block
- activeFragment :: Presentation -> Maybe ActiveFragment
- activeSpeakerNotes :: Presentation -> SpeakerNotes
- activeVars :: Presentation -> HashSet Var
- getSettings :: Int -> Presentation -> PresentationSettings
- activeSettings :: Presentation -> PresentationSettings
- data Size
- getPresentationSize :: Presentation -> IO Size
- updateVar :: Var -> [Block] -> Presentation -> Presentation
Documentation
type Breadcrumbs = [(Int, [Inline])] Source #
data Presentation Source #
Constructors
Presentation | |
Fields
|
data PresentationSettings Source #
These are patat-specific settings. That is where they differ from more general metadata (author, title...)
Constructors
PresentationSettings | |
Fields
|
Instances
data MarginSettings Source #
Constructors
MarginSettings | |
Instances
newtype ExtensionList Source #
Constructors
ExtensionList | |
Fields
|
Instances
FromJSON ExtensionList Source # | |
Defined in Patat.Presentation.Settings Methods parseJSON :: Value -> Parser ExtensionList parseJSONList :: Value -> Parser [ExtensionList] omittedField :: Maybe ExtensionList | |
Show ExtensionList Source # | |
Defined in Patat.Presentation.Settings Methods showsPrec :: Int -> ExtensionList -> ShowS show :: ExtensionList -> String showList :: [ExtensionList] -> ShowS | |
Eq ExtensionList Source # | |
Defined in Patat.Presentation.Settings |
data ImageSettings Source #
Constructors
ImageSettings | |
Instances
FromJSON ImageSettings Source # | |
Defined in Patat.Presentation.Settings Methods parseJSON :: Value -> Parser ImageSettings parseJSONList :: Value -> Parser [ImageSettings] omittedField :: Maybe ImageSettings | |
Show ImageSettings Source # | |
Defined in Patat.Presentation.Settings Methods showsPrec :: Int -> ImageSettings -> ShowS show :: ImageSettings -> String showList :: [ImageSettings] -> ShowS | |
Eq ImageSettings Source # | |
Defined in Patat.Presentation.Settings |
type EvalSettingsMap = HashMap Text EvalSettings Source #
data EvalSettings Source #
Constructors
EvalSettings | |
Fields
|
Instances
FromJSON EvalSettings Source # | |
Defined in Patat.Presentation.Settings Methods parseJSON :: Value -> Parser EvalSettings parseJSONList :: Value -> Parser [EvalSettings] omittedField :: Maybe EvalSettings | |
Show EvalSettings Source # | |
Defined in Patat.Presentation.Settings Methods showsPrec :: Int -> EvalSettings -> ShowS show :: EvalSettings -> String showList :: [EvalSettings] -> ShowS | |
Eq EvalSettings Source # | |
Defined in Patat.Presentation.Settings |
Constructors
Slide | |
Fields
|
data SlideContent Source #
Constructors
ContentSlide [Block] | |
TitleSlide Int [Inline] |
Instances
Show SlideContent Source # | |
Defined in Patat.Presentation.Internal Methods showsPrec :: Int -> SlideContent -> ShowS show :: SlideContent -> String showList :: [SlideContent] -> ShowS |
getSlide :: Int -> Presentation -> Maybe Slide Source #
numFragments :: Slide -> Int Source #
data ActiveFragment Source #
Constructors
ActiveContent [Block] (HashSet Var) RevealState | |
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 #
activeVars :: Presentation -> HashSet Var Source #
getSettings :: Int -> Presentation -> PresentationSettings Source #
getPresentationSize :: Presentation -> IO Size Source #
updateVar :: Var -> [Block] -> Presentation -> Presentation Source #