User: hr Date: 2007-09-26 14:47:05+0000 Modified: dba/dbaccess/source/ui/app/AppDetailPageHelper.cxx
Log: INTEGRATION: CWS dba24a (1.25.2); FILE MERGED 2007/08/30 07:00:58 oj 1.25.2.2: #i46395# enable toolbar for previewmode even when readonly 2007/08/03 06:14:17 oj 1.25.2.1: #i69740# implement the selection interface File Changes: Directory: /dba/dbaccess/source/ui/app/ ======================================= File [changed]: AppDetailPageHelper.cxx Url: http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/app/AppDetailPageHelper.cxx?r1=1.26&r2=1.27 Delta lines: +19 -1 -------------------- --- AppDetailPageHelper.cxx 2007-08-31 09:15:10+0000 1.26 +++ AppDetailPageHelper.cxx 2007-09-26 14:47:02+0000 1.27 @@ -307,7 +307,7 @@ m_aTBPreview.SetHelpId(HID_APP_VIEW_PREVIEW_CB); m_aTBPreview.SetDropdownClickHdl( LINK( this, OAppDetailPageHelper, OnDropdownClickHdl ) ); m_aTBPreview.EnableMenuStrings(); - m_aTBPreview.Enable(!m_rBorderWin.getView()->getCommandController()->isDataSourceReadOnly()); + m_aTBPreview.Enable(TRUE); m_aBorder.SetUniqueId(UID_APP_VIEW_PREVIEW_1); @@ -446,6 +446,24 @@ } } // ----------------------------------------------------------------------------- +void OAppDetailPageHelper::selectElements(const Sequence< ::rtl::OUString>& _aNames) +{ + int nPos = getVisibleControlIndex(); + if ( nPos < CONTROL_COUNT ) + { + DBTreeListBox& rTree = *m_pLists[nPos]; + rTree.SelectAll(FALSE); + const ::rtl::OUString* pIter = _aNames.getConstArray(); + const ::rtl::OUString* pEnd = pIter + _aNames.getLength(); + for(;pIter != pEnd;++pIter) + { + SvLBoxEntry* pEntry = rTree.GetEntryPosByName(*pIter); + if ( pEntry ) + rTree.Select(pEntry); + } + } +} +// ----------------------------------------------------------------------------- ::rtl::OUString OAppDetailPageHelper::getQualifiedName( SvLBoxEntry* _pEntry ) const { int nPos = getVisibleControlIndex(); --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
