diff options
author | Efe Gürkan YALAMAN <efeyalaman@gmail.com> | 2013-07-24 02:00:05 +0300 |
---|---|---|
committer | Thorsten Behrens <tbehrens@suse.com> | 2013-08-01 02:19:33 +0200 |
commit | 8577673a7ccafedb03e3b9762a2f557259acea22 (patch) | |
tree | 980b95e7b9cd8a3f0e941e214bd17407144d6d9f /cui | |
parent | 9bc5a1f3978deb9722b747d805cda4a773301437 (diff) |
Tabpage doesn't crash on load and traverses configurations
Tabpage now works without crashing. It also traverses configurations.
Traversed configurations doesn't display yet. But traversal can be seen
when debugging. Root of the traversal should be given as a until "/"
part. For example "org.openoffice" not accepted. But
"org.openoffice.Office.Canvas" accepted.
Change-Id: I2d3026781bfaafa0f721b317249c8879f103bd05
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/options/optaboutconfig.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cui/source/options/optaboutconfig.cxx b/cui/source/options/optaboutconfig.cxx index b7072c32e709..0b9eb61e3c39 100644 --- a/cui/source/options/optaboutconfig.cxx +++ b/cui/source/options/optaboutconfig.cxx @@ -89,7 +89,7 @@ void CuiAboutConfigTabPage::Reset( const SfxItemSet& ) Reference< XNameAccess > xConfigAccess = getConfigAccess(); - FillItems( xConfigAccess, OUString("org.openoffice") ); + FillItems( xConfigAccess, OUString("org.openoffice.Office.Canvas") ); } void CuiAboutConfigTabPage::FillItems( Reference< XNameAccess >xNameAccess, OUString sPath) @@ -102,13 +102,13 @@ void CuiAboutConfigTabPage::FillItems( Reference< XNameAccess >xNameAccess, OUSt for( sal_Int16 i = 0; i < seqItems.getLength(); ++i ) { Any aNode = xHierarchicalNameAccess->getByHierarchicalName( seqItems[i] ); - Reference< XHierarchicalNameAccess >xNextHierarchicalNameAccess( aNode, uno::UNO_QUERY_THROW ); - Reference< XNameAccess > xNextNameAccess( xNextHierarchicalNameAccess, uno::UNO_QUERY_THROW ); bIsLeafNode = sal_True; try { + Reference< XHierarchicalNameAccess >xNextHierarchicalNameAccess( aNode, uno::UNO_QUERY_THROW ); + Reference< XNameAccess > xNextNameAccess( xNextHierarchicalNameAccess, uno::UNO_QUERY_THROW ); uno::Sequence < OUString > seqNext = xNextNameAccess->getElementNames(); FillItems( xNextNameAccess, sPath + OUString("/") + seqItems[i] ); bIsLeafNode = sal_False; @@ -122,7 +122,7 @@ void CuiAboutConfigTabPage::FillItems( Reference< XNameAccess >xNameAccess, OUSt { //InsertEntry( sPath, "", "", ""); //Reference< beans::Property > aProperty = xHierarchicalNameAccess->getAsProperty();//getPropertyValue( seqItems[ i ] ); - //InsertEntry( sPath + OUString("/") + seqItems[ i ], OUString(""), OUString(""), xNameAccess->getPropertyValue( seqItems[ i ] ) ); + //InsertEntry( sPath + OUString("/") + seqItems[ i ], OUString(""), OUString(""), xHierarchicalNameAccess->getByHierarchicalName( seqItems[ i ] ).Value ); } } } @@ -136,7 +136,7 @@ Reference< XNameAccess > CuiAboutConfigTabPage::getConfigAccess() beans::NamedValue aProperty; aProperty.Name = "nodepath"; - aProperty.Value = uno::makeAny( OUString("org.openoffice") ); + aProperty.Value = uno::makeAny( OUString("org.openoffice.Office.Canvas") ); uno::Sequence< uno::Any > aArgumentList( 1 ); aArgumentList[0] = uno::makeAny( aProperty ); |