datman.cxx (2a97ec55) | datman.cxx (fb0b81f5) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 1413 unchanged lines hidden (view full) --- 1422 Reference< XPropertySet > xPropSet( xModel, UNO_QUERY ); 1423 xPropSet->setPropertyValue( C2U("Name"), makeAny( rName ) ); 1424 1425 // set the name of the to-be-created control 1426 ::rtl::OUString aControlName(C2U("com.sun.star.form.control.InteractionGridControl")); 1427 Any aAny; aAny <<= aControlName; 1428 xPropSet->setPropertyValue( C2U("DefaultControl"),aAny ); 1429 | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 1413 unchanged lines hidden (view full) --- 1422 Reference< XPropertySet > xPropSet( xModel, UNO_QUERY ); 1423 xPropSet->setPropertyValue( C2U("Name"), makeAny( rName ) ); 1424 1425 // set the name of the to-be-created control 1426 ::rtl::OUString aControlName(C2U("com.sun.star.form.control.InteractionGridControl")); 1427 Any aAny; aAny <<= aControlName; 1428 xPropSet->setPropertyValue( C2U("DefaultControl"),aAny ); 1429 |
1430 // the the helpURL | 1430 // the helpURL |
1431 ::rtl::OUString uProp(C2U("HelpURL")); 1432 Reference< XPropertySetInfo > xPropInfo = xPropSet->getPropertySetInfo(); 1433 if (xPropInfo->hasPropertyByName(uProp)) 1434 { 1435 ::rtl::OUString sId = ::rtl::OUString::createFromAscii( INET_HID_SCHEME ); 1436 sId += ::rtl::OUString::createFromAscii( HID_BIB_DB_GRIDCTRL ); 1437 xPropSet->setPropertyValue( uProp, makeAny( sId ) ); 1438 } --- 392 unchanged lines hidden --- | 1431 ::rtl::OUString uProp(C2U("HelpURL")); 1432 Reference< XPropertySetInfo > xPropInfo = xPropSet->getPropertySetInfo(); 1433 if (xPropInfo->hasPropertyByName(uProp)) 1434 { 1435 ::rtl::OUString sId = ::rtl::OUString::createFromAscii( INET_HID_SCHEME ); 1436 sId += ::rtl::OUString::createFromAscii( HID_BIB_DB_GRIDCTRL ); 1437 xPropSet->setPropertyValue( uProp, makeAny( sId ) ); 1438 } --- 392 unchanged lines hidden --- |