~vaifrax/inkscape/bugfix170049

« back to all changes in this revision

Viewing changes to src/extension/script/cpptest.cpp

  • Committer: mental
  • Date: 2006-01-16 02:36:01 UTC
  • Revision ID: mental@users.sourceforge.net-20060116023601-wkr0h7edl5veyudq
moving trunk for module inkscape

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
#include <stdio.h>
 
3
 
 
4
#include "InkscapeBinding.h"
 
5
 
 
6
void doTest()
 
7
{
 
8
    Inkscape::Extension::Script::Inkscape *inkscape =
 
9
         Inkscape::Extension::Script::getInkscape();
 
10
    Inkscape::Extension::Script::Desktop  *desktop  = inkscape->getDesktop();
 
11
    Inkscape::Extension::Script::Document *document = desktop->getDocument();
 
12
    document->hello();
 
13
}
 
14
 
 
15
int main(int argc, char **argv)
 
16
{
 
17
 
 
18
    doTest();
 
19
    
 
20
}
 
21
 
 
22