[Libreoffice-commits] core.git: Branch 'feature/aboutconfig' - cui/source
Efe Gürkan YALAMAN
efeyalaman at gmail.com
Fri Jul 26 15:01:20 PDT 2013
cui/source/options/optaboutconfig.cxx | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
New commits:
commit 409e9267f26d0c2a6b6099acb2ed5c3d2276f66c
Author: Efe Gürkan YALAMAN <efeyalaman at gmail.com>
Date: Sat Jul 27 01:00:19 2013 +0300
string and long sequence's added.
Change-Id: I46b6eed7a509ba6793f8e2b2a148acae3f4d06cc
diff --git a/cui/source/options/optaboutconfig.cxx b/cui/source/options/optaboutconfig.cxx
index 7b2fbad..56c0d0a 100644
--- a/cui/source/options/optaboutconfig.cxx
+++ b/cui/source/options/optaboutconfig.cxx
@@ -167,6 +167,39 @@ void CuiAboutConfigTabPage::FillItems( Reference< XNameAccess >xNameAccess, OUSt
}
break;
+ case ::com::sun::star::uno::TypeClass_SEQUENCE :
+ //case ::com::sun::star::uno::TypeClass_ARRAY :
+ {
+ test = OUString("");
+ if( OUString("[]long").equals(aProp.getValueTypeName()) )
+ {
+ uno::Sequence<sal_Int32> seqLong;
+ if( aProp >>= seqLong )
+ {
+ //test = OUString("Congrats bro!");
+ for(sal_Int16 nInd=0; nInd < seqLong.getLength(); ++nInd)
+ {
+ OUString sNumber( OUString::valueOf(seqLong[nInd]) );
+ test += sNumber;
+ test += OUString(",");
+ }
+ }
+ }
+
+ if( OUString("[]string") == aProp.getValueTypeName() )
+ {
+ uno::Sequence< OUString > seqOUString;
+ if( aProp >>= seqOUString )
+ {
+ for( sal_Int16 nInd=0; nInd < seqOUString.getLength(); ++nInd )
+ {
+ test += seqOUString[nInd] + OUString(",");
+ }
+ }
+ }
+ }
+ break;
+
default:
{
test = OUString("test");
More information about the Libreoffice-commits
mailing list