summaryrefslogtreecommitdiff
path: root/canvas/source/null/sprite.hxx
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2005-11-02 11:51:25 +0000
committerKurt Zenker <kz@openoffice.org>2005-11-02 11:51:25 +0000
commit9c24ad30d93eab8a560776c8202a188427ad49dd (patch)
tree641949c11c5a3be1de47e8447033ad203d8c7448 /canvas/source/null/sprite.hxx
parent9bd69f51ba22f65f5e7128e445ecc7e1a98abed4 (diff)
INTEGRATION: CWS canvas02 (1.1.2); FILE ADDED
2005/10/11 15:41:09 thb 1.1.2.2: #i54170# Corrected license headers 2005/08/19 11:03:07 thb 1.1.2.1: #i53538# Added null canvas. This canvas will do nothing, except log all operations (to stderr, currently, but planned are various targets)
Diffstat (limited to 'canvas/source/null/sprite.hxx')
-rw-r--r--canvas/source/null/sprite.hxx55
1 files changed, 55 insertions, 0 deletions
diff --git a/canvas/source/null/sprite.hxx b/canvas/source/null/sprite.hxx
new file mode 100644
index 000000000000..7c5b71e96f6a
--- /dev/null
+++ b/canvas/source/null/sprite.hxx
@@ -0,0 +1,55 @@
+/*************************************************************************
+ *
+ * OpenOffice.org - a multi-platform office productivity suite
+ *
+ * $RCSfile: sprite.hxx,v $
+ *
+ * $Revision: 1.2 $
+ *
+ * last change: $Author: kz $ $Date: 2005-11-02 12:51:25 $
+ *
+ * The Contents of this file are made available subject to
+ * the terms of GNU Lesser General Public License Version 2.1.
+ *
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2005 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ ************************************************************************/
+
+#ifndef INCLUDED_NULLCANVAS_SPRITE_HXX
+#define INCLUDED_NULLCANVAS_SPRITE_HXX
+
+#include <canvas/base/sprite.hxx>
+
+namespace nullcanvas
+{
+ /** Specialization of ::canvas::Sprite interface, to also provide
+ redraw methods.
+ */
+ class Sprite : public ::canvas::Sprite
+ {
+ public:
+ /** Redraw sprite
+ */
+ virtual void redraw() const = 0;
+ };
+}
+
+#endif /* INCLUDED_NULLCANVAS_SPRITE_HXX */