Fix for BCPL string handling.
[AROS-Contrib.git] / vpdf / window.h
blob8062deca4cb14db4569a151c64ae11a74e059254
1 #ifndef WINDOW_MCC_H
2 #define WINDOW_MCC_H
4 #include "mcc/classes.h"
6 #define MUIA_VPDFWindow_ID (MUIA_VPDFWindow_TagBase + 1)
7 #define MUIA_VPDFWindow_PDFDocument (MUIA_VPDFWindow_TagBase + 2) // [..G]
8 #define MUIA_VPDFWindow_ActiveDocumentView (MUIA_VPDFWindow_TagBase + 3) // [..G]
10 #define MUIM_VPDFWindow_OpenFile (MUIM_VPDF_Dummy + 1)
11 #define MUIM_VPDFWindow_CreateTab (MUIM_VPDF_Dummy + 2)
12 #define MUIM_VPDFWindow_HandleAppMessage (MUIM_VPDF_Dummy + 4)
13 #define MUIM_VPDFWindow_UpdateActive (MUIM_VPDF_Dummy + 5)
14 #define MUIM_VPDFWindow_DetachView (MUIM_VPDF_Dummy + 6)
15 #define MUIM_VPDFWindow_AttachView (MUIM_VPDF_Dummy + 7)
17 struct MUIP_VPDFWindow_OpenFile{ULONG MethodID; char *filename; int mode;};
18 struct MUIP_VPDFWindow_CreateTab{ULONG MethodID;};
19 struct MUIP_VPDFWindow_UpdateActive{ULONG MethodID; int active;};
20 struct MUIP_VPDFWindow_DetachView{ULONG MethodID; int tabind; Object *docview; Object *title;};
21 struct MUIP_VPDFWindow_AttachView{ULONG MethodID; int tabind; Object *docview; Object *title;};
23 #define MUIV_VPDFWindow_OpenFile_CurrentTab 0
24 #define MUIV_VPDFWindow_OpenFile_NewTab 1
25 #define MUIV_VPDFWindow_OpenFile_CurrentTabIfEmpty 2
27 #define MUIV_VPDFWindow_DetachView_Active -1
29 #define MUIV_VPDFWindow_AttachView_CurrentTabIfEmpty -1
31 #if defined(__AROS__)
32 #define VPDFWindowObject BOOPSIOBJMACRO_START(getVPDFWindowClass())
33 #define VPDFTitleButtonObject BOOPSIOBJMACRO_START(getVPDFTitleButtonClass())
34 #else
35 #define VPDFWindowObject NewObject(getVPDFWindowClass(), NULL
36 #define VPDFTitleButtonObject NewObject(getVPDFTitleButtonClass(), NULL
37 #endif
39 DEFCLASS(VPDFWindow);
40 DEFCLASS(VPDFTitleButton);
42 #endif