xref: /aoo42x/main/toolkit/doc/layout/vcl.txt (revision 0bdb6530)
1*0bdb6530SAndrew Rist# *************************************************************
2*0bdb6530SAndrew Rist#
3*0bdb6530SAndrew Rist#  Licensed to the Apache Software Foundation (ASF) under one
4*0bdb6530SAndrew Rist#  or more contributor license agreements.  See the NOTICE file
5*0bdb6530SAndrew Rist#  distributed with this work for additional information
6*0bdb6530SAndrew Rist#  regarding copyright ownership.  The ASF licenses this file
7*0bdb6530SAndrew Rist#  to you under the Apache License, Version 2.0 (the
8*0bdb6530SAndrew Rist#  "License"); you may not use this file except in compliance
9*0bdb6530SAndrew Rist#  with the License.  You may obtain a copy of the License at
10*0bdb6530SAndrew Rist#
11*0bdb6530SAndrew Rist#    http://www.apache.org/licenses/LICENSE-2.0
12*0bdb6530SAndrew Rist#
13*0bdb6530SAndrew Rist#  Unless required by applicable law or agreed to in writing,
14*0bdb6530SAndrew Rist#  software distributed under the License is distributed on an
15*0bdb6530SAndrew Rist#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*0bdb6530SAndrew Rist#  KIND, either express or implied.  See the License for the
17*0bdb6530SAndrew Rist#  specific language governing permissions and limitations
18*0bdb6530SAndrew Rist#  under the License.
19*0bdb6530SAndrew Rist#
20*0bdb6530SAndrew Rist# *************************************************************
21cdf0e10cSrcweir* How do very basic vcl widgets get peers:
22cdf0e10cSrcweir
23cdf0e10cSrcweir    + toolkit/awt/ VCLXToolkit::ImplCreateWindow
24cdf0e10cSrcweir	+ calls GetComponentInterface (sal_True) - if no comp. iface.
25cdf0e10cSrcweir
26cdf0e10cSrcweir    + vcl's Window:
27cdf0e10cSrcweir    virtual ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer > GetComponentInterface( BOOL bCreate = TRUE );
28cdf0e10cSrcweir
29cdf0e10cSrcweir    + vcl/inc/vcl/unowrap.hxx:
30cdf0e10cSrcweir	// Window
31cdf0e10cSrcweir	virtual ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer> GetWindowInterface( Window* pWindow, sal_Bool bCreate ) = 0;
32cdf0e10cSrcweir	virtual void				SetWindowInterface( Window* pWindow, ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer > xIFace ) = 0;
33cdf0e10cSrcweir
34cdf0e10cSrcweir    + from svapp.cxx Application::SetUnoWrapper
35cdf0e10cSrcweir	-> toolkit/awt 'ToolkitWorkerFunction' ( extern C / dlopen linkage )
36cdf0e10cSrcweir
37cdf0e10cSrcweir    + from toolkit/source/helper/unowrapper.cxx:
38cdf0e10cSrcweir	-> CreateXWindow -> 'return new VCLXWindow'
39cdf0e10cSrcweir	    ** FIXME: we need love in here too:
40*0bdb6530SAndrew Rist		+ METRICBOX eg.
41