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

Last change on this file since 99 was 99, checked in by Eugene Romanenko, 15 years ago

Internationalize 'embedded' values

File size: 4.8 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
69#define LU_FONTEMBED_NOT_EMBEDDED               0
70#define LU_FONTEMBED_EMBEDDED                   1
71#define LU_FONTEMBED_EMBEDDED_SUBSET    2
72
73struct LuFontInfo
74{
75        char  *name;
76        char  *type;
77        short embedded;
78};
79
80       
81#define LU_DOCUMENT_LAYOUT_SINGLE_PAGE       0
82#define LU_DOCUMENT_LAYOUT_ONE_COLUMN        1
83#define LU_DOCUMENT_LAYOUT_TWO_COLUMN_LEFT   2
84#define LU_DOCUMENT_LAYOUT_TWO_COLUMN_RIGHT  3
85#define LU_DOCUMENT_LAYOUT_TWO_PAGE_LEFT     4
86#define LU_DOCUMENT_LAYOUT_TWO_PAGE_RIGHT    5
87
88       
89#define LU_DOCUMENT_MODE_NONE             0
90#define LU_DOCUMENT_MODE_USE_OC           1
91#define LU_DOCUMENT_MODE_USE_THUMBS       2
92#define LU_DOCUMENT_MODE_FULL_SCREEN      3
93#define LU_DOCUMENT_MODE_USE_ATTACHMENTS  4
94#define LU_DOCUMENT_MODE_PRESENTATION     LU_DOCUMENT_MODE_FULL_SCREEN
95
96
97#define LU_DOCUMENT_UI_HINT_HIDE_TOOLBAR       0x0001
98#define LU_DOCUMENT_UI_HINT_HIDE_MENUBAR       0x0002
99#define LU_DOCUMENT_UI_HINT_HIDE_WINDOWUI      0x0004
100#define LU_DOCUMENT_UI_HINT_FIT_WINDOW         0x0008
101#define LU_DOCUMENT_UI_HINT_CENTER_WINDOW      0x0010
102#define LU_DOCUMENT_UI_HINT_DISPLAY_DOC_TITLE  0x0020
103#define LU_DOCUMENT_UI_HINT_DIRECTION_RTL      0x0040
104
105
106
107#define LU_DOCUMENT_PERMISSIONS_OK_TO_PRINT      0x0001
108#define LU_DOCUMENT_PERMISSIONS_OK_TO_MODIFY     0x0002
109#define LU_DOCUMENT_PERMISSIONS_OK_TO_COPY       0x0004
110#define LU_DOCUMENT_PERMISSIONS_OK_TO_ADD_NOTES  0x0008
111#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)
112
113
114#define LU_DOCUMENT_INFO_TITLE          0x0001
115#define LU_DOCUMENT_INFO_FORMAT         0x0002
116#define LU_DOCUMENT_INFO_AUTHOR         0x0004
117#define LU_DOCUMENT_INFO_SUBJECT        0x0008
118#define LU_DOCUMENT_INFO_KEYWORDS       0x0010
119#define LU_DOCUMENT_INFO_LAYOUT         0x0020
120#define LU_DOCUMENT_INFO_CREATOR        0x0040
121#define LU_DOCUMENT_INFO_PRODUCER       0x0080
122#define LU_DOCUMENT_INFO_CREATION_DATE  0x0100
123#define LU_DOCUMENT_INFO_MOD_DATE       0x0200
124#define LU_DOCUMENT_INFO_LINEARIZED     0x0400
125#define LU_DOCUMENT_INFO_START_MODE     0x0800
126#define LU_DOCUMENT_INFO_UI_HINTS       0x1000
127#define LU_DOCUMENT_INFO_PERMISSIONS    0x2000
128#define LU_DOCUMENT_INFO_N_PAGES        0x4000
129#define LU_DOCUMENT_INFO_SECURITY       0x8000
130
131
132struct LuDocumentInfo
133{
134        char *title;
135        char *format;
136        char *author;
137        char *subject;
138        char *keywords;
139        char *creator;
140        char *producer;
141        long security;
142        long linearized;
143        unsigned long creation_date;
144        unsigned long modified_date;
145        unsigned long layout;
146        unsigned long mode;
147        unsigned long ui_hints;
148        unsigned long permissions;
149        long n_pages;
150
151        // Mask of all valid fields
152        unsigned long fields_mask;
153};
154
155#ifndef __SOMIDL__
156typedef long (_System *_asynchCallbackFn)( void *data );
157//typedef _asynchCallbackFn *asynchCallbackFn;
158#endif
159
160#endif // lutypes_h
Note: See TracBrowser for help on using the repository browser.