1 //========================================================================
5 // Copyright 2005 Vijay Kumar B. <vijaykumar@bravegnu.org>
7 //========================================================================
14 #define SCROLLSPEED 20
15 #include "AROSSplashOutputDev.h"
16 #include <libraries/asl.h>
17 #include <proto/asl.h>
18 #include <proto/dos.h>
19 #include <proto/icon.h>
20 #include <proto/alib.h>
22 #include "SplashTypes.h"
24 #include <devices/rawkeycodes.h>
29 class AROSSplashOutputDev
;
34 AROSPDFApp(GString
*fileNameA
, GString
*ownerPWA
, GString
*userPWA
);
37 void OpenFile(GString
*fileNameA
, GString
*ownerPWA
, GString
*userPWA
);
40 GBool
isOk() { return ok
; };
41 static void redraw(AROSPDFApp
*data
);
44 bool isReady() { return ready
; };
47 Object
* getBM() { return Bmp
; };
48 void ResizeBitMap(int width
, int height
);
50 void RequestOpenFile();
51 void ZoomInOut(bool In
);
52 void PageForwardBack(bool Forward
);
53 void JumpToPage(int pageno
);
54 void JumpToPageTextbox();
55 void ZoomToFit(bool WidthOnly
);
56 void ToggleFitWidth() { FitWidth
=!FitWidth
; };
57 void ToggleBestFit() { BestFit
=!BestFit
; };
58 void ScrollUpDown(bool Down
);
59 void DisableBestFit();
60 void DisableFitWidth();
61 void EnableDisableGUI();
62 void ToggleFullscreen();
63 void BackFillFullScreen();
69 AROSSplashOutputDev
*splashOut
;
71 struct RastPort
* oldrp
;
82 GBool resLowLimit
, resHiLimit
;
83 Object
*wnd
, *muiapp
, *but
,*Bmp
,*vslider
,*hslider
, *txt
, *rct
,
84 *butFirst
,*butPrev
,*butNext
,*butLast
,*txtPage
, *txtPageCount
,
85 *menustrip
, *butZoomOut
, *butZoomIn
;
88 struct Screen
*fsscreen
;
89 struct Window
*fswindow
;
90 struct Screen
*origscreen
;
92 struct MUI_CustomClass
*mcc
;
93 struct DiskObject
*dobj
;