Elements' SummaryName specifies the name of the property. Handle contains an implementation-specific handle for the property. Value contains the value of the property or void, if no value is available. State determines if the value comes from the object itself or from a default and if the value cannot be determined exactly.
C++ (Qt)bool getPropertyValue(void *pResult){ try { dhCheck(dhGetValue(L"o", pResult, m_serviceManager, L"Bridge_GetStruct(%S)", L"com.sun.star.beans.PropertyValue")); return true; } catch (std::string str) { std::cerr << str << std::endl; return false; }} CDispPtr propValue;getPropertyValue(&propValue);dhCheck(dhPutValue(propValue, L"Name = %S", L"Author"));dhCheck(dhPutValue(propValue, L"Value = %S", L"Anonimous"));
C++ (Qt)while(!asleep()) sheep++;
C++ (Qt)QAxObject *m_calc = new QAxObject("com.sun.star.ServiceManager", this);qDebug() << (!m_calc || m_calc->isNull() ? "NULL" : "OK"); QAxObject *desktop = m_calc->querySubObject("createInstance(const QString&)", "com.sun.star.frame.Desktop");qDebug() << (!desktop || desktop->isNull() ? "NULL" : "OK"); QAxObject *doc = desktop->querySubObject("getCurrentComponent()");qDebug() << (!doc || doc->isNull() ? "NULL" : "OK"); QAxObject *sheets = doc->querySubObject("getSheets()");qDebug() << (!sheets || sheets->isNull() ? "NULL" : "OK"); QVariant v = sheets->dynamicCall("getCount()");qDebug() << v; QAxObject *sheet = sheets->querySubObject("getByName(const QString&)", "w1");qDebug() << (!sheet || sheet->isNull() ? "NULL" : "OK"); QAxObject *cell = sheet->querySubObject("getCellByPosition(long, long)", 2, 2);qDebug() << (!cell || cell->isNull() ? "NULL" : "OK"); v = cell->dynamicCall("getString()");qDebug() << v;