1
/***************************************************************************
2
okularhandlers.cpp - Okular specific marshallers
4
begin : Thurs May 29 2008
5
copyright : (C) 2008 by Richard Dale
6
email : Richard_Dale@tipitina.demon.co.uk
7
***************************************************************************/
9
/***************************************************************************
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
16
***************************************************************************/
21
#include <smokeruby.h>
22
#include <marshall_macros.h>
24
#include <okular/core/annotations.h>
25
#include <okular/core/area.h>
26
#include <okular/core/document.h>
27
#include <okular/core/form.h>
28
#include <okular/core/generator.h>
29
#include <okular/core/page.h>
30
#include <okular/core/pagesize.h>
31
#include <okular/core/pagetransition.h>
33
// DEF_LINKED_VALUELIST_MARSHALLER( OkularAnnotationRevisionLinkedList, QLinkedList<Okular::Annotation::Revision>, Okular::Annotation::Revision )
34
DEF_LINKED_VALUELIST_MARSHALLER( OkularNormalizedPointLinkedList, QLinkedList<Okular::NormalizedPoint>, Okular::NormalizedPoint )
36
DEF_LINKED_LIST_MARSHALLER( OkularAnnotationLinkedList, QLinkedList<Okular::Annotation*>, Okular::Annotation )
37
DEF_LINKED_LIST_MARSHALLER( OkularFormFieldLinkedList, QLinkedList<Okular::FormField*>, Okular::FormField )
38
DEF_LINKED_LIST_MARSHALLER( OkularObjectRectLinkedList, QLinkedList<Okular::ObjectRect*>, Okular::ObjectRect )
39
DEF_LINKED_LIST_MARSHALLER( OkularPixmapRequestLinkedList, QLinkedList<Okular::PixmapRequest*>, Okular::PixmapRequest )
40
DEF_LINKED_LIST_MARSHALLER( OkularSourceRefObjectRectLinkedList, QLinkedList<Okular::SourceRefObjectRect*>, Okular::SourceRefObjectRect )
42
DEF_VALUELIST_MARSHALLER( OkularExportFormatList, QList<Okular::ExportFormat>, Okular::ExportFormat )
43
DEF_VALUELIST_MARSHALLER( OkularHighlightAnnotationQuadList, QList<Okular::HighlightAnnotation::Quad>, Okular::HighlightAnnotation::Quad )
45
DEF_LIST_MARSHALLER( OkularAnnotationList, QList<Okular::Annotation*>, Okular::Annotation )
46
DEF_LIST_MARSHALLER( OkularEmbeddedFileList, QList<Okular::EmbeddedFile*>, Okular::EmbeddedFile )
47
DEF_LIST_MARSHALLER( OkularPageList, QVector<Okular::Page*>, Okular::Page )
48
DEF_LIST_MARSHALLER( OkularVisiblePageRectList, QVector<Okular::VisiblePageRect*>, Okular::VisiblePageRect )
50
TypeHandler Okular_handlers[] = {
51
{ "QLinkedList<Okular::Annotation*>", marshall_OkularAnnotationLinkedList },
52
// { "QLinkedList<Okular::Annotation::Revision>&", marshall_OkularAnnotationRevisionLinkedList },
53
{ "QLinkedList<Okular::FormField*>", marshall_OkularFormFieldLinkedList },
54
{ "QLinkedList<Okular::FormField*>&", marshall_OkularFormFieldLinkedList },
55
{ "QLinkedList<Okular::NormalizedPoint>", marshall_OkularNormalizedPointLinkedList },
56
{ "QLinkedList<Okular::NormalizedPoint>&", marshall_OkularNormalizedPointLinkedList },
57
{ "QLinkedList<Okular::ObjectRect*>&", marshall_OkularObjectRectLinkedList },
58
{ "QLinkedList<Okular::PixmapRequest*>&", marshall_OkularPixmapRequestLinkedList },
59
{ "QLinkedList<Okular::SourceRefObjectRect*>&", marshall_OkularSourceRefObjectRectLinkedList },
60
{ "QList<Okular::Annotation*>&", marshall_OkularAnnotationList },
61
{ "QList<Okular::EmbeddedFile*>*", marshall_OkularEmbeddedFileList },
62
{ "QList<Okular::ExportFormat>", marshall_OkularExportFormatList },
63
{ "QList<Okular::HighlightAnnotation::Quad>&", marshall_OkularHighlightAnnotationQuadList },
64
// { "QList<QLinkedList<Okular::NormalizedPoint> >", marshall_QLinkedList<OkularNormalizedPoint> List },
65
// { "QList<QLinkedList<Okular::NormalizedPoint> >&", marshall_QLinkedList<OkularNormalizedPoint> List },
66
{ "QVector<Okular::Page*>&", marshall_OkularPageList },
67
{ "QVector<Okular::VisiblePageRect*>&", marshall_OkularVisiblePageRectList },