[Libreoffice-commits] core.git: Branch 'feature/aboutconfig' - cui/source
Efe Gürkan YALAMAN
efeyalaman at gmail.com
Wed Jul 24 14:53:56 PDT 2013
cui/source/options/optaboutconfig.cxx | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
New commits:
commit 60f98e3e9a2654b858be55b98425d3e81de5b3ac
Author: Efe Gürkan YALAMAN <efeyalaman at gmail.com>
Date: Thu Jul 25 00:50:43 2013 +0300
Page testing loads options to the LB
Formatting is not at the last version. Page loads all options to the
listbox.
Change-Id: Ic83817ff56411599389d549e6c135e0275dd940c
diff --git a/cui/source/options/optaboutconfig.cxx b/cui/source/options/optaboutconfig.cxx
index af4501f..3a04e39 100644
--- a/cui/source/options/optaboutconfig.cxx
+++ b/cui/source/options/optaboutconfig.cxx
@@ -16,6 +16,7 @@
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <com/sun/star/beans/NamedValue.hpp>
#include <com/sun/star/beans/Property.hpp>
+#include <com/sun/star/beans/XProperty.hpp>
#include <com/sun/star/container/XNameAccess.hpp>
#include <com/sun/star/container/XHierarchicalNameAccess.hpp>
@@ -75,6 +76,7 @@ void CuiAboutConfigTabPage::InsertEntry( OUString& rProp, OUString& rStatus, OU
{
SvTreeListEntry* pEntry = new SvTreeListEntry;
+ pEntry->AddItem( new SvLBoxContextBmp( pEntry, 0, Image(), Image(), 0)); //It is needed, otherwise causes crash
pEntry->AddItem( new SvLBoxString( pEntry, 0, rProp));
pEntry->AddItem( new SvLBoxString( pEntry, 0, rStatus));
pEntry->AddItem( new SvLBoxString( pEntry, 0, rType));
@@ -121,9 +123,10 @@ void CuiAboutConfigTabPage::FillItems( Reference< XNameAccess >xNameAccess, OUSt
if( bIsLeafNode )
{
- //InsertEntry( sPath, "", "", "");
- //Reference< beans::Property > aProperty = xHierarchicalNameAccess->getAsProperty();//getPropertyValue( seqItems[ i ] );
- //InsertEntry( sPath + OUString("/") + seqItems[ i ], OUString(""), OUString(""), xHierarchicalNameAccess->getByHierarchicalName( seqItems[ i ] ).Value );
+ Reference< beans::XProperty > xProperty ( xNameAccess, uno::UNO_QUERY_THROW ) ;
+ beans::Property aProp = xProperty->getAsProperty();
+ OUString test = aProp.Type.getTypeName();
+ InsertEntry( sPath, test, sPath, sPath );//for testing only will change
}
}
}
More information about the Libreoffice-commits
mailing list