-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Xournal file parser -- -- Define Xournal type and parser for xournal xml file @package xournal-parser @version 0.2 module Text.Xournal.Parse.Enumerator parseXojFile :: FilePath -> IO () module Text.Xournal.Predefined hexToRGBA :: Integer -> (Double, Double, Double, Double) rgbaToHEX :: (Double, Double, Double, Double) -> String predefined_pencolor :: Map ByteString (Double, Double, Double, Double) predefined_bkgcolor :: Map ByteString (Double, Double, Double, Double) predefined_veryfine :: Double predefined_fine :: Double predefined_medium :: Double predefined_thick :: Double predefined_verythick :: Double predefined_RULING_MARGIN_COLOR :: (Double, Double, Double, Double) predefined_RULING_COLOR :: (Double, Double, Double, Double) predefined_RULING_THICKNESS :: Double predefined_RULING_LEFTMARGIN :: Double predefined_RULING_TOPMARGIN :: Double predefined_RULING_SPACING :: Double predefined_RULING_BOTTOMMARGIN :: Double predefined_RULING_GRAPHSPACING :: Double module Text.Xournal.Parse.Zlib ungzipXoj :: MonadIO m => Enumerator ByteString m a module Text.Xournal.Type class IStroke a strokeTool :: IStroke a => a -> ByteString strokeColor :: IStroke a => a -> ByteString strokeWidth :: IStroke a => a -> Double strokeData :: IStroke a => a -> [Pair Double Double] class IStroke (TStroke a) => ILayer a where { type family TStroke a :: *; } layerStrokes :: ILayer a => a -> [TStroke a] class ILayer (TLayer a) => IPage a where { type family TLayer a :: *; } pageDim :: IPage a => a -> Dimension pageBkg :: IPage a => a -> Background pageLayers :: IPage a => a -> [TLayer a] class IPage (TPage a) => IXournal a where { type family TPage a :: *; } xournalPages :: IXournal a => a -> [TPage a] type Title = ByteString data Stroke Stroke :: !ByteString -> !ByteString -> !Double -> ![Pair Double Double] -> Stroke stroke_tool :: Stroke -> !ByteString stroke_color :: Stroke -> !ByteString stroke_width :: Stroke -> !Double stroke_data :: Stroke -> ![Pair Double Double] data Dimension Dim :: !Double -> !Double -> Dimension dim_width :: Dimension -> !Double dim_height :: Dimension -> !Double data Background Background :: !ByteString -> !ByteString -> !ByteString -> Background bkg_type :: Background -> !ByteString bkg_color :: Background -> !ByteString bkg_style :: Background -> !ByteString data Xournal Xournal :: !Title -> ![Page] -> Xournal xoj_title :: Xournal -> !Title xoj_pages :: Xournal -> ![Page] data Page Page :: !Dimension -> !Background -> ![Layer] -> Page page_dim :: Page -> !Dimension page_bkg :: Page -> !Background page_layers :: Page -> ![Layer] data Layer Layer :: ![Stroke] -> Layer layer_strokes :: Layer -> ![Stroke] emptyXournal :: Xournal defaultBackground :: Background defaultLayer :: Layer defaultPage :: Page defaultXournal :: Xournal instance Show Stroke instance Show Dimension instance Show Background instance Show Layer instance Show Page instance Show Xournal instance IXournal Xournal instance IPage Page instance ILayer Layer instance IStroke Stroke module Text.Xournal.Parse skipSpaces :: Parser () trim_starting_space :: Parser () langle :: Parser Char rangle :: Parser Char xmlheader :: Parser ByteString headercontentWorker :: ByteString -> Parser ByteString headercontent :: Parser ByteString stroketagopen :: Parser Stroke stroketagclose :: Parser ByteString onestroke :: Parser Stroke trim :: Parser () parser_xournal :: Parser Xournal xournal :: Parser Xournal page :: Parser Page layer :: Parser Layer title :: Parser ByteString titleheader :: Parser ByteString titleclose :: Parser ByteString preview :: Parser () previewheader :: Parser ByteString previewclose :: Parser ByteString xournalheader :: Parser ByteString xournalheaderstart :: Parser ByteString xournalheaderend :: Parser Char xournalclose :: Parser ByteString pageheader :: Parser Dimension pageheaderstart :: Parser ByteString pageheaderend :: Parser Char pageclose :: Parser ByteString layerheader :: Parser ByteString layerclose :: Parser ByteString background :: Parser Background alphabet :: Parser ByteString alphanumsharp :: Parser ByteString backgroundheader :: Parser ByteString backgroundclose :: Parser ByteString iter_xournal :: Iteratee ByteString IO Xournal read_xournal :: String -> IO Xournal read_xojgz :: String -> IO Xournal cat_xournalgz :: String -> IO ()