{-# LANGUAGE DeriveDataTypeable #-}{-# LINE 2 "./Graphics/UI/Gtk/Poppler/Enums.chs" #-}-- GIMP Toolkit (GTK) Binding for Haskell: binding to poppler -*-haskell-*----- Author : Andy Stewart-- Created: 18-Jun-2010---- Copyright (c) 2010 Andy Stewart---- This library is free software: you can redistribute it and/or-- modify it under the terms of the GNU Lesser General Public License-- as published by the Free Software Foundation, either version 3 of-- the License, or (at your option) any later version.---- This library is distributed in the hope that it will be useful,-- but WITHOUT ANY WARRANTY; without even the implied warranty of-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU-- Lesser General Public License for more details.---- You should have received a copy of the GNU Lesser General Public-- License along with this program. If not, see-- <http:---- POPPLER, the C library which this Haskell library depends on, is-- available under LGPL Version 2. The documentation included with-- this library is based on the original POPPLER documentation.---- | Maintainer : gtk2hs-devel@lists.sourceforge.net-- Stability : alpha-- Portability : portable (depends on GHC)moduleGraphics.UI.Gtk.Poppler.Enums(-- * EnumsError(..),Orientation(..),SelectionStyle(..),PageTransitionType(..),PageTransitionAlignment(..),PageTransitionDirection(..),Backend(..),PageLayout(..),PageMode(..),FontType(..),ViewerPreferences(..),Permissions(..),ActionType(..),DestType(..),FormButtonType(..),FormChoiceType(..),FormFieldType(..),FormTextType(..),)whereimportControl.MonadimportData.TypeableimportSystem.Glib.FFIimportSystem.Glib.FlagsimportSystem.Glib.GErrorimportSystem.Glib.GObjectimportSystem.Glib.UTFString{-# LINE 61 "./Graphics/UI/Gtk/Poppler/Enums.chs" #-}dataError=ErrorInvalid|ErrorEncrypted|ErrorOpenFile|ErrorBadCatalog|ErrorDamagedderiving(Enum,Eq,Ord,Bounded,Show,Typeable){-# LINE 63 "./Graphics/UI/Gtk/Poppler/Enums.chs" #-}dataOrientation=OrientationPortrait|OrientationLandscape|OrientationUpsidedown|OrientationSeascapederiving(Enum,Eq,Ord,Bounded,Show,Typeable){-# LINE 64 "./Graphics/UI/Gtk/Poppler/Enums.chs" #-}dataSelectionStyle=SelectionGlyph|SelectionWord|SelectionLinederiving(Enum,Eq,Ord,Bounded,Show,Typeable){-# LINE 65 "./Graphics/UI/Gtk/Poppler/Enums.chs" #-}dataPageTransitionType=PageTransitionReplace|PageTransitionSplit|PageTransitionBlinds|PageTransitionBox|PageTransitionWipe|PageTransitionDissolve|PageTransitionGlitter|PageTransitionFly|PageTransitionPush|PageTransitionCover|PageTransitionUncover|PageTransitionFadederiving(Enum,Eq,Ord,Bounded,Show,Typeable){-# LINE 66 "./Graphics/UI/Gtk/Poppler/Enums.chs" #-}dataPageTransitionAlignment=PageTransitionHorizontal|PageTransitionVerticalderiving(Enum,Eq,Ord,Bounded,Show,Typeable){-# LINE 67 "./Graphics/UI/Gtk/Poppler/Enums.chs" #-}dataPageTransitionDirection=PageTransitionInward|PageTransitionOutwardderiving(Enum,Eq,Ord,Bounded,Show,Typeable){-# LINE 68 "./Graphics/UI/Gtk/Poppler/Enums.chs" #-}dataBackend=BackendUnknown|BackendSplash|BackendCairoderiving(Enum,Eq,Ord,Bounded,Show,Typeable){-# LINE 69 "./Graphics/UI/Gtk/Poppler/Enums.chs" #-}dataPageLayout=PageLayoutUnset|PageLayoutSinglePage|PageLayoutOneColumn|PageLayoutTwoColumnLeft|PageLayoutTwoColumnRight|PageLayoutTwoPageLeft|PageLayoutTwoPageRightderiving(Enum,Eq,Ord,Bounded,Show,Typeable){-# LINE 71 "./Graphics/UI/Gtk/Poppler/Enums.chs" #-}dataPageMode=PageModeUnset|PageModeNone|PageModeUseOutlines|PageModeUseThumbs|PageModeFullScreen|PageModeUseOc|PageModeUseAttachmentsderiving(Enum,Eq,Ord,Bounded,Show,Typeable){-# LINE 72 "./Graphics/UI/Gtk/Poppler/Enums.chs" #-}dataFontType=FontTypeUnknown|FontTypeType1|FontTypeType1c|FontTypeType1cot|FontTypeType3|FontTypeTruetype|FontTypeTruetypeot|FontTypeCidType0|FontTypeCidType0c|FontTypeCidType0cot|FontTypeCidType2|FontTypeCidType2otderiving(Enum,Eq,Ord,Bounded,Show,Typeable){-# LINE 73 "./Graphics/UI/Gtk/Poppler/Enums.chs" #-}dataViewerPreferences=ViewerPreferencesUnset|ViewerPreferencesHideToolbar|ViewerPreferencesHideMenubar|ViewerPreferencesHideWindowui|ViewerPreferencesFitWindow|ViewerPreferencesCenterWindow|ViewerPreferencesDisplayDocTitle|ViewerPreferencesDirectionRtlderiving(Eq,Ord,Bounded,Show,Typeable)instanceEnumViewerPreferenceswherefromEnumViewerPreferencesUnset=0fromEnumViewerPreferencesHideToolbar=1fromEnumViewerPreferencesHideMenubar=2fromEnumViewerPreferencesHideWindowui=4fromEnumViewerPreferencesFitWindow=8fromEnumViewerPreferencesCenterWindow=16fromEnumViewerPreferencesDisplayDocTitle=32fromEnumViewerPreferencesDirectionRtl=64toEnum0=ViewerPreferencesUnsettoEnum1=ViewerPreferencesHideToolbartoEnum2=ViewerPreferencesHideMenubartoEnum4=ViewerPreferencesHideWindowuitoEnum8=ViewerPreferencesFitWindowtoEnum16=ViewerPreferencesCenterWindowtoEnum32=ViewerPreferencesDisplayDocTitletoEnum64=ViewerPreferencesDirectionRtltoEnumunmatched=error("ViewerPreferences.toEnum: Cannot match "++showunmatched)succViewerPreferencesUnset=ViewerPreferencesHideToolbarsuccViewerPreferencesHideToolbar=ViewerPreferencesHideMenubarsuccViewerPreferencesHideMenubar=ViewerPreferencesHideWindowuisuccViewerPreferencesHideWindowui=ViewerPreferencesFitWindowsuccViewerPreferencesFitWindow=ViewerPreferencesCenterWindowsuccViewerPreferencesCenterWindow=ViewerPreferencesDisplayDocTitlesuccViewerPreferencesDisplayDocTitle=ViewerPreferencesDirectionRtlsucc_=undefinedpredViewerPreferencesHideToolbar=ViewerPreferencesUnsetpredViewerPreferencesHideMenubar=ViewerPreferencesHideToolbarpredViewerPreferencesHideWindowui=ViewerPreferencesHideMenubarpredViewerPreferencesFitWindow=ViewerPreferencesHideWindowuipredViewerPreferencesCenterWindow=ViewerPreferencesFitWindowpredViewerPreferencesDisplayDocTitle=ViewerPreferencesCenterWindowpredViewerPreferencesDirectionRtl=ViewerPreferencesDisplayDocTitlepred_=undefinedenumFromToxy|fromEnumx==fromEnumy=[y]|otherwise=x:enumFromTo(succx)yenumFromx=enumFromToxViewerPreferencesDirectionRtlenumFromThen__=error"Enum ViewerPreferences: enumFromThen not implemented"enumFromThenTo___=error"Enum ViewerPreferences: enumFromThenTo not implemented"{-# LINE 74 "./Graphics/UI/Gtk/Poppler/Enums.chs" #-}dataPermissions=PermissionsOkToPrint|PermissionsOkToModify|PermissionsOkToCopy|PermissionsOkToAddNotes|PermissionsOkToFillForm|PermissionsFullderiving(Eq,Ord,Bounded,Show,Typeable)instanceEnumPermissionswherefromEnumPermissionsOkToPrint=1fromEnumPermissionsOkToModify=2fromEnumPermissionsOkToCopy=4fromEnumPermissionsOkToAddNotes=8fromEnumPermissionsOkToFillForm=16fromEnumPermissionsFull=31toEnum1=PermissionsOkToPrinttoEnum2=PermissionsOkToModifytoEnum4=PermissionsOkToCopytoEnum8=PermissionsOkToAddNotestoEnum16=PermissionsOkToFillFormtoEnum31=PermissionsFulltoEnumunmatched=error("Permissions.toEnum: Cannot match "++showunmatched)succPermissionsOkToPrint=PermissionsOkToModifysuccPermissionsOkToModify=PermissionsOkToCopysuccPermissionsOkToCopy=PermissionsOkToAddNotessuccPermissionsOkToAddNotes=PermissionsOkToFillFormsuccPermissionsOkToFillForm=PermissionsFullsucc_=undefinedpredPermissionsOkToModify=PermissionsOkToPrintpredPermissionsOkToCopy=PermissionsOkToModifypredPermissionsOkToAddNotes=PermissionsOkToCopypredPermissionsOkToFillForm=PermissionsOkToAddNotespredPermissionsFull=PermissionsOkToFillFormpred_=undefinedenumFromToxy|fromEnumx==fromEnumy=[y]|otherwise=x:enumFromTo(succx)yenumFromx=enumFromToxPermissionsFullenumFromThen__=error"Enum Permissions: enumFromThen not implemented"enumFromThenTo___=error"Enum Permissions: enumFromThenTo not implemented"{-# LINE 75 "./Graphics/UI/Gtk/Poppler/Enums.chs" #-}dataActionType=ActionUnknown|ActionNone|ActionGotoDest|ActionGotoRemote|ActionLaunch|ActionUri|ActionNamed|ActionMoviederiving(Enum,Eq,Ord,Bounded,Show,Typeable){-# LINE 76 "./Graphics/UI/Gtk/Poppler/Enums.chs" #-}dataDestType=DestUnknown|DestXyz|DestFit|DestFith|DestFitv|DestFitr|DestFitb|DestFitbh|DestFitbv|DestNamedderiving(Enum,Eq,Ord,Bounded,Show,Typeable){-# LINE 77 "./Graphics/UI/Gtk/Poppler/Enums.chs" #-}dataFormButtonType=FormButtonPush|FormButtonCheck|FormButtonRadioderiving(Enum,Eq,Ord,Bounded,Show,Typeable){-# LINE 78 "./Graphics/UI/Gtk/Poppler/Enums.chs" #-}dataFormChoiceType=FormChoiceCombo|FormChoiceListderiving(Enum,Eq,Ord,Bounded,Show,Typeable){-# LINE 79 "./Graphics/UI/Gtk/Poppler/Enums.chs" #-}dataFormFieldType=FormFieldUnknown|FormFieldButton|FormFieldText|FormFieldChoice|FormFieldSignaturederiving(Enum,Eq,Ord,Bounded,Show,Typeable){-# LINE 80 "./Graphics/UI/Gtk/Poppler/Enums.chs" #-}dataFormTextType=FormTextNormal|FormTextMultiline|FormTextFileSelectderiving(Enum,Eq,Ord,Bounded,Show,Typeable){-# LINE 81 "./Graphics/UI/Gtk/Poppler/Enums.chs" #-}