source: trunk/Lucide/SOURCE/plugins/ludoc/lutypes.h @ 47

Last change on this file since 47 was 35, checked in by Eugene Romanenko, 16 years ago

added licence block to source files

File size: 4.7 KB
Line 
1/* ***** BEGIN LICENSE BLOCK *****
2 * Version: CDDL 1.0/LGPL 2.1
3 *
4 * The contents of this file are subject to the COMMON DEVELOPMENT AND
5 * DISTRIBUTION LICENSE (CDDL) Version 1.0 (the "License"); you may not use
6 * this file except in compliance with the License. You may obtain a copy of
7 * the License at http://www.sun.com/cddl/
8 *
9 * Software distributed under the License is distributed on an "AS IS" basis,
10 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
11 * for the specific language governing rights and limitations under the
12 * License.
13 *
14 * The Initial Developer of the Original Code is
15 * Eugene Romanenko, netlabs.org.
16 * Portions created by the Initial Developer are Copyright (C) 2006
17 * the Initial Developer. All Rights Reserved.
18 *
19 * Contributor(s):
20 *
21 * Alternatively, the contents of this file may be used under the terms of
22 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
23 * in which case the provisions of the LGPL are applicable instead of those
24 * above. If you wish to allow use of your version of this file only under the
25 * terms of the LGPL, and not to allow others to use your version of this file
26 * under the terms of the CDDL, indicate your decision by deleting the
27 * provisions above and replace them with the notice and other provisions
28 * required by the LGPL. If you do not delete the provisions above, a recipient
29 * may use your version of this file under the terms of any one of the CDDL
30 * or the LGPL.
31 *
32 * ***** END LICENSE BLOCK ***** */
33
34
35#ifndef lutypes_h
36#define lutypes_h
37
38
39struct LuRectangle
40{ 
41        double x1;
42        double y1;
43        double x2;
44        double y2; 
45};
46
47
48#define LU_LINK_TYPE_TITLE         0
49#define LU_LINK_TYPE_PAGE          1
50#define LU_LINK_TYPE_EXTERNAL_URI  2
51
52
53struct LuLink
54{
55        char *title;
56        char *uri;
57        long type;
58        long page;
59};
60
61
62struct LuLinkMapping
63{
64        LuLink link;
65        LuRectangle area;
66};
67
68
69struct LuFontInfo
70{
71        char *name;
72        char *type;
73        char *embedded;
74};
75
76       
77#define LU_DOCUMENT_LAYOUT_SINGLE_PAGE       0
78#define LU_DOCUMENT_LAYOUT_ONE_COLUMN        1
79#define LU_DOCUMENT_LAYOUT_TWO_COLUMN_LEFT   2
80#define LU_DOCUMENT_LAYOUT_TWO_COLUMN_RIGHT  3
81#define LU_DOCUMENT_LAYOUT_TWO_PAGE_LEFT     4
82#define LU_DOCUMENT_LAYOUT_TWO_PAGE_RIGHT    5
83
84       
85#define LU_DOCUMENT_MODE_NONE             0
86#define LU_DOCUMENT_MODE_USE_OC           1
87#define LU_DOCUMENT_MODE_USE_THUMBS       2
88#define LU_DOCUMENT_MODE_FULL_SCREEN      3
89#define LU_DOCUMENT_MODE_USE_ATTACHMENTS  4
90#define LU_DOCUMENT_MODE_PRESENTATION     LU_DOCUMENT_MODE_FULL_SCREEN
91
92
93#define LU_DOCUMENT_UI_HINT_HIDE_TOOLBAR       0x0001
94#define LU_DOCUMENT_UI_HINT_HIDE_MENUBAR       0x0002
95#define LU_DOCUMENT_UI_HINT_HIDE_WINDOWUI      0x0004
96#define LU_DOCUMENT_UI_HINT_FIT_WINDOW         0x0008
97#define LU_DOCUMENT_UI_HINT_CENTER_WINDOW      0x0010
98#define LU_DOCUMENT_UI_HINT_DISPLAY_DOC_TITLE  0x0020
99#define LU_DOCUMENT_UI_HINT_DIRECTION_RTL      0x0040
100
101
102
103#define LU_DOCUMENT_PERMISSIONS_OK_TO_PRINT      0x0001
104#define LU_DOCUMENT_PERMISSIONS_OK_TO_MODIFY     0x0002
105#define LU_DOCUMENT_PERMISSIONS_OK_TO_COPY       0x0004
106#define LU_DOCUMENT_PERMISSIONS_OK_TO_ADD_NOTES  0x0008
107#define LU_DOCUMENT_PERMISSIONS_FULL  (LU_DOCUMENT_PERMISSIONS_OK_TO_PRINT|LU_DOCUMENT_PERMISSIONS_OK_TO_MODIFY|LU_DOCUMENT_PERMISSIONS_OK_TO_COPY|LU_DOCUMENT_PERMISSIONS_OK_TO_ADD_NOTES)
108
109
110#define LU_DOCUMENT_INFO_TITLE          0x0001
111#define LU_DOCUMENT_INFO_FORMAT         0x0002
112#define LU_DOCUMENT_INFO_AUTHOR         0x0004
113#define LU_DOCUMENT_INFO_SUBJECT        0x0008
114#define LU_DOCUMENT_INFO_KEYWORDS       0x0010
115#define LU_DOCUMENT_INFO_LAYOUT         0x0020
116#define LU_DOCUMENT_INFO_CREATOR        0x0040
117#define LU_DOCUMENT_INFO_PRODUCER       0x0080
118#define LU_DOCUMENT_INFO_CREATION_DATE  0x0100
119#define LU_DOCUMENT_INFO_MOD_DATE       0x0200
120#define LU_DOCUMENT_INFO_LINEARIZED     0x0400
121#define LU_DOCUMENT_INFO_START_MODE     0x0800
122#define LU_DOCUMENT_INFO_UI_HINTS       0x1000
123#define LU_DOCUMENT_INFO_PERMISSIONS    0x2000
124#define LU_DOCUMENT_INFO_N_PAGES        0x4000
125#define LU_DOCUMENT_INFO_SECURITY       0x8000
126
127
128struct LuDocumentInfo
129{
130        char *title;
131        char *format; /* eg, "pdf-1.5" */
132        char *author;
133        char *subject;
134        char *keywords;
135        char *creator;
136        char *producer;
137        long security;
138        long linearized;
139        unsigned long creation_date;
140        unsigned long modified_date;
141        unsigned long layout;
142        unsigned long mode;
143        unsigned long ui_hints;
144        unsigned long permissions;
145        long n_pages;
146
147        // Mask of all valid fields
148        unsigned long fields_mask;
149};
150
151#ifndef __SOMIDL__
152typedef long (_System *_asynchCallbackFn)( void *data );
153//typedef _asynchCallbackFn *asynchCallbackFn;
154#endif
155
156#endif // lutypes_h
Note: See TracBrowser for help on using the repository browser.