xref: /aoo42x/main/toolkit/doc/layout/vcl.txt (revision cdf0e10c)
1*cdf0e10cSrcweir* How do very basic vcl widgets get peers:
2*cdf0e10cSrcweir
3*cdf0e10cSrcweir    + toolkit/awt/ VCLXToolkit::ImplCreateWindow
4*cdf0e10cSrcweir	+ calls GetComponentInterface (sal_True) - if no comp. iface.
5*cdf0e10cSrcweir
6*cdf0e10cSrcweir    + vcl's Window:
7*cdf0e10cSrcweir    virtual ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer > GetComponentInterface( BOOL bCreate = TRUE );
8*cdf0e10cSrcweir
9*cdf0e10cSrcweir    + vcl/inc/vcl/unowrap.hxx:
10*cdf0e10cSrcweir	// Window
11*cdf0e10cSrcweir	virtual ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer> GetWindowInterface( Window* pWindow, sal_Bool bCreate ) = 0;
12*cdf0e10cSrcweir	virtual void				SetWindowInterface( Window* pWindow, ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer > xIFace ) = 0;
13*cdf0e10cSrcweir
14*cdf0e10cSrcweir    + from svapp.cxx Application::SetUnoWrapper
15*cdf0e10cSrcweir	-> toolkit/awt 'ToolkitWorkerFunction' ( extern C / dlopen linkage )
16*cdf0e10cSrcweir
17*cdf0e10cSrcweir    + from toolkit/source/helper/unowrapper.cxx:
18*cdf0e10cSrcweir	-> CreateXWindow -> 'return new VCLXWindow'
19*cdf0e10cSrcweir	    ** FIXME: we need love in here too:
20*cdf0e10cSrcweir		+ METRICBOX eg.