ooo-build r11762 - trunk/patches/src680
- From: freuter svn gnome org
- To: svn-commits-list gnome org
- Subject: ooo-build r11762 - trunk/patches/src680
- Date: Fri, 29 Feb 2008 14:34:22 +0000 (GMT)
Author: freuter
Date: Fri Feb 29 14:34:22 2008
New Revision: 11762
URL: http://svn.gnome.org/viewvc/ooo-build?rev=11762&view=rev
Log:
first running version...
Modified:
trunk/patches/src680/sw-team-pane.diff
Modified: trunk/patches/src680/sw-team-pane.diff
==============================================================================
--- trunk/patches/src680/sw-team-pane.diff (original)
+++ trunk/patches/src680/sw-team-pane.diff Fri Feb 29 14:34:22 2008
@@ -254,6 +254,85 @@
SwInputChild::RegisterChildWindow( sal_False, pMod, SFX_CHILDWIN_FORCEDOCK );
SwRedlineAcceptChild::RegisterChildWindow( sal_False, pMod );
SwSyncChildWin::RegisterChildWindow( sal_True, pMod );
+diff --git a/sw/source/ui/inc/teampi.hxx b/sw/source/ui/inc/teampi.hxx
+new file mode 100644
+index 0000000..d698231
+--- /dev/null
++++ sw/source/ui/inc/teampi.hxx
+@@ -0,0 +1,73 @@
++/*
++ * written by Florian Reuter, (c) Novell Inc 2008
++ */
++#ifndef _TEAMPI_HXX
++#define _TEAMPI_HXX
++
++#ifndef _LSTBOX_HXX //autogen
++#include <vcl/lstbox.hxx>
++#endif
++#ifndef _SFXLSTNER_HXX //autogen
++#include <svtools/lstner.hxx>
++#endif
++#ifndef _TRANSFER_HXX
++#include <svtools/transfer.hxx>
++#endif
++#ifndef _SFX_CHILDWIN_HXX //autogen
++#include <sfx2/childwin.hxx>
++#endif
++#ifndef _SFXCTRLITEM_HXX //autogen
++#include <sfx2/ctrlitem.hxx>
++#endif
++#ifndef _SFXTBXCTRL_HXX
++#include <sfx2/tbxctrl.hxx>
++#endif
++
++#ifndef _CONTTREE_HXX
++#include <conttree.hxx>
++#endif
++#ifndef _POPBOX_HXX
++#include <popbox.hxx>
++#endif
++
++#include <vcl/button.hxx>
++#include <vcl/edit.hxx>
++#include <vcl/javachild.hxx>
++#include <vcl/combobox.hxx>
++#include <vcl/syschildctrl.hxx>
++
++class SwTeamPI : public Window,
++ public SfxControllerItem, public SfxListener
++{
++// OKButton aOKButton;
++ ListBox aEdit;
++ SystemChildControl aJavaWindow;
++// SystemChildControl aJavaWindow2;
++protected:
++ DECL_LINK( MyClickHandler, OKButton* pBtn );
++ DECL_LINK( MyListBoxHandler, ListBox * );
++public:
++ SwTeamPI(SfxBindings*, SfxChildWindowContext*, Window*);
++ ~SwTeamPI();
++
++ virtual void Resize();
++/*
++ virtual void Resizing( Size& rSize );
++ virtual BOOL Close();
++*/
++};
++
++class SwTeamChild : public SfxChildWindowContext
++{
++public:
++ SwTeamChild( Window* ,
++ USHORT nId,
++ SfxBindings*,
++ SfxChildWinInfo* );
++
++ SFX_DECL_CHILDWINDOW_CONTEXT( SwTeamChild )
++};
++
++
++
++#endif
diff --git a/sw/source/ui/uiview/view0.cxx b/sw/source/ui/uiview/view0.cxx
index 13160f7..e3063df 100644
--- sw/source/ui/uiview/view0.cxx
@@ -296,6 +375,284 @@
$(SLO)$/navicfg.obj \
$(SLO)$/numfmtlb.obj \
$(SLO)$/prcntfld.obj \
+diff --git a/sw/source/ui/utlui/teampi.cxx b/sw/source/ui/utlui/teampi.cxx
+new file mode 100644
+index 0000000..fc991bb
+--- /dev/null
++++ sw/source/ui/utlui/teampi.cxx
+@@ -0,0 +1,272 @@
++/*
++ * written by Florian Reuter, (c) Novell Inc 2008
++ */
++// MARKER(update_precomp.py): autogen include statement, do not remove
++#include "precompiled_sw.hxx"
++
++#ifndef _LIST_HXX
++#include <tools/list.hxx>
++#endif
++#ifndef _URLBMK_HXX
++#include <svtools/urlbmk.hxx>
++#endif
++#ifndef _SFXSTRITEM_HXX
++#include <svtools/stritem.hxx>
++#endif
++#ifndef _FILTER_HXX
++#include <svtools/filter.hxx>
++#endif
++#ifndef SVTOOLS_URIHELPER_HXX
++#include <svtools/urihelper.hxx>
++#endif
++#ifndef _SOT_FORMATS_HXX
++#include <sot/formats.hxx>
++#endif
++#ifndef _FILELIST_HXX
++#include <sot/filelist.hxx>
++#endif
++#ifndef _SFXEVENT_HXX
++#include <sfx2/event.hxx>
++#endif
++#ifndef _SFXIMGMGR_HXX
++#include <sfx2/imgmgr.hxx>
++#endif
++#ifndef _SFXDISPATCH_HXX
++#include <sfx2/dispatch.hxx>
++#endif
++#ifndef _SFXDOCKWIN_HXX
++#include <sfx2/dockwin.hxx>
++#endif
++#include <vcl/toolbox.hxx>
++#ifndef _SWTYPES_HXX
++#include <swtypes.hxx> // fuer Pathfinder
++#endif
++#ifndef _ERRHDL_HXX
++#include <errhdl.hxx>
++#endif
++#ifndef _SWMODULE_HXX
++#include <swmodule.hxx>
++#endif
++#ifndef _VIEW_HXX
++#include <view.hxx>
++#endif
++#ifndef _NAVICFG_HXX
++#include <navicfg.hxx>
++#endif
++#ifndef _WRTSH_HXX
++#include <wrtsh.hxx>
++#endif
++#ifndef _DOCSH_HXX
++#include <docsh.hxx>
++#endif
++#ifndef _ACTCTRL_HXX
++#include <actctrl.hxx>
++#endif
++#ifndef _BOOKMRK_HXX
++#include <bookmrk.hxx>
++#endif
++#include <teampi.hxx>
++#ifndef _CONTENT_HXX
++#include <content.hxx>
++#endif
++#ifndef _WORKCTRL_HXX
++#include <workctrl.hxx>
++#endif
++#ifndef _SECTION_HXX
++#include <section.hxx>
++#endif
++#ifndef _EDTWIN_HXX
++#include <edtwin.hxx>
++#endif
++#include <sfx2/app.hxx>
++#ifndef _CMDID_H
++#include <cmdid.h>
++#endif
++#ifndef _HELPID_H
++#include <helpid.h>
++#endif
++#ifndef _RIBBAR_HRC
++#include <ribbar.hrc>
++#endif
++#ifndef _NAVIPI_HRC
++#include <navipi.hrc>
++#endif
++#ifndef _UTLUI_HRC
++#include <utlui.hrc>
++#endif
++
++#include <unomid.h>
++
++
++
++using namespace ::com::sun::star::uno;
++using namespace ::com::sun::star::frame;
++
++IMPL_LINK( SwTeamPI, MyClickHandler, OKButton*, EMPTYARG )
++{
++ printf("### CLICK\n");
++aJavaWindow.load_url("http://www.google.com");
++ return 0;
++}
++
++IMPL_LINK( SwTeamPI, MyListBoxHandler, ListBox *, pBox )
++{
++ printf("### DROP DOWN SELECT...\n");
++ aJavaWindow.load_url("http://www.google.com");
++ return 0;
++}
++
++
++SwTeamPI::SwTeamPI( SfxBindings* _pBindings,
++ SfxChildWindowContext* pCw,
++ Window* pParent) :
++
++ Window( pParent /*, SW_RES(DLG_NAVIGATION_PI)*/ ),
++ SfxControllerItem( SID_DOCFULLNAME, *_pBindings ),
++// aOKButton ( this ),
++ aEdit ( this, WB_DROPDOWN ),
++ aJavaWindow ( this, SystemChildControl::BROWSER )
++// aJavaWindow2 ( this )
++{
++ printf("SwTeamPI::SwTeamPI\n");
++ StartListening(*SFX_APP());
++/*
++ Size aOKSiz = aOKButton.GetSizePixel();
++ Point aOKPnt = aOKButton.GetPosPixel();
++ aOKPnt.X() = 0;
++ aOKPnt.Y() = 0;
++ aOKButton.SetPosPixel( aOKPnt );
++ aOKSiz.Width()=100;
++ aOKSiz.Height()=20;
++ aOKButton.SetSizePixel( aOKSiz );
++ aOKButton.SetClickHdl( LINK( this, SwTeamPI, MyClickHandler ) );
++ aOKButton.Show();
++*/
++ Size aEditSiz = aEdit.GetSizePixel();
++ Point aEditPnt = aEdit.GetPosPixel();
++ aEditPnt.X() = 0;
++ aEditPnt.Y() = 0;
++ aEdit.SetPosPixel( aEditPnt );
++ aEditSiz.Width()=300;
++ aEditSiz.Height()=25;
++ aEdit.SetSizePixel( aEditSiz );
++ aEdit.InsertEntry(rtl::OUString::createFromAscii("Buddies"));
++ aEdit.SetSelectHdl( LINK( this, SwTeamPI, MyListBoxHandler ) );
++ aEdit.Show();
++
++ Size aJavaWindowSiz = aJavaWindow.GetSizePixel();
++ Point aJavaWindowPnt = aJavaWindow.GetPosPixel();
++ aJavaWindowPnt.X() = 0;
++ aJavaWindowPnt.Y() = 25;
++ aJavaWindow.SetPosPixel( aJavaWindowPnt );
++ aJavaWindowSiz.Width()=300;
++ aJavaWindowSiz.Height()=300;
++ aJavaWindow.SetSizePixel( aJavaWindowSiz );
++ aJavaWindow.Show();
++/*
++ Size aJavaWindow2Siz = aJavaWindow2.GetSizePixel();
++ Point aJavaWindow2Pnt = aJavaWindow2.GetPosPixel();
++ aJavaWindow2Pnt.X() = 10;
++ aJavaWindow2Pnt.Y() = 130+200;
++ aJavaWindow2.SetPosPixel( aJavaWindow2Pnt );
++ aJavaWindow2Siz.Width()=200;
++ aJavaWindow2Siz.Height()=200;
++ aJavaWindow2.SetSizePixel( aJavaWindow2Siz );
++ aJavaWindow2.Show();
++*/
++
++/*
++ Size aJavaWindowSiz = aJavaWindow.GetSizePixel();
++ Point aJavaWindowPnt = aJavaWindow.GetPosPixel();
++ aJavaWindowPnt.X() = 0;
++ aJavaWindowPnt.Y() = 0;
++ aJavaWindow.SetPosPixel( aJavaWindowPnt );
++ aJavaWindowSiz.Width()=200;
++ aJavaWindowSiz.Height()=500;
++ aJavaWindow.SetSizePixel( aJavaWindowSiz );
++ aJavaWindow.Show();
++*/
++/*
++ if (0) {
++ Reference< XComponentContext > xContext( ::cppu::defaultBootstrap_InitialComponentContext() );
++
++ MyApplet *myApplet=new MyApplet();
++ INetURLObject aDocBase( ::rtl::OUString::createFromAscii("/tmp/HelloWorld") );
++ SvCommandList aCmdList;
++ aCmdList.Append( String::CreateFromAscii( RTL_CONSTASCII_STRINGPARAM( "codebase" ) ), ::rtl::OUString::createFromAscii("file:///home/freuter/workspace/applet/" ));
++ aCmdList.Append( String::CreateFromAscii( RTL_CONSTASCII_STRINGPARAM( "code" ) ), ::rtl::OUString::createFromAscii("JAppletSample.class" ));
++ myApplet->Init(xContext, &aJavaWindow, aDocBase, aCmdList);
++ }
++*/
++}
++
++
++void SwTeamPI::Resize()
++{
++ Window* pParent = GetParent();
++ FloatingWindow* pFloat = ((DockingWindow*)pParent)->GetFloatingWindow();
++ Size aNewSize;
++
++ Size thisSiz=GetOutputSizePixel();
++ if( pFloat)
++ {
++ aNewSize = pFloat->GetOutputSizePixel();
++ }
++ else
++ {
++ aNewSize = pParent->GetOutputSizePixel();
++ }
++//XXX printf("SwTeamPI::Resize(pFloat=%p; Width=%li; Height=%li)\n", pFloat, aNewSize.Width(), aNewSize.Height());
++ Size aEditSize=aEdit.GetSizePixel();
++ aEditSize.Width()=aNewSize.Width();
++ aEdit.SetSizePixel(aEditSize);
++
++ Size aJavaWindowSize=aJavaWindow.GetSizePixel();
++ aJavaWindowSize.Width()=aNewSize.Width();
++ aJavaWindowSize.Height()=aNewSize.Height()-aEditSize.Height();
++ aJavaWindow.SetSizePixel(aJavaWindowSize);
++}
++
++SwTeamPI::~SwTeamPI()
++{
++ EndListening(*SFX_APP());
++}
++
++
++
++SFX_IMPL_CHILDWINDOW_CONTEXT( SwTeamChild, SID_TEAM, SwView )
++
++
++SwTeamChild::SwTeamChild( Window* pParent,
++ USHORT nId,
++ SfxBindings* _pBindings,
++ SfxChildWinInfo* pInfo )
++ : SfxChildWindowContext( nId )
++{
++ printf("SwTeamChild::SwTeamChild\n");
++
++ SwTeamPI* pTeam = new SwTeamPI( _pBindings, this, pParent );
++ SetWindow( pTeam );
++
++ _pBindings->Invalidate(SID_TEAM);
++ String sExtra = pInfo->aExtraString;
++/*
++ SwNavigationConfig* pNaviConfig = SW_MOD()->GetNavigationConfig();
++
++ USHORT nRootType = static_cast< USHORT >( pNaviConfig->GetRootType() );
++ if( nRootType < CONTENT_TYPE_MAX )
++ {
++ pNavi->aContentTree.SetRootType(nRootType);
++ pNavi->aContentToolBox.CheckItem(FN_SHOW_ROOT, TRUE);
++ }
++ pNavi->aContentTree.SetOutlineLevel( static_cast< BYTE >( pNaviConfig->GetOutlineLevel() ) );
++ pNavi->SetRegionDropMode( static_cast< USHORT >( pNaviConfig->GetRegionMode() ) );
++
++ if(GetFloatingWindow() && pNaviConfig->IsSmall())
++ {
++ pNavi->_ZoomIn();
++ }
++*/
++}
++
++
diff --git a/vcl/inc/vcl/salinst.hxx b/vcl/inc/vcl/salinst.hxx
index b392ffa..9ae1276 100644
--- vcl/inc/vcl/salinst.hxx
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]