This file is indexed.

/usr/include/wx-3.0/wx/wxPython/i_files/_richtexthtml.i is in python-wxgtk3.0-dev 3.0.2.0+dfsg-7.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  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
/////////////////////////////////////////////////////////////////////////////
// Name:        _richtexthtml
// Purpose:     wxRichTextHTMLHandler
//
// Author:      Robin Dunn
//
// Created:     18-May-2007
// RCS-ID:      $Id$
// Copyright:   (c) 2007 by Total Control Software
// Licence:     wxWindows license
/////////////////////////////////////////////////////////////////////////////

// Not a %module


//---------------------------------------------------------------------------

%{
#include <wx/richtext/richtexthtml.h>
%}

//---------------------------------------------------------------------------
%newgroup

MAKE_CONST_WXSTRING2(HtmlName, wxT("HTML"));
MAKE_CONST_WXSTRING2(HtmlExt,  wxT("html"));

class wxRichTextHTMLHandler: public wxRichTextFileHandler
{
public:
    wxRichTextHTMLHandler(const wxString& name = wxPyHtmlName,
                          const wxString& ext = wxPyHtmlExt,
                          int type = wxRICHTEXT_TYPE_HTML);

    DocDeclStr(
        virtual bool , CanSave() const,
        "Can we save using this handler?", "");
    DocDeclStr(
        virtual bool , CanLoad() const,
        "Can we load using this handler?", "");
    DocDeclStr(
        virtual bool , CanHandle(const wxString& filename) const,
        "Can we handle this filename (if using files)? By default, checks the
extension.", "");
    

    DocDeclStr(
        void , SetTemporaryImageLocations(const wxArrayString& locations),
        "Set the list of image locations generated by the last operation", "");
    DocDeclStr(
        const wxArrayString& , GetTemporaryImageLocations() const,
        "Get the list of image locations generated by the last operation", "");
    %property(TemporaryImageLocations, GetTemporaryImageLocations, SetTemporaryImageLocations);

    

    DocDeclStr(
        void , ClearTemporaryImageLocations(),
        "Clear the image locations generated by the last operation", "");
    DocDeclStr(
        bool , DeleteTemporaryImages(),
        "Delete the in-memory or temporary files generated by the last operation", "");
    

//     DocDeclStr(
//         static bool , DeleteTemporaryImages(int flags, const wxArrayString& imageLocations),
//         "Delete the in-memory or temporary files generated by the last operation. This
// is a static function that can be used to delete the saved locations from an
// earlier operation, for example after the user has viewed the HTML file.", "");
    

    DocDeclStr(
        static void , SetFileCounter(int counter),
        "Reset the file counter, in case, for example, the same names are required each
time", "");
    

    DocDeclStr(
        void , SetTempDir(const wxString& tempDir),
        "Set the directory for storing temporary files. If empty, the system temporary
directory will be used.", "");
    DocDeclStr(
        const wxString& , GetTempDir() const,
        "Get the directory for storing temporary files. If empty, the system temporary
directory will be used.", "");
    %property(TempDir, GetTempDir, SetTempDir);

    
    DocDeclStr(
        void , SetFontSizeMapping(const wxArrayInt& fontSizeMapping),
        "Set mapping from point size to HTML font size. There should be 7 elements, one
for each HTML font size, each element specifying the maximum point size for
that HTML font size. E.g. 8, 10, 13, 17, 22, 29, 100
", "");    
    DocDeclStr(
        wxArrayInt , GetFontSizeMapping() const,
        "Get mapping deom point size to HTML font size.", "");
    %property(FontSizeMapping, GetFontSizeMapping, SetFontSizeMapping);

};

//---------------------------------------------------------------------------