~valavanisalex/ubuntu/oneiric/inkscape/inkscape_0.48.1-2ubuntu4

« back to all changes in this revision

Viewing changes to src/xml/helper-observer.h

  • Committer: Bazaar Package Importer
  • Author(s): Kees Cook, Ted Gould, Kees Cook
  • Date: 2009-06-24 14:00:43 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20090624140043-07stp20mry48hqup
Tags: 0.47~pre0-0ubuntu1
* New upstream release

[ Ted Gould ]
* debian/control: Adding libgsl0 and removing version specifics on boost

[ Kees Cook ]
* debian/watch: updated to run uupdate and mangle pre-release versions.
* Dropped patches that have been taken upstream:
  - 01_mips
  - 02-poppler-0.8.3
  - 03-chinese-inkscape
  - 05_fix_latex_patch
  - 06_gcc-4.4
  - 07_cdr2svg
  - 08_skip-bad-utf-on-pdf-import
  - 09_gtk-clist
  - 10_belarussian
  - 11_libpng
  - 12_desktop
  - 13_slider
  - 100_svg_import_improvements
  - 102_sp_pattern_painter_free
  - 103_bitmap_type_print

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef __XML_HELPER_OBSERVER__
 
2
#define __XML_HELPER_OBSERVER__
 
3
 
 
4
#include "node-observer.h"
 
5
#include "node.h"
 
6
#include "../sp-object.h"
 
7
//#include "../sp-object-repr.h"
 
8
#include <sigc++/sigc++.h>
 
9
 
 
10
namespace Inkscape {
 
11
    namespace XML {
 
12
        class Node;
 
13
 
 
14
                // Very simple observer that just emits a signal if anything happens to a node
 
15
                class SignalObserver : public NodeObserver
 
16
                {
 
17
                public:
 
18
                        SignalObserver();
 
19
 
 
20
                        // Add this observer to the SPObject and remove it from any previous object
 
21
                        void set(SPObject* o);
 
22
                        void notifyChildAdded(Node&, Node&, Node*);
 
23
                        void notifyChildRemoved(Node&, Node&, Node*);
 
24
                        void notifyChildOrderChanged(Node&, Node&, Node*, Node*);
 
25
                        void notifyContentChanged(Node&, Util::ptr_shared<char>, Util::ptr_shared<char>);
 
26
                        void notifyAttributeChanged(Node&, GQuark, Util::ptr_shared<char>, Util::ptr_shared<char>);
 
27
                        sigc::signal<void>& signal_changed();
 
28
                private:
 
29
                        sigc::signal<void> _signal_changed;
 
30
                        SPObject* _oldsel;
 
31
                };
 
32
        }
 
33
}
 
34
 
 
35
#endif //#ifndef __XML_HELPER_OBSERVER__