From 96f7bcce7c0f3a98743eb4409286004a6c1c5f69 Mon Sep 17 00:00:00 2001
From: Jan Nieuwenhuizen <janneke@gnu.org>
Date: Mon, 14 Jul 2008 15:34:48 +0200
Subject: [PATCH] Implement Get,Set{,Smart}HelpId ().

---
 toolkit/source/vclcompat/wrapper.cxx |   20 +++++++++++---------
 1 files changed, 11 insertions(+), 9 deletions(-)

diff --git a/toolkit/source/vclcompat/wrapper.cxx b/toolkit/source/vclcompat/wrapper.cxx
index 25604f4..ee526d2 100644
--- a/toolkit/source/vclcompat/wrapper.cxx
+++ b/toolkit/source/vclcompat/wrapper.cxx
@@ -188,49 +188,51 @@ Context *Window::getContext()
     return this && mpImpl ? mpImpl->mpCtx : NULL;
 }
 
-PeerHandle Window::GetPeer()
+PeerHandle Window::GetPeer() const
 {
     if ( !mpImpl )
         return PeerHandle();
     return mpImpl->mxWindow;
 }
 
-uno::Reference<awt::XWindow> Window::GetRef()
+uno::Reference<awt::XWindow> Window::GetRef() const
 {
     return uno::Reference <awt::XWindow> ( GetPeer(), uno::UNO_QUERY );
 }
 
-VCLXWindow* Window::GetVCLXWindow()
+VCLXWindow* Window::GetVCLXWindow() const
 {
     return VCLXWindow::GetImplementation( GetRef() );
 }
 
-::Window* Window::GetWindow()
+::Window* Window::GetWindow() const
 {
     return GetVCLXWindow()->GetWindow();
 }
 
-::Window* Window::GetParent()
+::Window* Window::GetParent() const
 {
     return GetWindow()->GetParent();
 }
 
-void Window::SetHelpId( ULONG )
+void Window::SetHelpId( ULONG id )
 {
+    GetWindow()->SetHelpId( id );
 }
 
 ULONG Window::GetHelpId() const
 {
-    return 0;
+    return GetWindow()->GetHelpId();
 }
 
-void Window::SetSmartHelpId( SmartId const&, SmartIdUpdateMode )
+void Window::SetSmartHelpId( SmartId const& id, SmartIdUpdateMode mode )
 {
+    GetWindow()->SetSmartHelpId( id, mode );
 }
 
 SmartId Window::GetSmartHelpId() const
 {
-    return SmartId ();
+    return GetWindow()->GetSmartHelpId();
 }
 
 struct ToolkitVclPropsMap
-- 
1.5.6.3.317.g5d44c9.dirty


