merge the formfield patch from ooo-build
[ooovba.git] / dbaccess / source / ui / querydesign / JoinController.cxx
blob77c9c04a25febfff60f141cb3a4d019a0ef8b41d
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: JoinController.cxx,v $
10 * $Revision: 1.47 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 // MARKER(update_precomp.py): autogen include statement, do not remove
32 #include "precompiled_dbaccess.hxx"
33 #ifndef _SFXSIDS_HRC
34 #include <sfx2/sfxsids.hrc>
35 #endif
36 #ifndef _DBU_QRY_HRC_
37 #include "dbu_qry.hrc"
38 #endif
39 #ifndef DBACCESS_UI_BROWSER_ID_HXX
40 #include "browserids.hxx"
41 #endif
42 #ifndef _COMPHELPER_TYPES_HXX_
43 #include <comphelper/types.hxx>
44 #endif
45 #ifndef DBACCESS_SHARED_DBUSTRINGS_HRC
46 #include "dbustrings.hrc"
47 #endif
48 #ifndef _CONNECTIVITY_DBTOOLS_HXX_
49 #include <connectivity/dbtools.hxx>
50 #endif
51 #ifndef _COM_SUN_STAR_FRAME_FRAMESEARCHFLAG_HPP_
52 #include <com/sun/star/frame/FrameSearchFlag.hpp>
53 #endif
54 #ifndef _COMPHELPER_EXTRACT_HXX_
55 #include <comphelper/extract.hxx>
56 #endif
57 #ifndef _COM_SUN_STAR_CONTAINER_XCHILD_HPP_
58 #include <com/sun/star/container/XChild.hpp>
59 #endif
60 #ifndef _COM_SUN_STAR_CONTAINER_XNAMECONTAINER_HPP_
61 #include <com/sun/star/container/XNameContainer.hpp>
62 #endif
63 #ifndef _COM_SUN_STAR_SDBCX_XDATADESCRIPTORFACTORY_HPP_
64 #include <com/sun/star/sdbcx/XDataDescriptorFactory.hpp>
65 #endif
66 #ifndef _COM_SUN_STAR_SDBCX_XTABLESSUPPLIER_HPP_
67 #include <com/sun/star/sdbcx/XTablesSupplier.hpp>
68 #endif
69 #ifndef _COM_SUN_STAR_SDBCX_KEYTYPE_HPP_
70 #include <com/sun/star/sdbcx/KeyType.hpp>
71 #endif
72 #ifndef _COM_SUN_STAR_SDBCX_XDROP_HPP_
73 #include <com/sun/star/sdbcx/XDrop.hpp>
74 #endif
75 #ifndef _COM_SUN_STAR_SDBCX_XALTERTABLE_HPP_
76 #include <com/sun/star/sdbcx/XAlterTable.hpp>
77 #endif
78 #ifndef _COM_SUN_STAR_SDBCX_XAPPEND_HPP_
79 #include <com/sun/star/sdbcx/XAppend.hpp>
80 #endif
81 #ifndef _COM_SUN_STAR_SDB_SQLCONTEXT_HPP_
82 #include <com/sun/star/sdb/SQLContext.hpp>
83 #endif
84 #ifndef _COM_SUN_STAR_SDBC_SQLWARNING_HPP_
85 #include <com/sun/star/sdbc/SQLWarning.hpp>
86 #endif
87 #ifndef _COM_SUN_STAR_SDBC_COLUMNVALUE_HPP_
88 #include <com/sun/star/sdbc/ColumnValue.hpp>
89 #endif
90 #ifndef _COM_SUN_STAR_SDBC_XROW_HPP_
91 #include <com/sun/star/sdbc/XRow.hpp>
92 #endif
93 #ifndef _DBHELPER_DBEXCEPTION_HXX_
94 #include <connectivity/dbexception.hxx>
95 #endif
96 #ifndef _COM_SUN_STAR_UI_DIALOGS_XEXECUTABLEDIALOG_HPP_
97 #include <com/sun/star/ui/dialogs/XExecutableDialog.hpp>
98 #endif
99 #ifndef _COMPHELPER_STREAMSECTION_HXX_
100 #include <comphelper/streamsection.hxx>
101 #endif
102 #ifndef _COMPHELPER_BASIC_IO_HXX_
103 #include <comphelper/basicio.hxx>
104 #endif
105 #ifndef _COMPHELPER_SEQSTREAM_HXX
106 #include <comphelper/seqstream.hxx>
107 #endif
108 #ifndef _COM_SUN_STAR_IO_XACTIVEDATASOURCE_HPP_
109 #include <com/sun/star/io/XActiveDataSource.hpp>
110 #endif
111 #ifndef _COM_SUN_STAR_IO_XACTIVEDATASINK_HPP_
112 #include <com/sun/star/io/XActiveDataSink.hpp>
113 #endif
114 #ifndef _DBAUI_SQLMESSAGE_HXX_
115 #include "sqlmessage.hxx"
116 #endif
117 #ifndef DBAUI_JOINCONTROLLER_HXX
118 #include "JoinController.hxx"
119 #endif
120 #ifndef _SV_MSGBOX_HXX
121 #include <vcl/msgbox.hxx>
122 #endif
123 #ifndef DBAUI_TABLEWINDOWDATA_HXX
124 #include "TableWindowData.hxx"
125 #endif
126 #ifndef DBAUI_TABLEWINDOW_HXX
127 #include "TableWindow.hxx"
128 #endif
129 #ifndef DBAUI_TABLECONNECTIONDATA_HXX
130 #include "TableConnectionData.hxx"
131 #endif
132 #ifndef DBAUI_QYDLGTAB_HXX
133 #include "adtabdlg.hxx"
134 #endif
135 #ifndef _SV_WAITOBJ_HXX
136 #include <vcl/waitobj.hxx>
137 #endif
138 #ifndef _SV_SVAPP_HXX
139 #include <vcl/svapp.hxx>
140 #endif
141 #ifndef _VOS_MUTEX_HXX_
142 #include <vos/mutex.hxx>
143 #endif
144 #ifndef DBAUI_TOOLS_HXX
145 #include "UITools.hxx"
146 #endif
148 #include <boost/optional.hpp>
150 using namespace ::com::sun::star::uno;
151 using namespace ::com::sun::star::io;
152 using namespace ::com::sun::star::beans;
153 using namespace ::com::sun::star::frame;
154 using namespace ::com::sun::star::util;
155 using namespace ::com::sun::star::lang;
156 using namespace ::com::sun::star::container;
157 using namespace ::com::sun::star::sdbcx;
158 using namespace ::com::sun::star::sdbc;
159 using namespace ::com::sun::star::sdb;
160 using namespace ::com::sun::star::ui::dialogs;
161 using namespace ::dbtools;
162 using namespace ::comphelper;
164 // .............................................................................
165 namespace dbaui
167 // .............................................................................
169 // =============================================================================
170 // = AddTableDialogContext
171 // =============================================================================
172 class AddTableDialogContext : public IAddTableDialogContext
174 OJoinController& m_rController;
176 public:
177 AddTableDialogContext( OJoinController& _rController )
178 :m_rController( _rController )
182 // IAddTableDialogContext
183 virtual ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection >
184 getConnection() const;
185 virtual bool allowViews() const;
186 virtual bool allowQueries() const;
187 virtual bool allowAddition() const;
188 virtual void addTableWindow( const String& _rQualifiedTableName, const String& _rAliasName );
189 virtual void onWindowClosing( const Window* _pWindow );
191 private:
192 OJoinTableView* getTableView() const;
195 // -----------------------------------------------------------------------------
196 Reference< XConnection > AddTableDialogContext::getConnection() const
198 return m_rController.getConnection();
201 // -----------------------------------------------------------------------------
202 bool AddTableDialogContext::allowViews() const
204 return m_rController.allowViews();
207 // -----------------------------------------------------------------------------
208 bool AddTableDialogContext::allowQueries() const
210 return m_rController.allowQueries();
213 // -----------------------------------------------------------------------------
214 bool AddTableDialogContext::allowAddition() const
216 return const_cast< OJoinController& >( m_rController ).getJoinView()->getTableView()->IsAddAllowed();
219 // -----------------------------------------------------------------------------
220 void AddTableDialogContext::addTableWindow( const String& _rQualifiedTableName, const String& _rAliasName )
222 getTableView()->AddTabWin( _rQualifiedTableName, _rAliasName, TRUE );
225 // -----------------------------------------------------------------------------
226 void AddTableDialogContext::onWindowClosing( const Window* _pWindow )
228 if ( !m_rController.getView() )
229 return;
231 ::dbaui::notifySystemWindow(
232 m_rController.getView(), const_cast< Window* >( _pWindow ), ::comphelper::mem_fun( &TaskPaneList::RemoveWindow ) );
234 m_rController.InvalidateFeature( ID_BROWSER_ADDTABLE );
235 m_rController.getView()->GrabFocus();
238 // -----------------------------------------------------------------------------
239 OJoinTableView* AddTableDialogContext::getTableView() const
241 if ( m_rController.getJoinView() )
242 return m_rController.getJoinView()->getTableView();
243 return NULL;
246 // =============================================================================
247 // = OJoinController
248 // =============================================================================
250 DBG_NAME(OJoinController)
251 // -----------------------------------------------------------------------------
252 OJoinController::OJoinController(const Reference< XMultiServiceFactory >& _rM)
253 :OJoinController_BASE(_rM)
254 ,m_pAddTableDialog(NULL)
256 DBG_CTOR(OJoinController,NULL);
258 // -----------------------------------------------------------------------------
259 OJoinController::~OJoinController()
261 DBG_DTOR(OJoinController,NULL);
264 // -----------------------------------------------------------------------------
265 void SAL_CALL OJoinController::disposing( const EventObject& _rSource ) throw(RuntimeException)
267 OJoinController_BASE::disposing( _rSource );
270 // -----------------------------------------------------------------------------
271 OJoinDesignView* OJoinController::getJoinView()
273 return static_cast< OJoinDesignView* >( getView() );
276 // -----------------------------------------------------------------------------
277 void OJoinController::disposing()
280 ::std::auto_ptr< Window > pEnsureDelete( m_pAddTableDialog );
281 m_pAddTableDialog = NULL;
284 OJoinController_BASE::disposing();
286 m_pView = NULL;
288 m_vTableConnectionData.clear();
289 m_vTableData.clear();
291 // -----------------------------------------------------------------------------
292 void OJoinController::reconnect( sal_Bool _bUI )
294 OJoinController_BASE::reconnect( _bUI );
295 if ( isConnected() && m_pAddTableDialog )
296 m_pAddTableDialog->Update();
299 // -----------------------------------------------------------------------------
300 void OJoinController::setModified(sal_Bool _bModified)
302 OJoinController_BASE::setModified(_bModified);
303 InvalidateFeature(SID_RELATION_ADD_RELATION);
305 // -----------------------------------------------------------------------------
306 void OJoinController::SaveTabWinPosSize(OTableWindow* pTabWin, long nOffsetX, long nOffsetY)
308 // die Daten zum Fenster
309 TTableWindowData::value_type pData = pTabWin->GetData();
310 OSL_ENSURE(pData != NULL, "SaveTabWinPosSize : TabWin hat keine Daten !");
312 // Position & Size der Daten neu setzen (aus den aktuellen Fenster-Parametern)
313 Point aPos = pTabWin->GetPosPixel();
314 aPos.X() += nOffsetX;
315 aPos.Y() += nOffsetY;
316 pData->SetPosition(aPos);
317 pData->SetSize(pTabWin->GetSizePixel());
320 // -----------------------------------------------------------------------------
321 FeatureState OJoinController::GetState(sal_uInt16 _nId) const
323 FeatureState aReturn;
324 // (disabled automatically)
325 aReturn.bEnabled = sal_True;
327 switch (_nId)
329 case ID_BROWSER_EDITDOC:
330 aReturn.bChecked = isEditable();
331 break;
332 case ID_BROWSER_SAVEDOC:
333 aReturn.bEnabled = isConnected() && isModified();
334 break;
335 case ID_BROWSER_ADDTABLE:
336 aReturn.bEnabled = ( getView() != NULL )
337 && const_cast< OJoinController* >( this )->getJoinView()->getTableView()->IsAddAllowed();
338 aReturn.bChecked = aReturn.bEnabled && m_pAddTableDialog != NULL && m_pAddTableDialog->IsVisible() ;
339 if ( aReturn.bEnabled )
340 aReturn.sTitle = OAddTableDlg::getDialogTitleForContext( impl_getDialogContext() );
341 break;
343 default:
344 aReturn = OJoinController_BASE::GetState(_nId);
346 return aReturn;
349 // -----------------------------------------------------------------------------
350 AddTableDialogContext& OJoinController::impl_getDialogContext() const
352 if ( !m_pDialogContext.get() )
354 OJoinController* pNonConstThis = const_cast< OJoinController* >( this );
355 pNonConstThis->m_pDialogContext.reset( new AddTableDialogContext( *pNonConstThis ) );
357 return *m_pDialogContext;
360 // -----------------------------------------------------------------------------
361 void OJoinController::Execute(sal_uInt16 _nId, const Sequence< PropertyValue >& aArgs)
363 switch(_nId)
365 case ID_BROWSER_EDITDOC:
366 if(isEditable())
367 { // the state should be changed to not editable
368 switch (saveModified())
370 case RET_CANCEL:
371 // don't change anything here so return
372 return;
373 case RET_NO:
374 reset();
375 setModified(sal_False); // and we are not modified yet
376 break;
377 default:
378 break;
381 setEditable(!isEditable());
382 getJoinView()->setReadOnly(!isEditable());
383 InvalidateAll();
384 return;
385 case ID_BROWSER_ADDTABLE:
386 if ( !m_pAddTableDialog )
387 m_pAddTableDialog = new OAddTableDlg( getView(), impl_getDialogContext() );
389 if ( m_pAddTableDialog->IsVisible() )
391 m_pAddTableDialog->Show( FALSE );
392 getView()->GrabFocus();
394 else
397 WaitObject aWaitCursor( getView() );
398 m_pAddTableDialog->Update();
400 m_pAddTableDialog->Show( TRUE );
401 ::dbaui::notifySystemWindow(getView(),m_pAddTableDialog,::comphelper::mem_fun(&TaskPaneList::AddWindow));
403 break;
404 default:
405 OJoinController_BASE::Execute(_nId,aArgs);
407 InvalidateFeature(_nId);
409 // -----------------------------------------------------------------------------
410 void OJoinController::SaveTabWinsPosSize( OJoinTableView::OTableWindowMap* pTabWinList, long nOffsetX, long nOffsetY )
412 // Das Loeschen und Neuanlegen der alten Implementation ist unter dem aktuellen Modell nicht mehr richtig : Die TabWins
413 // habe einen Zeiger auf ihre Daten, verwaltet werden sie aber von mir. Wenn ich die alten loesche, haben die TabWins
414 // ploetzlich Zeiger auf nicht mehr existente Objekte.
415 // Wenn die TabWins ein SetData haetten, koennte ich mir das sparen ... haben sie aber nicht, ausserdem muesste ich dann immer
416 // noch Informationen, die sich eigentlich nicht geaendert haben, auch neu setzen.
417 // Also loesche ich die TabWinDatas nicht, sondern aktualisiere sie nur.
418 DBG_ASSERT(m_vTableData.size() == pTabWinList->size(),
419 "OJoinController::SaveTabWinsPosSize : inkonsistenter Zustand : sollte genausviel TabWinDatas haben wie TabWins !");
421 OJoinTableView::OTableWindowMap::iterator aIter = pTabWinList->begin();
422 OJoinTableView::OTableWindowMap::iterator aEnd = pTabWinList->end();
423 for(;aIter != aEnd;++aIter)
424 SaveTabWinPosSize(aIter->second, nOffsetX, nOffsetY);
426 // -----------------------------------------------------------------------------
427 void OJoinController::removeConnectionData(const TTableConnectionData::value_type& _pData)
429 m_vTableConnectionData.erase( ::std::remove(m_vTableConnectionData.begin(),m_vTableConnectionData.end(),_pData),m_vTableConnectionData.end());
431 // -----------------------------------------------------------------------------
432 void OJoinController::describeSupportedFeatures()
434 OJoinController_BASE::describeSupportedFeatures();
435 implDescribeSupportedFeature( ".uno:Redo", ID_BROWSER_REDO, CommandGroup::EDIT );
436 implDescribeSupportedFeature( ".uno:Save", ID_BROWSER_SAVEDOC, CommandGroup::DOCUMENT );
437 implDescribeSupportedFeature( ".uno:Undo", ID_BROWSER_UNDO, CommandGroup::EDIT );
438 implDescribeSupportedFeature( ".uno:AddTable", ID_BROWSER_ADDTABLE,CommandGroup::EDIT );
439 implDescribeSupportedFeature( ".uno:EditDoc", ID_BROWSER_EDITDOC, CommandGroup::EDIT );
441 // -----------------------------------------------------------------------------
442 sal_Bool SAL_CALL OJoinController::suspend(sal_Bool _bSuspend) throw( RuntimeException )
444 if ( getBroadcastHelper().bInDispose || getBroadcastHelper().bDisposed )
445 return sal_True;
447 vos::OGuard aSolarGuard( Application::GetSolarMutex() );
448 ::osl::MutexGuard aGuard( getMutex() );
449 if ( getView() && getView()->IsInModalMode() )
450 return sal_False;
451 sal_Bool bCheck = sal_True;
452 if ( _bSuspend )
454 bCheck = saveModified() != RET_CANCEL;
455 if ( bCheck )
456 OSingleDocumentController::suspend(_bSuspend);
458 return bCheck;
460 // -----------------------------------------------------------------------------
461 void OJoinController::loadTableWindows(const Sequence<PropertyValue>& aViewProps)
463 m_vTableData.clear();
465 const PropertyValue *pIter = aViewProps.getConstArray();
466 const PropertyValue *pEnd = pIter + aViewProps.getLength();
467 for (; pIter != pEnd; ++pIter)
469 if ( pIter->Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM ( "Tables" ) ) )
471 m_aMinimumTableViewSize = Point();
472 Sequence<PropertyValue> aWindow;
473 pIter->Value >>= aWindow;
474 const PropertyValue *pTablesIter = aWindow.getConstArray();
475 const PropertyValue *pTablesEnd = pTablesIter + aWindow.getLength();
476 for (; pTablesIter != pTablesEnd; ++pTablesIter)
478 Sequence<PropertyValue> aTable;
479 pTablesIter->Value >>= aTable;
480 loadTableWindow(aTable);
482 if ( m_aMinimumTableViewSize != Point() )
484 getJoinView()->getScrollHelper()->resetRange(m_aMinimumTableViewSize);
486 break;
490 // -----------------------------------------------------------------------------
491 void OJoinController::loadTableWindow(const Sequence<PropertyValue>& _rTable)
493 sal_Int32 nX = -1, nY = -1, nHeight = -1, nWidth = -1;
495 ::rtl::OUString sComposedName,sTableName,sWindowName;
496 sal_Bool bShowAll = false;
497 const PropertyValue *pIter = _rTable.getConstArray();
498 const PropertyValue *pEnd = pIter + _rTable.getLength();
499 for (; pIter != pEnd; ++pIter)
501 if ( pIter->Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM ( "ComposedName" ) ) )
502 pIter->Value >>= sComposedName;
503 else if ( pIter->Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM ( "TableName" ) ) )
504 pIter->Value >>= sTableName;
505 else if ( pIter->Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM ( "WindowName" ) ) )
506 pIter->Value >>= sWindowName;
507 else if ( pIter->Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM ( "WindowTop" ) ) )
509 pIter->Value >>= nY;
511 else if ( pIter->Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM ( "WindowLeft" ) ) )
513 pIter->Value >>= nX;
515 else if ( pIter->Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM ( "WindowWidth" ) ) )
517 pIter->Value >>= nWidth;
519 else if ( pIter->Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM ( "WindowHeight" ) ) )
521 pIter->Value >>= nHeight;
523 else if ( pIter->Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM ( "ShowAll" ) ) )
525 pIter->Value >>= bShowAll;
528 TTableWindowData::value_type pData = createTableWindowData(sComposedName,sTableName,sWindowName);
529 if ( pData )
531 pData->SetPosition(Point(nX,nY));
532 pData->SetSize( Size( nWidth, nHeight ) );
533 pData->ShowAll(bShowAll);
534 m_vTableData.push_back(pData);
535 if ( m_aMinimumTableViewSize.X() < (nX+nWidth) )
536 m_aMinimumTableViewSize.X() = (nX+nWidth);
537 if ( m_aMinimumTableViewSize.Y() < (nY+nHeight) )
538 m_aMinimumTableViewSize.Y() = (nY+nHeight);
541 // -----------------------------------------------------------------------------
542 void OJoinController::saveTableWindows(Sequence<PropertyValue>& _rViewProps)
544 if ( !m_vTableData.empty() )
546 PropertyValue *pViewIter = _rViewProps.getArray();
547 PropertyValue *pEnd = pViewIter + _rViewProps.getLength();
548 const static ::rtl::OUString s_sTables(RTL_CONSTASCII_USTRINGPARAM("Tables"));
549 for (; pViewIter != pEnd && pViewIter->Name != s_sTables; ++pViewIter)
552 if ( pViewIter == pEnd )
554 sal_Int32 nLen = _rViewProps.getLength();
555 _rViewProps.realloc( nLen + 1 );
556 pViewIter = _rViewProps.getArray() + nLen;
557 pViewIter->Name = s_sTables;
560 Sequence<PropertyValue> aTables(m_vTableData.size());
561 PropertyValue *pIter = aTables.getArray();
563 Sequence<PropertyValue> aWindow(8);
565 TTableWindowData::iterator aIter = m_vTableData.begin();
566 TTableWindowData::iterator aEnd = m_vTableData.end();
567 for(sal_Int32 i = 1;aIter != aEnd;++aIter,++pIter,++i)
569 pIter->Name = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Table")) + ::rtl::OUString::valueOf(i);
571 sal_Int32 nPos = 0;
572 aWindow[nPos].Name = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("ComposedName"));
573 aWindow[nPos++].Value <<= (*aIter)->GetComposedName();
574 aWindow[nPos].Name = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("TableName"));
575 aWindow[nPos++].Value <<= (*aIter)->GetTableName();
576 aWindow[nPos].Name = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("WindowName"));
577 aWindow[nPos++].Value <<= (*aIter)->GetWinName();
578 aWindow[nPos].Name = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("WindowTop"));
579 aWindow[nPos++].Value <<= (*aIter)->GetPosition().Y();
580 aWindow[nPos].Name = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("WindowLeft"));
581 aWindow[nPos++].Value <<= (*aIter)->GetPosition().X();
582 aWindow[nPos].Name = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("WindowWidth"));
583 aWindow[nPos++].Value <<= (*aIter)->GetSize().Width();
584 aWindow[nPos].Name = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("WindowHeight"));
585 aWindow[nPos++].Value <<= (*aIter)->GetSize().Height();
586 aWindow[nPos].Name = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("ShowAll"));
587 aWindow[nPos++].Value <<= (*aIter)->IsShowAll();
589 pIter->Value <<= aWindow;
591 pViewIter->Value <<= aTables;
594 // -----------------------------------------------------------------------------
595 TTableWindowData::value_type OJoinController::createTableWindowData(const ::rtl::OUString& _sComposedName,const ::rtl::OUString& _sTableName,const ::rtl::OUString& _sWindowName)
597 OJoinDesignView* pView = getJoinView();
598 if( pView )
599 return pView->getTableView()->createTableWindowData(_sComposedName,_sTableName,_sWindowName);
600 OSL_ENSURE(0,"We should never ever reach this point!");
602 return TTableWindowData::value_type();
604 // .............................................................................
605 } // namespace dbaui
606 // .............................................................................