~kubuntu-members/korundum/4.11

« back to all changes in this revision

Viewing changes to korundum/modules/okular/okularhandlers.cpp

  • Committer: Ian Monroe
  • Date: 2010-11-21 15:55:01 UTC
  • Revision ID: git-v1:c37670e4e3c59f5eb2ba112f5341a5e706217f6f
Split up Smoke into Qt and KDE directories. 
Move libsmoke stuff into the generator directory
Split up Ruby into qtruby and korundum directories

svn path=/trunk/KDE/kdebindings/ruby/; revision=1199320

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
                          okularhandlers.cpp  -  Okular specific marshallers
 
3
                             -------------------
 
4
    begin                : Thurs May 29 2008
 
5
    copyright            : (C) 2008 by Richard Dale
 
6
    email                : Richard_Dale@tipitina.demon.co.uk
 
7
 ***************************************************************************/
 
8
 
 
9
/***************************************************************************
 
10
 *                                                                         *
 
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.                                   *
 
15
 *                                                                         *
 
16
 ***************************************************************************/
 
17
 
 
18
#include <ruby.h>
 
19
 
 
20
#include <qtruby.h>
 
21
#include <smokeruby.h>
 
22
#include <marshall_macros.h>
 
23
 
 
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>
 
32
 
 
33
// DEF_LINKED_VALUELIST_MARSHALLER( OkularAnnotationRevisionLinkedList, QLinkedList<Okular::Annotation::Revision>, Okular::Annotation::Revision )
 
34
DEF_LINKED_VALUELIST_MARSHALLER( OkularNormalizedPointLinkedList, QLinkedList<Okular::NormalizedPoint>, Okular::NormalizedPoint )
 
35
 
 
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 )
 
41
 
 
42
DEF_VALUELIST_MARSHALLER( OkularExportFormatList, QList<Okular::ExportFormat>, Okular::ExportFormat )
 
43
DEF_VALUELIST_MARSHALLER( OkularHighlightAnnotationQuadList, QList<Okular::HighlightAnnotation::Quad>, Okular::HighlightAnnotation::Quad )
 
44
 
 
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 )
 
49
 
 
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 },
 
68
    { 0, 0 }
 
69
};