summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e188d77)
raw | patch | inline | side by side (parent: e188d77)
author | speleo3 <speleo3@users.sourceforge.net> | |
Wed, 11 Feb 2009 18:37:07 +0000 (18:37 +0000) | ||
committer | speleo3 <speleo3@users.sourceforge.net> | |
Wed, 11 Feb 2009 18:37:07 +0000 (18:37 +0000) |
src/Makefile_insert | patch | blob | history | |
src/desktop-affine.cpp | [deleted file] | patch | blob | history |
src/desktop-affine.h | patch | blob | history |
diff --git a/src/Makefile_insert b/src/Makefile_insert
index 43a6295d65421eb01c69e9688d7722cc5da10a89..7a43a59c5c4ee92c95b412a6cd7a10c88f182c9a 100644 (file)
--- a/src/Makefile_insert
+++ b/src/Makefile_insert
connection-pool.h \
console-output-undo-observer.h console-output-undo-observer.cpp \
context-fns.cpp context-fns.h \
- desktop-affine.cpp desktop-affine.h \
+ desktop-affine.h \
desktop-events.cpp desktop-events.h \
desktop-handles.cpp desktop-handles.h \
desktop-style.cpp desktop-style.h \
diff --git a/src/desktop-affine.cpp b/src/desktop-affine.cpp
--- a/src/desktop-affine.cpp
+++ /dev/null
@@ -1,51 +0,0 @@
-#define __SP_DESKTOP_AFFINE_C__
-
-/*
- * Editable view and widget implementation
- *
- * Author:
- * Lauris Kaplinski <lauris@kaplinski.com>
- *
- * Copyright (C) 1999-2002 Lauris Kaplinski
- * Copyright (C) 2000-2001 Ximian, Inc.
- *
- * Released under GNU GPL, read the file 'COPYING' for more information
- */
-
-#include "desktop.h"
-//#include "document.h"
-//#include "sp-root.h"
-
-Geom::Matrix const sp_desktop_dt2doc_affine (SPDesktop const *dt)
-{
- return dt->doc2dt().inverse();
-}
-
-Geom::Point sp_desktop_dt2doc_xy_point(SPDesktop const *dt, Geom::Point const p)
-{
- return p * sp_desktop_dt2doc_affine(dt);
-}
-
-#if 0
-Geom::Matrix const sp_desktop_root2dt_affine (SPDesktop const *dt)
-{
- SPRoot const *root = SP_ROOT(SP_DOCUMENT_ROOT(dt->doc()));
- return root->c2p * dt->doc2dt();
-}
-
-Geom::Matrix const sp_desktop_dt2root_affine (SPDesktop const *dt)
-{
- return sp_desktop_root2dt_affine(dt).inverse();
-}
-
-Geom::Point sp_desktop_root2dt_xy_point(SPDesktop const *dt, Geom::Point const p)
-{
- return p * sp_desktop_root2dt_affine(dt);
-}
-
-Geom::Point sp_desktop_dt2root_xy_point(SPDesktop const *dt, Geom::Point const p)
-{
- return p * sp_desktop_dt2root_affine(dt);
-}
-#endif
-
diff --git a/src/desktop-affine.h b/src/desktop-affine.h
index 87d31c751da88aa1c621dcb7a7e9a27c2fbe8ab6..dda4e90ee3f9a466c0859617f538024a4831f397 100644 (file)
--- a/src/desktop-affine.h
+++ b/src/desktop-affine.h
* Released under GNU GPL, read the file 'COPYING' for more information
*/
-#include "forward.h"
-#include <2geom/forward.h>
+#include "desktop.h"
-Geom::Matrix const sp_desktop_dt2doc_affine (SPDesktop const *dt);
-
-Geom::Point sp_desktop_dt2doc_xy_point(SPDesktop const *dt, Geom::Point const p);
-
-#if 0
-Geom::Matrix const sp_desktop_root2dt_affine(SPDesktop const *dt);
-Geom::Matrix const sp_desktop_dt2root_affine(SPDesktop const *dt);
-
-Geom::Point sp_desktop_root2dt_xy_point(SPDesktop const *dt, const Geom::Point p);
-Geom::Point sp_desktop_dt2root_xy_point(SPDesktop const *dt, const Geom::Point p);
-#endif
+#define sp_desktop_dt2doc_affine(desktop) desktop->dt2doc()
+#define sp_desktop_dt2doc_xy_point(desktop,point) desktop->dt2doc(point)
#endif