25#include <com/sun/star/beans/PropertyAttribute.hpp>
26#include <com/sun/star/form/FormComponentType.hpp>
27#include <com/sun/star/io/XMarkableStream.hpp>
28#include <com/sun/star/text/WritingMode2.hpp>
53namespace WritingMode2 = ::com::sun::star::text::WritingMode2;
74 ,m_nWritingMode( WritingMode2::
CONTEXT )
75 ,m_nContextWritingMode( WritingMode2::
CONTEXT )
76 ,m_bEnableVisible(true)
79 ,m_bRecordMarker(true)
81 ,m_bAlwaysShowCursor(false)
82 ,m_bDisplaySynchron(true)
84 m_nClassId = FormComponentType::GRIDCONTROL;
87OGridControlModel::OGridControlModel(
const OGridControlModel* _pOriginal,
const Reference< XComponentContext >& _rxFactory )
88 :OControlModel( _pOriginal, _rxFactory )
90 ,OErrorBroadcaster( OComponentHelper::rBHelper )
91 ,FontControlModel( _pOriginal )
94 ,m_aRowSetChangeListeners(
m_aMutex )
96 m_aDefaultControl = _pOriginal->m_aDefaultControl;
97 m_bEnable = _pOriginal->m_bEnable;
98 m_bEnableVisible = _pOriginal->m_bEnableVisible;
99 m_bNavigation = _pOriginal->m_bNavigation;
100 m_nBorder = _pOriginal->m_nBorder;
101 m_nWritingMode = _pOriginal->m_nWritingMode;
102 m_nContextWritingMode = _pOriginal->m_nContextWritingMode;
103 m_bRecordMarker = _pOriginal->m_bRecordMarker;
104 m_bPrintable = _pOriginal->m_bPrintable;
105 m_bAlwaysShowCursor = _pOriginal->m_bAlwaysShowCursor;
106 m_bDisplaySynchron = _pOriginal->m_bDisplaySynchron;
108 cloneColumns( _pOriginal );
112OGridControlModel::~OGridControlModel()
114 if (!OComponentHelper::rBHelper.bDisposed)
122Reference< XCloneable > SAL_CALL OGridControlModel::createClone( )
125 pClone->OControlModel::clonedFrom(
this );
129 return static_cast< XCloneable*
>(
static_cast< OControlModel*
>( pClone.get() ) );
136 Reference< XCloneable > xColCloneable;
138 for (
auto const& column : _pOriginalContainer->
m_aItems)
141 xColCloneable.set(column, css::uno::UNO_QUERY);
142 DBG_ASSERT( xColCloneable.is(),
"OGridControlModel::cloneColumns: column is not cloneable!" );
143 if ( xColCloneable.is() )
146 Reference< XCloneable > xColClone( xColCloneable->createClone() );
147 DBG_ASSERT( xColClone.is(),
"OGridControlModel::cloneColumns: invalid column clone!" );
148 if ( xColClone.is() )
151 insertByIndex(
nIndex, xColClone->queryInterface( m_aElementType ) );
159 TOOLS_WARN_EXCEPTION(
"forms.component",
"OGridControlModel::cloneColumns: caught an exception while cloning the columns!" );
164css::uno::Sequence<OUString> OGridControlModel::getSupportedServiceNames()
166 css::uno::Sequence<OUString> aSupported = OControlModel::getSupportedServiceNames();
167 aSupported.realloc(aSupported.getLength() + 4);
168 auto pSupported = aSupported.getArray();
169 pSupported[aSupported.getLength()-4] =
"com.sun.star.awt.UnoControlModel";
175Any SAL_CALL OGridControlModel::queryAggregation(
const Type& _rType )
177 Any aReturn = OGridControlModel_BASE::queryInterface(_rType);
178 if ( !aReturn.hasValue() )
180 aReturn = OControlModel::queryAggregation( _rType );
181 if ( !aReturn.hasValue() )
183 aReturn = OInterfaceContainer::queryInterface( _rType );
184 if ( !aReturn.hasValue() )
185 aReturn = OErrorBroadcaster::queryInterface( _rType );
192void SAL_CALL OGridControlModel::errorOccured(
const SQLErrorEvent& _rEvent )
199Reference< XRowSet > SAL_CALL OGridControlModel::getRowSet( )
201 return Reference< XRowSet >( getParent(), UNO_QUERY );
204void SAL_CALL OGridControlModel::setRowSet(
const Reference< XRowSet >& )
206 OSL_FAIL(
"OGridControlModel::setRowSet: not supported!" );
209void SAL_CALL OGridControlModel::addRowSetChangeListener(
const Reference< XRowSetChangeListener >& i_Listener )
211 if ( i_Listener.is() )
212 m_aRowSetChangeListeners.addInterface( i_Listener );
215void SAL_CALL OGridControlModel::removeRowSetChangeListener(
const Reference< XRowSetChangeListener >& i_Listener )
217 m_aRowSetChangeListeners.removeInterface( i_Listener );
221void SAL_CALL OGridControlModel::setParent(
const css::uno::Reference<css::uno::XInterface>& i_Parent )
223 ::osl::ClearableMutexGuard aGuard(
m_aMutex );
224 if ( i_Parent == getParent() )
226 OControlModel::setParent( i_Parent );
227 EventObject
aEvent( *
this );
229 m_aRowSetChangeListeners.notifyEach( &XRowSetChangeListener::onRowSetChanged,
aEvent );
231Sequence< Type > SAL_CALL OGridControlModel::getTypes( )
235 OControlModel::getTypes(),
236 OInterfaceContainer::getTypes(),
237 OErrorBroadcaster::getTypes()
239 OGridControlModel_BASE::getTypes()
244void OGridControlModel::disposing()
246 OControlModel::disposing();
247 OErrorBroadcaster::disposing();
248 OInterfaceContainer::disposing();
250 EventObject aEvt(
static_cast<XWeak*
>(
this));
251 m_aSelectListeners.disposeAndClear(aEvt);
252 m_aResetListeners.disposeAndClear(aEvt);
253 m_aRowSetChangeListeners.disposeAndClear(aEvt);
257void OGridControlModel::disposing(
const EventObject& _rEvent)
259 OControlModel::disposing( _rEvent );
260 OInterfaceContainer::disposing( _rEvent );
264sal_Bool SAL_CALL OGridControlModel::select(
const Any& rElement)
266 ::osl::ClearableMutexGuard aGuard(
m_aMutex );
267 Reference<XPropertySet> xSel;
268 if (rElement.hasValue())
270 xSel.set(rElement, css::uno::UNO_QUERY);
273 throw IllegalArgumentException();
276 css::uno::Reference<css::uno::XInterface> xMe =
static_cast<XWeak*
>(
this);
279 Reference<XChild> xAsChild(xSel, UNO_QUERY);
280 if (!xAsChild.is() || (xAsChild->getParent() != xMe))
282 throw IllegalArgumentException();
285 if ( xSel != m_xSelection )
289 m_aSelectListeners.notifyEach( &XSelectionChangeListener::selectionChanged, EventObject( *
this ) );
294Any SAL_CALL OGridControlModel::getSelection()
296 return Any(m_xSelection);
299void OGridControlModel::addSelectionChangeListener(
const Reference< XSelectionChangeListener >& _rxListener)
301 m_aSelectListeners.addInterface(_rxListener);
304void OGridControlModel::removeSelectionChangeListener(
const Reference< XSelectionChangeListener >& _rxListener)
306 m_aSelectListeners.removeInterface(_rxListener);
310Reference<XPropertySet> SAL_CALL OGridControlModel::createColumn(
const OUString& ColumnType)
316Reference<XPropertySet> OGridControlModel::createColumnById(sal_Int32 nTypeId)
const
318 Reference<XPropertySet> xReturn;
332 OSL_FAIL(
"OGridControlModel::createColumn: Unknown Column");
337css::uno::Sequence<OUString> SAL_CALL OGridControlModel::getColumnTypes()
343void SAL_CALL OGridControlModel::reset()
346 EventObject aEvt(
static_cast<XWeak*
>(
this));
347 bool bContinue =
true;
349 bContinue = aIter.
next()->approveReset(aEvt);
353 m_aResetListeners.notifyEach( &XResetListener::resetted, aEvt );
356void SAL_CALL OGridControlModel::addResetListener(
const Reference<XResetListener>& _rxListener)
358 m_aResetListeners.addInterface(_rxListener);
360void SAL_CALL OGridControlModel::removeResetListener(
const Reference<XResetListener>& _rxListener)
362 m_aResetListeners.removeInterface(_rxListener);
364void OGridControlModel::_reset()
366 Reference<XReset> xReset;
367 sal_Int32
nCount = getCount();
370 getByIndex(
nIndex ) >>= xReset;
377void OGridControlModel::describeFixedProperties( Sequence< Property >& _rProps )
const
380 css::beans::Property* pProperties = _rProps.getArray();
406 css::beans::PropertyAttribute::MAYBEDEFAULT);
414 css::beans::PropertyAttribute::MAYBEVOID | css::beans::PropertyAttribute::TRANSIENT);
420 DBG_ASSERT( pProperties == _rProps.getArray() + _rProps.getLength(),
"<...>::describeFixedProperties/getInfoHelper: forgot to adjust the count ?");
422void OGridControlModel::getFastPropertyValue(Any& rValue, sal_Int32 nHandle )
const
427 rValue <<= m_nContextWritingMode;
430 rValue <<= m_nWritingMode;
433 rValue <<= m_sHelpText;
436 rValue <<= m_sHelpURL;
439 rValue <<= m_bDisplaySynchron;
442 rValue <<= m_bAlwaysShowCursor;
445 rValue = m_aCursorColor;
448 rValue <<= m_bPrintable;
454 rValue <<= m_bNavigation;
457 rValue <<= m_bRecordMarker;
460 rValue <<= m_bEnable;
463 rValue <<= m_bEnableVisible;
466 rValue <<= m_nBorder;
469 rValue = m_aBorderColor;
472 rValue <<= m_aDefaultControl;
475 rValue = m_aBackgroundColor;
478 rValue = m_aRowHeight;
481 if ( isFontRelatedProperty(
nHandle ) )
482 FontControlModel::getFastPropertyValue( rValue,
nHandle );
484 OControlModel::getFastPropertyValue( rValue,
nHandle );
488sal_Bool OGridControlModel::convertFastPropertyValue( Any& rConvertedValue, Any& rOldValue,
489 sal_Int32 nHandle,
const Any& rValue )
491 bool bModified(
false);
495 bModified =
tryPropertyValue( rConvertedValue, rOldValue, rValue, m_nContextWritingMode );
498 bModified =
tryPropertyValue( rConvertedValue, rOldValue, rValue, m_nWritingMode );
501 bModified =
tryPropertyValue(rConvertedValue, rOldValue, rValue, m_sHelpText);
504 bModified =
tryPropertyValue(rConvertedValue, rOldValue, rValue, m_sHelpURL);
507 bModified =
tryPropertyValue(rConvertedValue, rOldValue, rValue, m_bDisplaySynchron);
510 bModified =
tryPropertyValue(rConvertedValue, rOldValue, rValue, m_bAlwaysShowCursor);
513 if (!rValue.hasValue() || !m_aCursorColor.hasValue())
515 if (rValue.hasValue() && (TypeClass_LONG != rValue.getValueType().getTypeClass()))
517 throw IllegalArgumentException();
519 rOldValue = m_aCursorColor;
520 rConvertedValue = rValue;
521 bModified = rOldValue != rConvertedValue;
527 bModified =
tryPropertyValue(rConvertedValue, rOldValue, rValue, m_bPrintable);
533 bModified =
tryPropertyValue(rConvertedValue, rOldValue, rValue, m_bNavigation);
536 bModified =
tryPropertyValue(rConvertedValue, rOldValue, rValue, m_bRecordMarker);
539 bModified =
tryPropertyValue(rConvertedValue, rOldValue, rValue, m_bEnable);
542 bModified =
tryPropertyValue(rConvertedValue, rOldValue, rValue, m_bEnableVisible);
545 bModified =
tryPropertyValue(rConvertedValue, rOldValue, rValue, m_nBorder);
551 bModified =
tryPropertyValue(rConvertedValue, rOldValue, rValue, m_aDefaultControl);
559 sal_Int32 nNewVal( 0 );
560 if ( ( rConvertedValue >>= nNewVal ) && ( nNewVal <= 0 ) )
562 rConvertedValue.clear();
563 bModified = m_aRowHeight.hasValue();
568 if ( isFontRelatedProperty(
nHandle ) )
569 bModified = FontControlModel::convertFastPropertyValue( rConvertedValue, rOldValue,
nHandle, rValue );
571 bModified = OControlModel::convertFastPropertyValue( rConvertedValue, rOldValue,
nHandle, rValue);
575void OGridControlModel::setFastPropertyValue_NoBroadcast( sal_Int32 nHandle,
const Any& rValue )
580 rValue >>= m_nContextWritingMode;
583 rValue >>= m_nWritingMode;
586 rValue >>= m_sHelpText;
589 rValue >>= m_sHelpURL;
592 m_bDisplaySynchron =
getBOOL(rValue);
595 m_bAlwaysShowCursor =
getBOOL(rValue);
598 m_aCursorColor = rValue;
601 m_bPrintable =
getBOOL(rValue);
607 m_bNavigation =
getBOOL(rValue);
613 m_bEnableVisible =
getBOOL(rValue);
616 m_bRecordMarker =
getBOOL(rValue);
619 rValue >>= m_nBorder;
622 m_aBorderColor = rValue;
625 rValue >>= m_aDefaultControl;
628 m_aBackgroundColor = rValue;
631 m_aRowHeight = rValue;
634 if ( isFontRelatedProperty(
nHandle ) )
636 FontControlModel::setFastPropertyValue_NoBroadcast_impl(
637 *
this, &OGridControlModel::setDependentFastPropertyValue,
641 OControlModel::setFastPropertyValue_NoBroadcast(
nHandle, rValue );
646Any OGridControlModel::getPropertyDefaultByHandle( sal_Int32 nHandle )
const
653 aReturn <<= WritingMode2::CONTEXT;
671 aReturn <<= OUString();
674 aReturn <<= sal_Int16(1);
684 if ( isFontRelatedProperty(
nHandle ) )
685 aReturn = FontControlModel::getPropertyDefaultByHandle(
nHandle );
687 aReturn = OControlModel::getPropertyDefaultByHandle(
nHandle);
692void OGridControlModel::gotColumn(
const Reference< XInterface >& _rxColumn )
694 Reference< XSQLErrorBroadcaster > xBroadcaster( _rxColumn, UNO_QUERY );
695 if ( xBroadcaster.is() )
696 xBroadcaster->addSQLErrorListener(
this );
699void OGridControlModel::lostColumn(
const Reference< XInterface >& _rxColumn)
701 if ( m_xSelection == _rxColumn )
703 m_xSelection.clear();
704 EventObject aEvt(
static_cast< XWeak*
>(
this ) );
705 m_aSelectListeners.notifyEach( &XSelectionChangeListener::selectionChanged, aEvt );
707 Reference< XSQLErrorBroadcaster > xBroadcaster( _rxColumn, UNO_QUERY );
708 if ( xBroadcaster.is() )
709 xBroadcaster->removeSQLErrorListener(
this );
712void OGridControlModel::implRemoved(
const css::uno::Reference<css::uno::XInterface>& _rxObject)
714 OInterfaceContainer::implRemoved(_rxObject);
715 lostColumn(_rxObject);
720 OInterfaceContainer::implInserted( _pElement );
724void OGridControlModel::impl_replacedElement(
const ContainerEvent& _rEvent, ::osl::ClearableMutexGuard& _rInstanceLock )
726 Reference< XInterface > xOldColumn( _rEvent.ReplacedElement, UNO_QUERY );
727 Reference< XInterface > xNewColumn( _rEvent.Element, UNO_QUERY );
728 bool bNewSelection = ( xOldColumn == m_xSelection );
729 lostColumn( xOldColumn );
730 gotColumn( xNewColumn );
732 m_xSelection.set( xNewColumn, UNO_QUERY );
733 OInterfaceContainer::impl_replacedElement( _rEvent, _rInstanceLock );
737 m_aSelectListeners.notifyEach( &XSelectionChangeListener::selectionChanged, EventObject( *
this ) );
746void OGridControlModel::approveNewElement(
const Reference< XPropertySet >& _rxObject,
ElementDescription* _pElement )
748 OGridColumn* pCol = comphelper::getFromUnoTunnel<OGridColumn>( _rxObject );
750 throw IllegalArgumentException();
751 OInterfaceContainer::approveNewElement( _rxObject, _pElement );
755OUString SAL_CALL OGridControlModel::getServiceName()
760void OGridControlModel::write(
const Reference<XObjectOutputStream>& _rxOutStream)
762 OControlModel::write(_rxOutStream);
763 Reference<XMarkableStream> xMark(_rxOutStream, UNO_QUERY);
765 _rxOutStream->writeShort(0x0008);
767 sal_Int32 nLen = getCount();
768 _rxOutStream->writeLong(nLen);
769 for (sal_Int32
i = 0;
i < nLen;
i++)
772 OGridColumn* pCol = comphelper::getFromUnoTunnel<OGridColumn>(m_aItems[
i]);
773 DBG_ASSERT(pCol !=
nullptr,
"OGridControlModel::write : such items should never reach it into my container !");
776 sal_Int32 nMark = xMark->createMark();
777 sal_Int32 nObjLen = 0;
778 _rxOutStream->writeLong(nObjLen);
780 pCol->
write(_rxOutStream);
782 nObjLen = xMark->offsetToMark(nMark) - 4;
783 xMark->jumpToMark(nMark);
784 _rxOutStream->writeLong(nObjLen);
785 xMark->jumpToFurthest();
786 xMark->deleteMark(nMark);
789 writeEvents(_rxOutStream);
792 sal_uInt16 nAnyMask = 0;
793 if (m_aRowHeight.getValueType().getTypeClass() == TypeClass_LONG)
797 if (m_aTabStop.getValueType().getTypeClass() == TypeClass_BOOLEAN)
799 if ( hasTextColor() )
801 if (m_aBackgroundColor.getValueType().getTypeClass() == TypeClass_LONG)
803 if (!m_bRecordMarker)
805 _rxOutStream->writeShort(nAnyMask);
807 _rxOutStream->writeLong(
getINT32(m_aRowHeight));
809 const FontDescriptor& aFont = getFont();
814 _rxOutStream->writeShort( sal::static_int_cast< sal_Int16 >( aFont.Slant ) );
815 _rxOutStream->writeShort( aFont.Underline );
816 _rxOutStream->writeShort( aFont.Strikeout );
817 _rxOutStream->writeShort( sal_Int16(aFont.Orientation * 10) );
818 _rxOutStream->writeBoolean( aFont.Kerning );
819 _rxOutStream->writeBoolean( aFont.WordLineMode );
821 _rxOutStream->writeLong( aFont.Width );
822 _rxOutStream->writeLong( aFont.Height );
825 _rxOutStream->writeUTF( aFont.Name );
826 _rxOutStream->writeUTF( aFont.StyleName );
827 _rxOutStream->writeShort( aFont.Family );
828 _rxOutStream->writeShort( aFont.CharSet );
829 _rxOutStream->writeShort( aFont.Pitch );
831 _rxOutStream << m_aDefaultControl;
832 _rxOutStream->writeShort(m_nBorder);
833 _rxOutStream->writeBoolean(m_bEnable);
835 _rxOutStream->writeBoolean(
getBOOL(m_aTabStop));
836 _rxOutStream->writeBoolean(m_bNavigation);
838 _rxOutStream->writeLong( sal_Int32(getTextColor()) );
840 _rxOutStream << m_sHelpText;
842 _rxOutStream << getFont();
844 _rxOutStream->writeBoolean(m_bRecordMarker);
846 _rxOutStream->writeBoolean(m_bPrintable);
849 _rxOutStream->writeLong(
getINT32(m_aBackgroundColor));
852void OGridControlModel::read(
const Reference<XObjectInputStream>& _rxInStream)
855 OControlModel::read(_rxInStream);
856 Reference<XMarkableStream> xMark(_rxInStream, UNO_QUERY);
858 sal_Int16
nVersion = _rxInStream->readShort();
860 sal_Int32 nLen = _rxInStream->readLong();
863 for (sal_Int32
i = 0;
i < nLen;
i++)
867 _rxInStream >> sModelName;
869 DBG_ASSERT(xCol.is(),
"OGridControlModel::read : unknown column type !");
870 sal_Int32 nObjLen = _rxInStream->readLong();
873 sal_Int32 nMark = xMark->createMark();
876 OGridColumn* pCol = comphelper::getFromUnoTunnel<OGridColumn>(xCol);
877 pCol->
read(_rxInStream);
879 xMark->jumpToMark(nMark);
880 _rxInStream->skipBytes(nObjLen);
881 xMark->deleteMark(nMark);
884 implInsert(
i, xCol,
false,
nullptr,
false );
890 sal_Int32 nObjLen = _rxInStream->readLong();
893 sal_Int32 nMark = xMark->createMark();
894 Reference<XPersistObject> xObj(m_xEventAttacher, UNO_QUERY);
896 xObj->read(_rxInStream);
897 xMark->jumpToMark(nMark);
898 _rxInStream->skipBytes(nObjLen);
899 xMark->deleteMark(nMark);
902 for (sal_Int32
i = 0;
i < nLen;
i++)
904 css::uno::Reference<css::uno::XInterface> xIfc(m_aItems[
i], UNO_QUERY);
905 Reference<XPropertySet> xSet(xIfc, UNO_QUERY);
908 m_xEventAttacher->attach(
i, xIfc,
aHelper );
914 sal_uInt16 nAnyMask = _rxInStream->readShort();
917 sal_Int32
nValue = _rxInStream->readLong();
920 FontDescriptor aFont( getFont() );
924 aFont.Slant =
static_cast<FontSlant
>(_rxInStream->readShort());
925 aFont.Underline = _rxInStream->readShort();
926 aFont.Strikeout = _rxInStream->readShort();
927 aFont.Orientation =
static_cast<float>(_rxInStream->readShort()) / 10;
928 aFont.Kerning = _rxInStream->readBoolean() != 0;
929 aFont.WordLineMode = _rxInStream->readBoolean() != 0;
933 aFont.Width =
static_cast<sal_Int16
>(_rxInStream->readLong());
934 aFont.Height =
static_cast<sal_Int16
>(_rxInStream->readLong());
939 aFont.Name = _rxInStream->readUTF();
940 aFont.StyleName = _rxInStream->readUTF();
941 aFont.Family = _rxInStream->readShort();
942 aFont.CharSet = _rxInStream->readShort();
943 aFont.Pitch = _rxInStream->readShort();
948 _rxInStream >> m_aDefaultControl;
949 m_nBorder = _rxInStream->readShort();
950 m_bEnable = _rxInStream->readBoolean();
953 m_aTabStop <<= (_rxInStream->readBoolean() != 0);
956 m_bNavigation = _rxInStream->readBoolean();
959 sal_Int32
nValue = _rxInStream->readLong();
964 _rxInStream >> m_sHelpText;
967 FontDescriptor aUNOFont;
968 _rxInStream >> aUNOFont;
972 m_bRecordMarker = _rxInStream->readBoolean();
975 m_bPrintable = _rxInStream->readBoolean();
978 sal_Int32
nValue = _rxInStream->readLong();
979 m_aBackgroundColor <<=
nValue;
985extern "C" SAL_DLLPUBLIC_EXPORT XInterface*
987 Sequence<Any>
const &)
#define TYPE_FORMATTEDFIELD
#define TYPE_NUMERICFIELD
#define TYPE_PATTERNFIELD
#define TYPE_CURRENCYFIELD
SAL_DLLPUBLIC_EXPORT XInterface * com_sun_star_form_OGridControlModel_get_implementation(XComponentContext *component, Sequence< Any > const &)
bool hasMoreElements() const
css::uno::Reference< ListenerT > const & next()
void write(const css::uno::Reference< css::io::XObjectOutputStream > &_rxOutStream)
const OUString & getModelName() const
void read(const css::uno::Reference< css::io::XObjectInputStream > &_rxInStream)
OGridControlModel(const css::uno::Reference< css::uno::XComponentContext > &_rxFactory)
#define DBG_ASSERT(sCon, aError)
#define TOOLS_WARN_EXCEPTION(area, stream)
constexpr OUStringLiteral PROPERTY_TABINDEX
constexpr OUStringLiteral PROPERTY_DEFAULTCONTROL
constexpr OUStringLiteral PROPERTY_NAME
constexpr OUStringLiteral PROPERTY_FONT_FAMILY
constexpr OUStringLiteral PROPERTY_BACKGROUNDCOLOR
constexpr OUStringLiteral PROPERTY_FONT_SLANT
constexpr OUStringLiteral PROPERTY_DISPLAYSYNCHRON
constexpr OUStringLiteral PROPERTY_HASNAVIGATION
constexpr OUStringLiteral PROPERTY_CURSORCOLOR
constexpr OUStringLiteral PROPERTY_HELPURL
constexpr OUStringLiteral PROPERTY_FONT_WEIGHT
constexpr OUStringLiteral PROPERTY_FONT_HEIGHT
constexpr OUStringLiteral PROPERTY_FONTRELIEF
constexpr OUStringLiteral PROPERTY_FONT_UNDERLINE
constexpr OUStringLiteral PROPERTY_FONT_STRIKEOUT
constexpr OUStringLiteral PROPERTY_FONT_WORDLINEMODE
constexpr OUStringLiteral PROPERTY_HELPTEXT
constexpr OUStringLiteral PROPERTY_CLASSID
constexpr OUStringLiteral PROPERTY_FONTEMPHASISMARK
constexpr OUStringLiteral PROPERTY_PRINTABLE
constexpr OUStringLiteral PROPERTY_TAG
constexpr OUStringLiteral PROPERTY_TEXTCOLOR
constexpr OUStringLiteral PROPERTY_FONT_CHARSET
constexpr OUStringLiteral PROPERTY_RECORDMARKER
constexpr OUStringLiteral PROPERTY_FONT
constexpr OUStringLiteral PROPERTY_ALWAYSSHOWCURSOR
constexpr OUStringLiteral PROPERTY_ENABLEVISIBLE
constexpr OUStringLiteral PROPERTY_WRITING_MODE
constexpr OUStringLiteral PROPERTY_FONT_STYLENAME
constexpr OUStringLiteral PROPERTY_TEXTLINECOLOR
constexpr OUStringLiteral PROPERTY_ROWHEIGHT
constexpr OUStringLiteral PROPERTY_BORDERCOLOR
constexpr OUStringLiteral PROPERTY_TABSTOP
constexpr OUStringLiteral PROPERTY_FONT_NAME
constexpr OUStringLiteral PROPERTY_BORDER
constexpr OUStringLiteral PROPERTY_ENABLED
constexpr OUStringLiteral PROPERTY_CONTEXT_WRITING_MODE
class SAL_NO_VTABLE XPropertySet
css::uno::Sequence< T > concatSequences(const css::uno::Sequence< T > &rS1, const Ss &... rSn)
bool getBOOL(const Any &_rAny)
FontDescriptor getDefaultFont()
bool tryPropertyValue(Any &_rConvertedValue, Any &_rOldValue, const Any &_rValueToSet, const Any &_rCurrentValue, const Type &_rExpectedType)
sal_Int32 getINT32(const Any &_rAny)
sal_Int32 findPos(const OUString &aStr, const css::uno::Sequence< OUString > &rList)
ListBox is a bit confusing / different from other form components, so here are a few notes:
const sal_uInt16 BACKGROUNDCOLOR
const sal_uInt16 TEXTCOLOR
const sal_uInt16 FONTATTRIBS
const sal_uInt16 RECORDMARKER
const sal_uInt16 ROWHEIGHT
const css::uno::Sequence< OUString > & getColumnTypes()
sal_Int32 getColumnTypeByModelName(const OUString &aModelName)
const sal_uInt16 FONTTYPE
const sal_uInt16 FONTSIZE
const sal_uInt16 FONTDESCRIPTOR
css::uno::Reference< css::linguistic2::XProofreadingIterator > get(css::uno::Reference< css::uno::XComponentContext > const &context)
VCL_DLLPUBLIC float ConvertFontWidth(FontWidth eWidth)
VCL_DLLPUBLIC float ConvertFontWeight(FontWeight eWeight)
#define PROPERTY_ID_FONT_UNDERLINE
#define PROPERTY_ID_FONT_SLANT
#define PROPERTY_ID_HASNAVIGATION
#define PROPERTY_ID_FONTEMPHASISMARK
#define PROPERTY_ID_FONT_HEIGHT
#define PROPERTY_ID_FONTRELIEF
#define PROPERTY_ID_PRINTABLE
#define PROPERTY_ID_WRITING_MODE
#define PROPERTY_ID_FONT_WEIGHT
#define PROPERTY_ID_ENABLEVISIBLE
#define PROPERTY_ID_BACKGROUNDCOLOR
#define PROPERTY_ID_ALWAYSSHOWCURSOR
#define PROPERTY_ID_FONT_NAME
#define PROPERTY_ID_ENABLED
#define PROPERTY_ID_FONT_STRIKEOUT
#define PROPERTY_ID_FONT_WORDLINEMODE
#define PROPERTY_ID_HELPTEXT
#define PROPERTY_ID_CURSORCOLOR
#define PROPERTY_ID_BORDERCOLOR
#define PROPERTY_ID_FONT_CHARSET
#define PROPERTY_ID_CLASSID
#define PROPERTY_ID_TABSTOP
#define PROPERTY_ID_TEXTLINECOLOR
#define PROPERTY_ID_TEXTCOLOR
#define PROPERTY_ID_ROWHEIGHT
#define PROPERTY_ID_DEFAULTCONTROL
#define PROPERTY_ID_CONTEXT_WRITING_MODE
#define PROPERTY_ID_RECORDMARKER
#define PROPERTY_ID_FONT_FAMILY
#define PROPERTY_ID_HELPURL
#define PROPERTY_ID_FONT_STYLENAME
#define PROPERTY_ID_TABINDEX
#define PROPERTY_ID_BORDER
#define PROPERTY_ID_DISPLAYSYNCHRON
constexpr OUStringLiteral FRM_SUN_CONTROL_GRIDCONTROL
constexpr OUStringLiteral FRM_SUN_COMPONENT_GRIDCONTROL
constexpr OUStringLiteral FRM_COMPONENT_GRIDCONTROL
constexpr OUStringLiteral FRM_COMPONENT_GRID
constexpr OUStringLiteral STARDIV_ONE_FORM_CONTROL_GRID
css::uno::Reference< css::uno::XInterface > xInterface