/usr/share/doc/libwxsvg-dev/examples/svgview.h is in libwxsvg-dev 2:1.1.6~dfsg-1.
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 | //////////////////////////////////////////////////////////////////////////////
// Name: test.h
// Purpose: Widget to display svg documents using svg library
// Author: Alex Thuering
// Created: 2005/05/07
// RCS-ID: $Id: svgview.h,v 1.4 2005/12/24 19:08:40 ntalex Exp $
// Copyright: (c) Alex Thuering
// Licence: wxWindows licence
//////////////////////////////////////////////////////////////////////////////
#ifndef SVGVIEW_H
#define SVGVIEW_H
#include <wx/wx.h>
#include <wxSVG/svgctrl.h>
class SVGViewApp: public wxApp
{
public:
bool OnInit();
};
class MySVGCanvas: public wxSVGCtrl
{
public:
MySVGCanvas(wxWindow* parent);
void OnMouseLeftUp(wxMouseEvent & event);
void SetShowHitPopup(bool);
private:
bool m_ShowHitPopup;
DECLARE_EVENT_TABLE()
};
class MainFrame: public wxFrame
{
public:
MainFrame(wxWindow *parent, const wxString& title, const wxPoint& pos,
const wxSize& size, long style = wxDEFAULT_FRAME_STYLE);
protected:
MySVGCanvas* m_svgCtrl;
void OnOpen(wxCommandEvent& event);
void OnSave(wxCommandEvent& event);
void OnExit(wxCommandEvent& event);
void Fit(wxCommandEvent& event);
void Hittest(wxCommandEvent& event);
DECLARE_EVENT_TABLE()
};
#endif //SVGVIEW_H
|