~ubuntu-branches/ubuntu/utopic/gnome-chemistry-utils/utopic

« back to all changes in this revision

Viewing changes to goffice/gogcpapp.h

  • Committer: Package Import Robot
  • Author(s): Jeremy Bicha
  • Date: 2013-05-10 21:30:51 UTC
  • mfrom: (1.1.15) (2.1.25 sid)
  • Revision ID: package-import@ubuntu.com-20130510213051-mswxsp3vitsgqspm
Tags: 0.14.2-1ubuntu1
* Sync with Debian. Remaining change:
  - Build-depend on firefox-dev instead of xulrunner-dev 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* 
 
1
/*
2
2
 * Gnome Chemistry Utils GOffice component
3
3
 * gogcpapp.h
4
4
 *
5
 
 * Copyright (C) 2005-2008 Jean Bréfort <jean.brefort@normalesup.org>
 
5
 * Copyright (C) 2005-2011 Jean Bréfort <jean.brefort@normalesup.org>
6
6
 *
7
 
 * This program is free software; you can redistribute it and/or 
8
 
 * modify it under the terms of the GNU General Public License as 
9
 
 * published by the Free Software Foundation; either version 2 of the
 
7
 * This program is free software; you can redistribute it and/or
 
8
 * modify it under the terms of the GNU General Public License as
 
9
 * published by the Free Software Foundation; either version 3 of the
10
10
 * License, or (at your option) any later version.
11
11
 *
12
12
 * This program is distributed in the hope that it will be useful,
37
37
        virtual GtkWindow* GetWindow();
38
38
        virtual void ToggleMenu (const std::string& menuname, bool active);
39
39
 
40
 
        gcu::Document *ImportDocument (const std::string& mime_type, const char* data, int length);
 
40
        void ImportDocument (GOGChemUtilsComponent *gogcu);
41
41
        GtkWindow *EditDocument (GOGChemUtilsComponent *gogcu);
42
42
        bool GetData (GOGChemUtilsComponent *gogcu, gpointer *data, int *length, void (**clearfunc) (gpointer), gpointer *user_data);
43
43
        void Render (GOGChemUtilsComponent *gogcu, cairo_t *cr, double width, double height);
47
47
        void OnFileClose ();
48
48
 
49
49
        void NoMoreDocsEvent () {;}
 
50
        gcu::ContentType GetContentType () {return gcu::ContentType2D;}
50
51
 
51
52
private:
52
53
        std::map<gcp::Document *, gpointer> m_Windows;