Add Note state to PowerPoint writer.
First step toward implementing notes in pptx writer.
This commit is contained in:
parent
4d0cb0b2fc
commit
d6c9e4f243
1 changed files with 2 additions and 0 deletions
|
@ -139,6 +139,7 @@ data WriterState = WriterState { stCurSlideId :: Int
|
||||||
-- (FP, Local ID, Global ID, Maybe Mime)
|
-- (FP, Local ID, Global ID, Maybe Mime)
|
||||||
, stMediaIds :: M.Map Int [MediaInfo]
|
, stMediaIds :: M.Map Int [MediaInfo]
|
||||||
, stMediaGlobalIds :: M.Map FilePath Int
|
, stMediaGlobalIds :: M.Map FilePath Int
|
||||||
|
, stNoteIds :: M.Map Int [Block]
|
||||||
} deriving (Show, Eq)
|
} deriving (Show, Eq)
|
||||||
|
|
||||||
instance Default WriterState where
|
instance Default WriterState where
|
||||||
|
@ -147,6 +148,7 @@ instance Default WriterState where
|
||||||
, stLinkIds = mempty
|
, stLinkIds = mempty
|
||||||
, stMediaIds = mempty
|
, stMediaIds = mempty
|
||||||
, stMediaGlobalIds = mempty
|
, stMediaGlobalIds = mempty
|
||||||
|
, stNoteIds = mempty
|
||||||
}
|
}
|
||||||
|
|
||||||
type P m = ReaderT WriterEnv (StateT WriterState m)
|
type P m = ReaderT WriterEnv (StateT WriterState m)
|
||||||
|
|
Loading…
Reference in a new issue