suppress output from the fixup stages
[AROS-Contrib.git] / vpdf / application.h
blobc20b2810eae00f0aede44d1d63641469ff0d1d57
1 #ifndef APPLICATION_MCC_H
2 #define APPLICATION_MCC_H
4 #include "mcc/classes.h"
6 #define MUIA_VPDF_Renderer (MUIA_VPDF_TagBase + 1)
7 #define MUIA_VPDF_Locked (MUIA_VPDF_TagBase + 2)
9 #define MUIM_VPDF_OpenFile (MUIM_VPDF_Dummy + 1)
10 #define MUIM_VPDF_CreateTab (MUIM_VPDF_Dummy + 2)
11 #define MUIM_VPDF_CreateWindow (MUIM_VPDF_Dummy + 3)
12 #define MUIM_VPDF_HandleAppMessage (MUIM_VPDF_Dummy + 4)
13 #define MUIM_VPDF_RequestFile (MUIM_VPDF_Dummy + 5)
14 #define MUIM_VPDF_OpenRecentFile (MUIM_VPDF_Dummy + 6)
15 #define MUIM_VPDF_FindWindowByID (MUIM_VPDF_Dummy + 7)
16 #define MUIM_VPDF_FindActiveWindow (MUIM_VPDF_Dummy + 8)
17 #define MUIM_VPDF_CloseWindow (MUIM_VPDF_Dummy + 9)
18 #define MUIM_VPDF_LogMessage (MUIM_VPDF_Dummy + 10)
19 #define MUIM_VPDF_NewActiveWindow (MUIM_VPDF_Dummy + 11)
20 #define MUIM_VPDF_SettingsUse (MUIM_VPDF_Dummy + 12)
21 #define MUIM_VPDF_SettingsSave (MUIM_VPDF_Dummy + 13)
22 #define MUIM_VPDF_SettingsCancel (MUIM_VPDF_Dummy + 14)
23 #define MUIM_VPDF_SettingsApply (MUIM_VPDF_Dummy + 15)
24 #define MUIM_VPDF_About (MUIM_VPDF_Dummy + 16)
25 #define MUIM_VPDF_PrintDocument (MUIM_VPDF_Dummy + 17)
26 #define MUIM_VPDF_SelectionCopy (MUIM_VPDF_Dummy + 18)
28 struct MUIP_VPDF_OpenFile{ULONG MethodID; int windowid; char *filename; int mode;}; // mode is MUIV_VPDFWindow_OpenFile_XXX
29 struct MUIP_VPDF_CreateTab{ULONG MethodID; int windowid;};
30 struct MUIP_VPDF_CreateWindow{ULONG MethodID;};
32 struct MUIP_VPDF_RequestFile{ULONG MethodID; int mode; char *initialfile; char *initialdir; char *initialpath;};
33 struct MUIP_VPDF_OpenRecentFile{ULONG MethodID; int windowid; int idx;};
34 struct MUIP_VPDF_FindWindowByID{ULONG MethodID; int windowid;};
35 struct MUIP_VPDF_FindActiveWindow{ULONG MethodID;};
36 struct MUIP_VPDF_HandleAppMessage{ULONG MethodID; int windowid; APTR appmessage;};
37 struct MUIP_VPDF_CloseWindow{ULONG MethodID; int windowid;};
38 struct MUIP_VPDF_LogMessage{ULONG MethodID; int severity; char *message;};
39 struct MUIP_VPDF_NewActiveWindow{ULONG MethodID; Object *window;};
40 struct MUIP_VPDF_SettingsUse{ULONG MethodID;};
41 struct MUIP_VPDF_SettingsSave{ULONG MethodID;};
42 struct MUIP_VPDF_SettingsCancel{ULONG MethodID;};
43 struct MUIP_VPDF_SettingsApply{ULONG MethodID; int sgroup;};
44 struct MUIP_VPDF_About{ULONG MethodID; int sgroup;};
45 struct MUIP_VPDF_PrintDocument{ULONG MethodID;};
46 struct MUIP_VPDF_SelectionCopy{ULONG MethodID;};
48 #define MUIV_VPDF_RequestFile_Load 1
49 #define MUIV_VPDF_RequestFile_Save 2
50 #define MUIV_VPDF_RequestFile_DirectoryOnly 4
52 #define MUIV_VPDF_FindWindowByID_Active 0
53 #define MUIV_VPDF_FindWindowByID_First -1
55 #define MUIV_VPDF_LogMessage_Message 0
56 #define MUIV_VPDF_LogMessage_Warning 1
57 #define MUIV_VPDF_LogMessage_Error 2
59 #if defined(__AROS__)
60 #define VPDFObject BOOPSIOBJMACRO_START(getVPDFClass())
61 #else
62 #define VPDFObject NewObject(getVPDFClass(), NULL
63 #endif
64 DEFCLASS(VPDF);
66 enum
68 ID_VPDF_RECENT0 = 1000 /* keep it last entry */
71 #endif