summaryrefslogtreecommitdiff
path: root/canvas/source/vcl/devicehelper.hxx
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2006-12-13 13:47:48 +0000
committerKurt Zenker <kz@openoffice.org>2006-12-13 13:47:48 +0000
commit1dfa669ed9f60dbaf9048b5a08b5397cbcd2d3d6 (patch)
tree743008f5e7926dbfd4c273bd8fd088bf04052d9d /canvas/source/vcl/devicehelper.hxx
parent2d2801d5895aaf9e13780a1d84b4c46338ff95ea (diff)
INTEGRATION: CWS presfixes09 (1.2.32); FILE MERGED
2006/03/06 22:49:01 thb 1.2.32.1: #i49357# Reworked canvas/window association (canvas is now window-listener, and exposes the associated window via a property)
Diffstat (limited to 'canvas/source/vcl/devicehelper.hxx')
-rw-r--r--canvas/source/vcl/devicehelper.hxx16
1 files changed, 9 insertions, 7 deletions
diff --git a/canvas/source/vcl/devicehelper.hxx b/canvas/source/vcl/devicehelper.hxx
index 2e695da705d8..5ac892f952fc 100644
--- a/canvas/source/vcl/devicehelper.hxx
+++ b/canvas/source/vcl/devicehelper.hxx
@@ -4,9 +4,9 @@
*
* $RCSfile: devicehelper.hxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: kz $ $Date: 2005-11-02 13:01:10 $
+ * last change: $Author: kz $ $Date: 2006-12-13 14:47:48 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -37,6 +37,7 @@
#define _VCLCANVAS_DEVICEHELPER_HXX
#include <com/sun/star/awt/Rectangle.hpp>
+#include <com/sun/star/awt/XWindow2.hpp>
#include <com/sun/star/rendering/XGraphicDevice.hpp>
#include <com/sun/star/rendering/XBufferController.hpp>
@@ -109,11 +110,12 @@ namespace vclcanvas
void notifySizeUpdate( const ::com::sun::star::awt::Rectangle& rBounds );
private:
- // TODO(Q3): Lifetime issue. Cannot control pointer validity
- // over object lifetime, since we're a UNO component. Now that
- // we've changed the ::Window canvas reference to a weak ref,
- // might be okay to hold a uno::Reference to the VCL window
- // here.
+ // TODO(Q2): Lifetime issue. Though WindowGraphicDeviceBase
+ // now listenes to the window component, I still consider
+ // holding a naked ptr unsafe here (especially as we pass it
+ // around via getOutDev). This _only_ works reliably, if
+ // disposing the SpriteCanvas correctly disposes all entities
+ // which hold this pointer.
Window* mpOutputWindow;
/// Pointer to sprite canvas (owner of this helper), needed to create bitmaps