-
Notifications
You must be signed in to change notification settings - Fork 73
Expand file tree
/
Copy pathconstants.dart
More file actions
461 lines (419 loc) · 17.6 KB
/
Copy pathconstants.dart
File metadata and controls
461 lines (419 loc) · 17.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
/// Names of functions.
class Functions {
static const getPlatformVersion = "getPlatformVersion";
static const getVersion = "getVersion";
static const initialize = "initialize";
static const openDocument = "openDocument";
static const getSavedSignatures = "getSavedSignatures";
static const getSavedSignatureFolder = "getSavedSignatureFolder";
/// Android only
static const showMyToast = "showMyToast";
static const getSavedSignatureJpgFolder = "getSavedSignatureJpgFolder";
static const importAnnotations = "importAnnotations";
static const exportAnnotations = "exportAnnotations";
static const flattenAnnotations = "flattenAnnotations";
static const deleteAnnotations = "deleteAnnotations";
static const selectAnnotation = "selectAnnotation";
static const setFlagsForAnnotations = "setFlagsForAnnotations";
static const setPropertiesForAnnotation = "setPropertiesForAnnotation";
static const groupAnnotations = "groupAnnotations";
static const ungroupAnnotations = "ungroupAnnotations";
static const importAnnotationCommand = "importAnnotationCommand";
static const importBookmarkJson = "importBookmarkJson";
static const saveDocument = "saveDocument";
static const commitTool = "commitTool";
static const getPageCount = "getPageCount";
static const handleBackButton = "handleBackButton";
static const undo = "undo";
static const redo = "redo";
static const canUndo = "canUndo";
static const canRedo = "canRedo";
static const getPageCropBox = "getPageCropBox";
static const getPageRotation = "getPageRotation";
static const rotateClockwise = "rotateClockwise";
static const rotateCounterClockwise = "rotateCounterClockwise";
static const setCurrentPage = "setCurrentPage";
static const getDocumentPath = "getDocumentPath";
static const setToolMode = "setToolMode";
static const setValuesForFields = "setValuesForFields";
static const setFlagForFields = "setFlagForFields";
static const setLeadingNavButtonIcon = "setLeadingNavButtonIcon";
static const closeAllTabs = "closeAllTabs";
static const deleteAllAnnotations = "deleteAllAnnotations";
static const exportAsImage = "exportAsImage";
static const exportAsImageFromFilePath = "exportAsImageFromFilePath";
static const openAnnotationList = "openAnnotationList";
static const setRequestedOrientation = "setRequestedOrientation";
static const gotoPreviousPage = "gotoPreviousPage";
static const gotoNextPage = "gotoNextPage";
static const gotoFirstPage = "gotoFirstPage";
static const gotoLastPage = "gotoLastPage";
static const addBookmark = "addBookmark";
static const openBookmarkList = "openBookmarkList";
static const openOutlineList = "openOutlineList";
static const openLayersList = "openLayersList";
static const openThumbnailsView = "openThumbnailsView";
static const openRotateDialog = "openRotateDialog";
static const openAddPagesView = "openAddPagesView";
static const openViewSettings = "openViewSettings";
static const openCrop = "openCrop";
static const openManualCrop = "openManualCrop";
static const openSearch = "openSearch";
static const openTabSwitcher = "openTabSwitcher";
static const openGoToPageView = "openGoToPageView";
static const openNavigationLists = "openNavigationLists";
static const getCurrentPage = "getCurrentPage";
static const startSearchMode = "startSearchMode";
static const exitSearchMode = "exitSearchMode";
static const zoomWithCenter = "zoomWithCenter";
static const zoomToRect = "zoomToRect";
static const getZoom = "getZoom";
static const setZoomLimits = "setZoomLimits";
static const setBackgroundColor = "setBackgroundColor";
static const setDefaultPageColor = "setDefaultPageColor";
static const getScrollPos = "getScrollPos";
static const setHorizontalScrollPosition = "setHorizontalScrollPosition";
static const setVerticalScrollPosition = "setVerticalScrollPosition";
static const smartZoom = "smartZoom";
static const getVisiblePages = "getVisiblePages";
// Hygen Generated Methods
static const getAnnotationsOnPage = "getAnnotationsOnPage";
}
/// Parameters of functions.
class Parameters {
static const licenseKey = "licenseKey";
static const document = "document";
static const password = "password";
static const config = "config";
static const xfdfCommand = "xfdfCommand";
static const xfdf = "xfdf";
static const bookmarkJson = "bookmarkJson";
static const pageNumber = "pageNumber";
static const title = "title";
static const toolMode = "toolMode";
static const fieldNames = "fieldNames";
static const fields = "fields";
static const flag = "flag";
static const flagValue = "flagValue";
static const formsOnly = "formsOnly";
static const annotations = "annotations";
static const annotation = "annotation";
static const annotationsWithFlags = "annotationsWithFlags";
static const annotationProperties = "annotationProperties";
static const leadingNavButtonIcon = "leadingNavButtonIcon";
static const sourceRect = "sourceRect";
static const path = "path";
static const exportFormat = "exportFormat";
static const dpi = "dpi";
static const requestedOrientation = "requestedOrientation";
static const red = "red";
static const green = "green";
static const blue = "blue";
static const horizontalScrollPosition = "horizontalScrollPosition";
static const verticalScrollPosition = "verticalScrollPosition";
static const searchString = "searchString";
static const matchCase = "matchCase";
static const matchWholeWord = "matchWholeWord";
static const animated = "animated";
// Hygen Generated Method Parameters
}
/// Parameters of events.
class EventParameters {
static const action = "action";
static const annotations = "annotations";
static const xfdfCommand = "xfdfCommand";
static const data = "data";
static const longPressMenuItem = "longPressMenuItem";
static const longPressText = "longPressText";
static const annotationMenuItem = "annotationMenuItem";
static const previousPageNumber = "previousPageNumber";
static const pageNumber = "pageNumber";
}
/// Buttons for the viewer.
class Buttons {
static const viewControlsButton = 'viewControlsButton';
static const freeHandToolButton = 'freeHandToolButton';
static const highlightToolButton = 'highlightToolButton';
static const underlineToolButton = 'underlineToolButton';
static const squigglyToolButton = 'squigglyToolButton';
static const strikeoutToolButton = 'strikeoutToolButton';
static const rectangleToolButton = 'rectangleToolButton';
static const ellipseToolButton = 'ellipseToolButton';
static const lineToolButton = 'lineToolButton';
static const arrowToolButton = 'arrowToolButton';
static const polylineToolButton = 'polylineToolButton';
static const polygonToolButton = 'polygonToolButton';
static const cloudToolButton = 'cloudToolButton';
static const signatureToolButton = 'signatureToolButton';
static const freeTextToolButton = 'freeTextToolButton';
static const stickyToolButton = 'stickyToolButton';
static const calloutToolButton = 'calloutToolButton';
static const stampToolButton = 'stampToolButton';
static const toolsButton = 'toolsButton';
static const searchButton = 'searchButton';
static const shareButton = 'shareButton';
static const thumbnailsButton = 'thumbnailsButton';
static const listsButton = 'listsButton';
static const thumbnailSlider = 'thumbnailSlider';
static const saveCopyButton = 'saveCopyButton';
static const saveIdenticalCopyButton = 'saveIdenticalCopyButton';
static const saveFlattenedCopyButton = 'saveFlattenedCopyButton';
static const saveReducedCopyButton = 'saveReducedCopyButton';
static const saveCroppedCopyButton = 'saveCroppedCopyButton';
static const editPagesButton = 'editPagesButton';
static const printButton = 'printButton';
static const closeButton = 'closeButton';
static const fillAndSignButton = 'fillAndSignButton';
static const prepareFormButton = 'prepareFormButton';
static const outlineListButton = 'outlineListButton';
static const annotationListButton = 'annotationListButton';
static const userBookmarkListButton = 'userBookmarkListButton';
static const viewLayersButton = 'viewLayersButton';
static const editToolButton = 'editToolButton';
static const reflowModeButton = 'reflowModeButton';
static const editMenuButton = 'editMenuButton';
static const cropPageButton = 'cropPageButton';
static const moreItemsButton = 'moreItemsButton';
static const eraserButton = 'eraserButton';
static const undo = 'undo';
static const redo = 'redo';
static const showFileAttachmentButton = 'showFileAttachmentButton';
static const savePasswordCopyButton = 'savePasswordCopyButton';
/// Android only.
static const editAnnotationToolbarButton = 'editAnnotationToolButton';
}
/// Tools for the viewer.
class Tools {
static const annotationEdit = 'AnnotationEdit';
static const textSelect = 'TextSelect';
static const annotationCreateSticky = 'AnnotationCreateSticky';
static const annotationCreateFreeHand = 'AnnotationCreateFreeHand';
static const multiSelect = 'MultiSelect';
static const annotationCreateTextHighlight = 'AnnotationCreateTextHighlight';
static const annotationCreateTextUnderline = 'AnnotationCreateTextUnderline';
static const annotationCreateTextSquiggly = 'AnnotationCreateTextSquiggly';
static const annotationCreateTextStrikeout = 'AnnotationCreateTextStrikeout';
static const annotationCreateFreeText = 'AnnotationCreateFreeText';
static const annotationCreateCallout = 'AnnotationCreateCallout';
static const annotationCreateSignature = 'AnnotationCreateSignature';
static const annotationCreateLine = 'AnnotationCreateLine';
static const annotationCreateArrow = 'AnnotationCreateArrow';
static const annotationCreatePolyline = 'AnnotationCreatePolyline';
static const annotationCreateStamp = 'AnnotationCreateStamp';
static const annotationCreateRectangle = 'AnnotationCreateRectangle';
static const annotationCreateEllipse = 'AnnotationCreateEllipse';
static const annotationCreatePolygon = 'AnnotationCreatePolygon';
static const annotationCreatePolygonCloud = 'AnnotationCreatePolygonCloud';
static const annotationCreateDistanceMeasurement =
'AnnotationCreateDistanceMeasurement';
static const annotationCreatePerimeterMeasurement =
'AnnotationCreatePerimeterMeasurement';
static const annotationCreateAreaMeasurement =
'AnnotationCreateAreaMeasurement';
static const annotationCreateRectangleAreaMeasurement =
'AnnotationCreateRectangleAreaMeasurement';
static const annotationCreateSound = 'AnnotationCreateSound';
static const annotationCreateFreeHighlighter =
'AnnotationCreateFreeHighlighter';
static const annotationCreateRubberStamp = 'AnnotationCreateRubberStamp';
static const eraser = 'Eraser';
static const annotationCreateFileAttachment =
'AnnotationCreateFileAttachment';
static const annotationCreateRedaction = 'AnnotationCreateRedaction';
static const annotationCreateLink = 'AnnotationCreateLink';
static const annotationCreateRedactionText = 'AnnotationCreateRedactionText';
static const annotationCreateLinkText = 'AnnotationCreateLinkText';
static const formCreateTextField = 'FormCreateTextField';
static const formCreateCheckboxField = 'FormCreateCheckboxField';
static const formCreateSignatureField = 'FormCreateSignatureField';
static const formCreateRadioField = 'FormCreateRadioField';
static const formCreateComboBoxField = 'FormCreateComboBoxField';
static const formCreateListBoxField = 'FormCreateListBoxField';
/// iOS only.
static const pencilKitDrawing = 'PencilKitDrawing';
/// Android only.
static const annotationSmartPen = 'AnnotationSmartPen';
/// Android only.
static const annotationLasso = 'AnnotationLasso';
}
/// Fit modes in the viewer.
class FitModes {
static const fitPage = 'FitPage';
static const fitWidth = 'FitWidth';
static const fitHeight = 'FitHeight';
static const zoom = 'Zoom';
}
/// Layout modes in the viewer.
class LayoutModes {
static const single = 'Single';
static const continuous = 'Continuous';
static const facing = 'Facing';
static const facingContinuous = 'FacingContinuous';
static const facingCover = 'FacingCover';
static const facingCoverContinuous = 'FacingCoverContinuous';
}
/// Property flags for a form field.
class FieldFlags {
static const ReadOnly = 0;
static const Required = 1;
}
/// Filter modes in thumbnail browser.
class ThumbnailFilterModes {
static const annotated = "annotated";
static const bookmarked = "bookmarked";
}
/// Flags for any annotation in the document.
class AnnotationFlags {
static const hidden = "hidden";
static const invisible = "invisible";
static const locked = "locked";
static const lockedContents = "lockedContents";
static const noRotate = "noRotate";
static const noView = "noView";
static const noZoom = "noZoom";
static const print = "print";
static const readOnly = "readOnly";
static const toggleNoView = "toggleNoView";
}
/// Annotation properties.
class AnnotationProperties {
/// Not markup exclusive.
static const rect = "rect";
/// Not markup exclusive.
static const contents = "contents";
/// Not markup exclusive.
static const rotation = "rotation";
/// Markup exclusive.
static const subject = "subject";
/// Markup exclusive.
static const title = "title";
/// Markup exclusive.
static const contentRect = "contentRect";
}
/// User behaviors in the viewer.
class Behaviors {
static const linkPress = "linkPress";
}
/// Menu items that could show up upon long press on text or an empty area.
class LongPressMenuItems {
static const copy = "copy";
static const search = "search";
static const share = "share";
static const read = "read";
}
/// Menu items that could show up when an annotation is selected.
class AnnotationMenuItems {
static const style = "style";
static const note = "note";
static const copy = "copy";
static const delete = "delete";
static const flatten = "flatten";
static const editText = "editText";
static const editInk = "editInk";
static const search = "search";
static const share = "share";
static const markupType = "markupType";
static const read = "read";
static const screenCapture = "screenCapture";
static const playSound = "playSound";
static const openAttachment = "openAttachment";
static const calibrate = "calibrate";
static const group = "group";
static const ungroup = "ungroup";
}
/// Pre-designed toolbars for easier customization.
class DefaultToolbars {
static const view = "PDFTron_View";
static const annotate = "PDFTron_Annotate";
static const draw = "PDFTron_Draw";
static const insert = "PDFTron_Insert";
static const fillAndSign = "PDFTron_Fill_and_Sign";
static const prepareForm = "PDFTron_Prepare_Form";
static const measure = "PDFTron_Measure";
static const pens = "PDFTron_Pens";
static const redaction = "PDFTron_Redact";
static const favorite = "PDFTron_Favorite";
}
/// Zoom limits.
class ZoomLimitMode {
static const None = "none";
static const Absolute = "absolute";
static const Relative = "relative";
}
/// Default toolbar icons that can be used for creating custom toolbars.
class ToolbarIcons {
static const view = "PDFTron_View";
static const annotate = "PDFTron_Annotate";
static const draw = "PDFTron_Draw";
static const insert = "PDFTron_Insert";
static const fillAndSign = "PDFTron_Fill_and_Sign";
static const prepareForm = "PDFTron_Prepare_Form";
static const measure = "PDFTron_Measure";
static const pens = "PDFTron_Pens";
static const redaction = "PDFTron_Redact";
static const favorite = "PDFTron_Favorite";
}
/// The format for exporting PDF to images.
class ExportFormat {
static const BMP = "BMP";
static const JPEG = "JPEG";
static const PNG = "PNG";
}
/// The screen orientation of the viewer.
///
/// Android only.
class PTOrientation {
static const unspecified = -1;
static const landscape = 0;
static const portrait = 1;
static const sensorLandscape = 6;
static const sensorPortrait = 7;
static const reverseLandscape = 8;
static const reversePortrait = 9;
/// Only changes direction if user has enabled sensor-based rotation.
static const userLandscape = 11;
/// Only changes direction if user has enabled sensor-based rotation.
static const userPortrait = 12;
}
/// Items in the view mode dialog.
class ViewModePickerItem {
static const Crop = "viewModeCrop";
static const Rotation = "viewModeRotation";
static const ColorMode = "viewModeColorMode";
static const VerticalScrolling = "viewModeVerticalScrolling";
}
/// The type of eraser used in the viewer.
class DefaultEraserType {
/// Erases everything as an object; the entire object is erased when touched.
static const annotationEraser = "annotationEraser";
/// Erases ink by pixel, but other anntation types as objects.
static const hybrideEraser = "hybridEraser";
/// Erases ink by pixel only. Android only.
static const inkEraser = "inkEraser";
}
/// The scrolling direction of the viewer while in reflow mode.
///
/// Android only.
class ReflowOrientation {
static const horizontal = "horizontal";
static const vertical = "vertical";
}
/// The annotation manager's edit mode.
class AnnotationManagerEditMode {
/// Can edit only the user's own changes.
static const Own = "editModeOwn";
/// Can edit everyone's changes.
static const All = "editModeAll";
}
/// The annotation manager's undo mode.
class AnnotationManagerUndoMode {
/// Can undo only the user's own changes.
static const Own = "undoModeOwn";
/// Can undo everyone's changes.
static const All = "undoModeAll";
}
/// The alignment of annotation toolbars.
class ToolbarAlignment {
static const Start = "GravityStart";
static const End = "GravityEnd";
}