diff options
| author | Ted Gould <ted@gould.cx> | 2007-10-30 19:29:49 +0000 |
|---|---|---|
| committer | gouldtj <gouldtj@users.sourceforge.net> | 2007-10-30 19:29:49 +0000 |
| commit | fd60130e74661e020e46d954a56c63b4725c8f82 (patch) | |
| tree | ba7033640e6c03794ae2fc10b67f989284ecf902 /src/extension/implementation | |
| parent | r16892@shi: ted | 2007-10-29 21:33:09 -0700 (diff) | |
| download | inkscape-fd60130e74661e020e46d954a56c63b4725c8f82.tar.gz inkscape-fd60130e74661e020e46d954a56c63b4725c8f82.zip | |
r16893@shi: ted | 2007-10-30 07:31:04 -0700
Wow, that wasn't as hard as I thought it would be. Changing away from SPDocument. Sounded like a good idea, but we
need to be able to get selections in the document cache.
(bzr r3979)
Diffstat (limited to 'src/extension/implementation')
| -rw-r--r-- | src/extension/implementation/implementation.cpp | 4 | ||||
| -rw-r--r-- | src/extension/implementation/implementation.h | 12 |
2 files changed, 8 insertions, 8 deletions
diff --git a/src/extension/implementation/implementation.cpp b/src/extension/implementation/implementation.cpp index acec99041..9ad60fef2 100644 --- a/src/extension/implementation/implementation.cpp +++ b/src/extension/implementation/implementation.cpp @@ -1,6 +1,6 @@ /* Author: Ted Gould <ted@gould.cx> - Copyright (c) 2003-2005 + Copyright (c) 2003-2005,2007 This code is licensed under the GNU GPL. See COPYING for details. @@ -48,7 +48,7 @@ Implementation::unload(Inkscape::Extension::Extension *module) { to reimplement it to do something useful. */ ImplementationDocumentCache * -Implementation::newDocCache (Inkscape::Extension::Extension * ext, SPDocument * doc) { +Implementation::newDocCache (Inkscape::Extension::Extension * ext, Inkscape::UI::View::View * view) { return NULL; } diff --git a/src/extension/implementation/implementation.h b/src/extension/implementation/implementation.h index bd380c07e..ad1bbf1d2 100644 --- a/src/extension/implementation/implementation.h +++ b/src/extension/implementation/implementation.h @@ -1,6 +1,6 @@ /* Author: Ted Gould <ted@gould.cx> - Copyright (c) 2003-2005 + Copyright (c) 2003-2005,2007 This code is licensed under the GNU GPL. See COPYING for details. @@ -29,15 +29,15 @@ namespace Implementation { /** \brief A cache for the document and this implementation */ class ImplementationDocumentCache { /** \brief The document that this instance is working on */ - SPDocument * _doc; + Inkscape::UI::View::View * _view; public: - ImplementationDocumentCache (SPDocument * doc) : - _doc(doc) + ImplementationDocumentCache (Inkscape::UI::View::View * view) : + _view(view) { return; }; virtual ~ImplementationDocumentCache ( ) { return; }; - SPDocument const * doc ( ) { return _doc; }; + Inkscape::UI::View::View const * view ( ) { return _view; }; }; /** @@ -56,7 +56,7 @@ public: virtual bool load(Inkscape::Extension::Extension *module); virtual void unload(Inkscape::Extension::Extension *module); - ImplementationDocumentCache * newDocCache (Inkscape::Extension::Extension * ext, SPDocument * doc); + ImplementationDocumentCache * newDocCache (Inkscape::Extension::Extension * ext, Inkscape::UI::View::View * doc); /** Verify any dependencies. */ virtual bool check(Inkscape::Extension::Extension *module); |
