summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPascal Junck <pjunck@openoffice.org>2004-10-22 11:00:41 +0000
committerPascal Junck <pjunck@openoffice.org>2004-10-22 11:00:41 +0000
commit0abac4cfbf31677577ee83fc815efa9c96b9684b (patch)
treec94170c056ceb8bd3e18300554ebd8f1449b2aaa
parent11ff7b890702a11a5d73f2208867bbfccd2c133c (diff)
INTEGRATION: CWS dba17 (1.3.4); FILE MERGED
2004/09/29 15:27:43 fs 1.3.4.1: #i33571# also provide HC icons for tree list entries
-rw-r--r--dbaccess/source/ui/app/AppDetailView.cxx28
-rw-r--r--dbaccess/source/ui/app/AppDetailView.hxx8
2 files changed, 21 insertions, 15 deletions
diff --git a/dbaccess/source/ui/app/AppDetailView.cxx b/dbaccess/source/ui/app/AppDetailView.cxx
index 1d99c69c71b9..96769fa96153 100644
--- a/dbaccess/source/ui/app/AppDetailView.cxx
+++ b/dbaccess/source/ui/app/AppDetailView.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: AppDetailView.cxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: rt $ $Date: 2004-09-09 09:39:35 $
+ * last change: $Author: pjunck $ $Date: 2004-10-22 12:00:28 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -247,7 +247,7 @@ void OTasksWindow::Resize()
m_aFL.SetPosSizePixel( Point(nHalfOutputWidth , 0), Size(aFLSize.Width(), nOutputHeight ) );
}
// -----------------------------------------------------------------------------
-void OTasksWindow::fillCreationNew(const TResourceStruct& _rList ,short _nImageType)
+void OTasksWindow::fillCreationNew( const TResourceStruct& _rList )
{
DBG_CHKTHIS(OTasksWindow,NULL);
Clear();
@@ -268,12 +268,22 @@ void OTasksWindow::fillCreationNew(const TResourceStruct& _rList ,short _nImageT
}
i = 0;
- Sequence< Reference<XGraphic> > aImages = xImageMgr->getImages(_nImageType,aSeq);
+
+ Sequence< Reference< XGraphic> > aImages = xImageMgr->getImages( ImageType::SIZE_DEFAULT | ImageType::COLOR_NORMAL, aSeq );
+ Sequence< Reference< XGraphic> > aHCImages = xImageMgr->getImages( ImageType::SIZE_DEFAULT | ImageType::COLOR_HIGHCONTRAST, aSeq );
+
for (TResourceStruct::const_iterator aIter = _rList.begin(); aIter != aEnd; ++aIter,++i)
{
- Image aImage(aImages[i]);
- SvLBoxEntry* pEntry = m_aCreation.InsertEntry(aIter->first,aImage,aImage);
+ SvLBoxEntry* pEntry = m_aCreation.InsertEntry( aIter->first );
pEntry->SetUserData(reinterpret_cast<void*>(new TResourcePair(aIter->second)));
+
+ Image aImage = Image( aImages[i] );
+ m_aCreation.SetExpandedEntryBmp( pEntry, aImage, BMP_COLOR_NORMAL );
+ m_aCreation.SetCollapsedEntryBmp( pEntry, aImage, BMP_COLOR_NORMAL );
+
+ Image aHCImage = Image( aHCImages[i] );
+ m_aCreation.SetExpandedEntryBmp( pEntry, aHCImage, BMP_COLOR_HIGHCONTRAST );
+ m_aCreation.SetCollapsedEntryBmp( pEntry, aHCImage, BMP_COLOR_HIGHCONTRAST );
}
}
catch(Exception&)
@@ -379,7 +389,7 @@ void OApplicationDetailView::createTablesPage(const Reference< XConnection>& _xC
aList.push_back( TResourceStruct::value_type(ModuleRes(RID_STR_NEW_VIEW),TResourcePair(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(".uno:DBNewView")),RID_STR_VIEWS_HELP_TEXT_DESIGN)));
// aList.push_back( TResourceStruct::value_type(ModuleRes(RID_STR_NEW_VIEW_AUTO),TResourcePair(ID_NEW_VIEW_DESIGN_AUTO_PILOT,RID_STR_VIEWS_HELP_TEXT_WIZARD)));
- static_cast<OTasksWindow*>(m_aTasks.getChildWindow())->fillCreationNew(aList,ImageType::SIZE_DEFAULT | (GetBackground().GetColor().IsDark() ? ImageType::COLOR_HIGHCONTRAST : ImageType::COLOR_NORMAL));
+ static_cast<OTasksWindow*>(m_aTasks.getChildWindow())->fillCreationNew( aList );
static_cast<OTasksWindow*>(m_aTasks.getChildWindow())->Enable(static_cast<OAppBorderWindow*>(GetParent())->getView()->getCommandController()->isCommandEnabled(ID_NEW_TABLE_DESIGN));
m_pControlHelper->createTablesPage(_xConnection);
@@ -391,8 +401,6 @@ void OApplicationDetailView::createPage(ElementType _eType,const Reference< XNam
{
DBG_CHKTHIS(OApplicationDetailView,NULL);
USHORT nTitleId = 0;
- short nImageType = ImageType::SIZE_DEFAULT;
- nImageType |= GetBackground().GetColor().IsDark() ? ImageType::COLOR_HIGHCONTRAST :ImageType::COLOR_NORMAL;
TResourceStruct aList;
aList.reserve(4);
switch(_eType )
@@ -428,7 +436,7 @@ void OApplicationDetailView::createPage(ElementType _eType,const Reference< XNam
OSL_ENSURE(0,"Illegal call!");
}
- static_cast<OTasksWindow*>(m_aTasks.getChildWindow())->fillCreationNew(aList, nImageType);
+ static_cast<OTasksWindow*>(m_aTasks.getChildWindow())->fillCreationNew( aList );
m_pControlHelper->createPage(_eType,_xContainer);
m_aContainer.setTitle(nTitleId);
Resize();
diff --git a/dbaccess/source/ui/app/AppDetailView.hxx b/dbaccess/source/ui/app/AppDetailView.hxx
index fe7bfc8bd595..6fae5cd018ef 100644
--- a/dbaccess/source/ui/app/AppDetailView.hxx
+++ b/dbaccess/source/ui/app/AppDetailView.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: AppDetailView.hxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: rt $ $Date: 2004-09-09 09:39:47 $
+ * last change: $Author: pjunck $ $Date: 2004-10-22 12:00:41 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -142,10 +142,8 @@ namespace dbaui
/** fills the Creation listbox with the necessary strings and images
@param _rList
The strings and the id of the images and help texts to add.
- @param _nImageType
- The image type.
*/
- void fillCreationNew(const TResourceStruct& _rList, short _nImageType);
+ void fillCreationNew( const TResourceStruct& _rList );
void Clear();
void setHelpText(USHORT _nId);