diff options
| author | Bob Jamison <ishmalius@gmail.com> | 2008-03-10 00:03:28 +0000 |
|---|---|---|
| committer | ishmal <ishmal@users.sourceforge.net> | 2008-03-10 00:03:28 +0000 |
| commit | 5421346cad32ea60be596291c74200bed21c2ef2 (patch) | |
| tree | aaa13c90610c1e087007608851b36dc1f24e1f82 /src/extension/script/InkscapeBinding.cpp | |
| parent | Don't steal 'del' key in pen context when there is no curve being drawn (clos... (diff) | |
| download | inkscape-5421346cad32ea60be596291c74200bed21c2ef2.tar.gz inkscape-5421346cad32ea60be596291c74200bed21c2ef2.zip | |
Switch to newer binding stuff
(bzr r5016)
Diffstat (limited to 'src/extension/script/InkscapeBinding.cpp')
| -rw-r--r-- | src/extension/script/InkscapeBinding.cpp | 216 |
1 files changed, 0 insertions, 216 deletions
diff --git a/src/extension/script/InkscapeBinding.cpp b/src/extension/script/InkscapeBinding.cpp deleted file mode 100644 index 4658f684b..000000000 --- a/src/extension/script/InkscapeBinding.cpp +++ /dev/null @@ -1,216 +0,0 @@ -/** - * This file is an attempt to provide a hierarchical design - * to wrap Inkscape in an OO model. This file is parsed by Swig - * to produce scripting extension modules for such interpreters - * as Python or Perl - * - * Authors: - * Bob Jamison <ishmalius@gmail.com> - * - * Copyright (C) 2004-2007 Authors - * - * Released under GNU GPL, read the file 'COPYING' for more information - */ - - -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - -#include "InkscapeBinding.h" -#include "help.h" - -namespace Inkscape { -namespace Extension { -namespace Script { - - -class InkscapeImpl; -class DesktopImpl; -class DocumentImpl; - - -//######################################################################### -//# D O C U M E N T -//######################################################################### -class DocumentImpl : public Document -{ -public: - - DocumentImpl(); - - virtual ~DocumentImpl(); - - virtual void hello(); - -private: - - -}; - - -DocumentImpl::DocumentImpl() -{ - - -} - -DocumentImpl::~DocumentImpl() -{ - - -} - -void DocumentImpl::hello() -{ - //printf("######## HELLO, WORLD! #######\n"); -} - - - -//######################################################################### -//# D E S K T O P -//######################################################################### -class DesktopImpl : public Desktop -{ -public: - DesktopImpl(); - - virtual ~DesktopImpl(); - - virtual Document *getDocument(); - -private: - - DocumentImpl document; - -}; - - -DesktopImpl::DesktopImpl() -{ - - -} - -DesktopImpl::~DesktopImpl() -{ - - -} - - -Document *DesktopImpl::getDocument() -{ - return &document; -} - - - -//######################################################################### -//# D I A L O G M A N A G E R -//######################################################################### - -class DialogManagerImpl : public DialogManager -{ -public: - DialogManagerImpl(); - - virtual ~DialogManagerImpl(); - - virtual void showAbout(); - -private: - - -}; - -DialogManagerImpl::DialogManagerImpl() -{ - -} - - -DialogManagerImpl::~DialogManagerImpl() -{ - -} - - -void DialogManagerImpl::showAbout() -{ - sp_help_about(); - -} - - - -//######################################################################### -//# I N K S C A P E -//######################################################################### - -class InkscapeImpl : public Inkscape -{ -public: - InkscapeImpl(); - - virtual ~InkscapeImpl(); - - virtual Desktop *getDesktop(); - - virtual DialogManager *getDialogManager(); - -private: - - DesktopImpl desktop; - - DialogManagerImpl dialogManager; - -}; - -Inkscape *getInkscape() -{ - Inkscape *inkscape = new InkscapeImpl(); - return inkscape; -} - - -InkscapeImpl::InkscapeImpl() -{ - -} - - -InkscapeImpl::~InkscapeImpl() -{ - -} - - -Desktop *InkscapeImpl::getDesktop() -{ - return &desktop; -} - -DialogManager *InkscapeImpl::getDialogManager() -{ - return &dialogManager; -} - - - -}//namespace Script -}//namespace Extension -}//namespace Inkscape - - -/* - Local Variables: - mode:c++ - c-file-style:"stroustrup" - c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +)) - indent-tabs-mode:nil - fill-column:99 - End: -*/ -// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 : |
