File: webview_constants.cpp

package info (click to toggle)
libwx-perl 1%3A0.9909-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 3,912 kB
  • sloc: cpp: 9,728; perl: 8,182; ansic: 626; makefile: 41
file content (62 lines) | stat: -rw-r--r-- 1,777 bytes parent folder | download
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
/////////////////////////////////////////////////////////////////////////////
// Name:        webview_constants.cpp
// Purpose:     wxWebView constants
// Author:      Mark Dootson
// SVN ID:      $Id:  $
// Copyright:   (c) 2012 Mattia barbon
// Licence:     This program is free software; you can redistribute it and/or
//              modify it under the same terms as Perl itself
/////////////////////////////////////////////////////////////////////////////

#include <cpp/constants.h>
#include <wx/webview.h>
#include <wx/webviewarchivehandler.h>

double webview_constant( const char* name, int arg )
{
    // !package: Wx
    // !parser: sub { $_[0] =~ m<^\s*r\w*\(\s*(\w+)\s*\);\s*(?://(.*))?$> }
    // !tag: webview
#define r( n ) \
    if( strEQ( name, #n ) ) \
        return n;

    WX_PL_CONSTANT_INIT();

    switch( fl )
    {
    case 'W':
        r( wxWEB_VIEW_ZOOM_TINY );
        r( wxWEB_VIEW_ZOOM_SMALL );
        r( wxWEB_VIEW_ZOOM_MEDIUM );
        r( wxWEB_VIEW_ZOOM_LARGE );
        r( wxWEB_VIEW_ZOOM_LARGEST );
        r( wxWEB_VIEW_ZOOM_TYPE_LAYOUT );
        r( wxWEB_VIEW_ZOOM_TYPE_TEXT );
        r( wxWEB_NAV_ERR_CONNECTION );
        r( wxWEB_NAV_ERR_CERTIFICATE );
        r( wxWEB_NAV_ERR_AUTH );
        r( wxWEB_NAV_ERR_SECURITY );
        r( wxWEB_NAV_ERR_NOT_FOUND );
        r( wxWEB_NAV_ERR_REQUEST );
        r( wxWEB_NAV_ERR_USER_CANCELLED );
        r( wxWEB_NAV_ERR_OTHER );
        r( wxWEB_VIEW_RELOAD_DEFAULT );
        r( wxWEB_VIEW_RELOAD_NO_CACHE );
        r( wxWEB_VIEW_BACKEND_DEFAULT );
        r( wxWEB_VIEW_BACKEND_WEBKIT );
        r( wxWEB_VIEW_BACKEND_IE );
          
        break;
    default:
        break;
    }

    
#undef r

  WX_PL_CONSTANT_CLEANUP();
}

wxPlConstants webview_module( &webview_constant );