22#include <com/sun/star/awt/LineEndFormat.hpp>
23#include <com/sun/star/awt/ScrollBarOrientation.hpp>
24#include <com/sun/star/graphic/GraphicProvider.hpp>
25#include <com/sun/star/graphic/XGraphicProvider.hpp>
27#include <helper/property.hxx>
29#include <com/sun/star/awt/VisualEffect.hpp>
30#include <com/sun/star/lang/IndexOutOfBoundsException.hpp>
31#include <com/sun/star/resource/XStringResourceResolver.hpp>
32#include <com/sun/star/awt/ImageScaleMode.hpp>
33#include <com/sun/star/awt/XItemList.hpp>
34#include <com/sun/star/awt/TextAlign.hpp>
39#include <awt/vclxwindows.hxx>
66using ::com::sun::star::uno::Any;
67using ::com::sun::star::uno::Reference;
68using ::com::sun::star::uno::RuntimeException;
69using ::com::sun::star::lang::EventObject;
70using ::com::sun::star::awt::ItemListEvent;
71using ::com::sun::star::awt::XItemList;
72using ::com::sun::star::graphic::XGraphic;
73using ::com::sun::star::graphic::XGraphicProvider;
76using namespace ::com::sun::star::awt::VisualEffect;
77namespace ImageScaleMode = ::com::sun::star::awt::ImageScaleMode;
82 for ( sal_uInt16
d = 0;
d < nDigits;
d++ )
90 for ( sal_uInt16
d = 0;
d < nDigits;
d++ )
104 if ( !_rColorValue.hasValue() )
116 Color nBackgroundColor;
117 _rColorValue >>= nBackgroundColor;
123 Color aCheckedBackground( nBackgroundColor );
129 sal_Int32 nBackgroundLuminance = nBackgroundColor.
GetLuminance();
132 Color aLightShadow( nBackgroundColor );
136 Color aLight( nBackgroundColor );
140 Color aShadow( nBackgroundColor );
144 Color aDarkShadow( nBackgroundColor );
156 return Any( sal_Int32(nBackgroundColor) );
162 bool bValue(
false );
163 OSL_VERIFY( _rValue >>= bValue );
164 if ( bValue != _bInverseSemantics )
176 sal_Int16 nStyle = LOOK3D;
177 OSL_VERIFY( _rValue >>= nStyle );
196 if ( aStyleSettings.
GetOptions() & StyleSettingsOptions::Mono )
197 aEffect <<= sal_Int16(
FLAT);
199 aEffect <<= sal_Int16(LOOK3D);
214 OSL_PRECOND(
GetWindow(),
"VCLXGraphicControl::ImplSetNewImage: window is required to be not-NULL!" );
216 pButton->SetModeImage(
GetImage() );
244 Reference< XGraphic > xGraphic;
245 OSL_VERIFY(
Value >>= xGraphic );
254 if ( (
eType == WindowType::PUSHBUTTON )
255 || (
eType == WindowType::RADIOBUTTON )
256 || (
eType == WindowType::CHECKBOX )
259 sal_Int16 nAlignment = sal_Int16();
260 if (
Value >>= nAlignment )
261 GetAs< Button >()->SetImageAlign(
static_cast< ImageAlign >( nAlignment ) );
268 if ( (
eType == WindowType::PUSHBUTTON )
269 || (
eType == WindowType::RADIOBUTTON )
270 || (
eType == WindowType::CHECKBOX )
273 sal_Int16 nImagePosition = 2;
274 OSL_VERIFY(
Value >>= nImagePosition );
302 if ( (
eType == WindowType::PUSHBUTTON )
303 || (
eType == WindowType::RADIOBUTTON )
304 || (
eType == WindowType::CHECKBOX )
308 GetAs<Button>()->GetImageAlign() );
315 if ( (
eType == WindowType::PUSHBUTTON )
316 || (
eType == WindowType::RADIOBUTTON )
317 || (
eType == WindowType::CHECKBOX )
321 GetAs< Button >()->GetImageAlign() );
339 PushPropertyIds( rIds,
372 :maActionListeners( *this )
373 ,maItemListeners( *this )
383 return getAccessibleFactory().createAccessibleContext(
this );
390 css::lang::EventObject aObj;
427 pWindow->SetText( rLabel );
444 aSz = pButton->CalcMinimumSize();
464 Size aMinSz = pButton->CalcMinimumSize();
466 if ( pButton->GetText().isEmpty() )
507 if ( (
Value >>= b ) && !b )
508 nStyle &= ~WB_DEFBUTTON;
509 pButton->SetStyle( nStyle );
514 if ( GetWindow()->GetType() == WindowType::PUSHBUTTON )
516 sal_Int16
n = sal_Int16();
545 aProp <<= ( ( pButton->GetStyle() &
WB_TOGGLE ) != 0 );
555 if ( GetWindow()->GetType() == WindowType::PUSHBUTTON )
572 switch ( rVclWindowEvent.
GetId() )
574 case VclEventId::ButtonClick:
576 css::uno::Reference< css::awt::XWindow > xKeepAlive(
this );
583 css::awt::ActionEvent
aEvent;
587 Callback aCallback = [
this,
aEvent ]()
590 ImplExecuteAsyncWithoutSolarLock( aCallback );
595 case VclEventId::PushbuttonToggle:
599 css::uno::Reference< css::awt::XWindow > xKeepAlive(
this );
602 css::awt::ItemEvent
aEvent;
652 OSL_PRECOND(
GetWindow(),
"VCLXImageControl::ImplSetNewImage: window is required to be not-NULL!" );
676 css::awt::Size aSz = rNewSize;
678 if ( aSz.Width < aMinSz.Width )
679 aSz.Width = aMinSz.Width;
680 if ( aSz.Height < aMinSz.Height )
681 aSz.Height = aMinSz.Height;
696 sal_Int16 nScaleMode( ImageScaleMode::ANISOTROPIC );
697 if ( pImageControl && (
Value >>= nScaleMode ) )
699 pImageControl->SetScaleMode( nScaleMode );
707 bool bScaleImage =
false;
708 if ( pImageControl && (
Value >>= bScaleImage ) )
710 pImageControl->SetScaleMode( bScaleImage ? ImageScaleMode::ANISOTROPIC : ImageScaleMode::NONE );
732 aProp <<= ( pImageControl ? pImageControl->GetScaleMode() : ImageScaleMode::ANISOTROPIC );
736 aProp <<= ( pImageControl && pImageControl->GetScaleMode() != ImageScaleMode::NONE );
751 PushPropertyIds( rIds,
784 return getAccessibleFactory().createAccessibleContext(
this );
791 css::lang::EventObject aObj;
833 pWindow->SetText( rLabel );
852 pCheckBox->SetState( eState );
858 SetSynthesizingVCLEvent(
true );
861 SetSynthesizingVCLEvent(
false );
872 switch ( pCheckBox->GetState() )
877 default: OSL_FAIL(
"VCLXCheckBox::getState(): unknown TriState!" );
890 pCheckBox->EnableTriState( b );
900 aSz = pCheckBox->CalcMinimumSize();
917 Size aMinSz = pCheckBox->CalcMinimumSize(rNewSize.Width);
945 pCheckBox->EnableTriState( b );
950 sal_Int16
n = sal_Int16();
977 aProp <<= pCheckBox->IsTriStateEnabled();
980 aProp <<= static_cast<sal_Int16>(pCheckBox->GetState());
993 switch ( rVclWindowEvent.
GetId() )
995 case VclEventId::CheckboxToggle:
997 css::uno::Reference< css::awt::XWindow > xKeepAlive(
this );
1007 css::awt::ItemEvent
aEvent;
1010 aEvent.Selected = pCheckBox->GetState();
1015 css::awt::ActionEvent
aEvent;
1034 PushPropertyIds( rIds,
1068 return getAccessibleFactory().createAccessibleContext(
this );
1075 css::lang::EventObject aObj;
1090 switch ( nPropType )
1098 sal_Int16
n = sal_Int16();
1102 if ( pButton->IsRadioCheckEnabled() )
1103 pButton->Check( b );
1105 pButton->SetState( b );
1113 pButton->EnableRadioCheck( b );
1127 css::uno::Any aProp;
1132 switch ( nPropType )
1138 aProp <<= static_cast<sal_Int16>( pButton->IsChecked() ? 1 : 0 );
1141 aProp <<= pButton->IsRadioCheckEnabled();
1182 pWindow->SetText( rLabel );
1198 pRadioButton->Check( b );
1204 SetSynthesizingVCLEvent(
true );
1205 pRadioButton->Click();
1206 SetSynthesizingVCLEvent(
false );
1215 return pRadioButton && pRadioButton->IsChecked();
1225 aSz = pRadioButton->CalcMinimumSize();
1242 Size aMinSz = pRadioButton->CalcMinimumSize(rNewSize.Width);
1253 css::uno::Reference< css::awt::XWindow > xKeepAlive(
this );
1258 switch ( rVclWindowEvent.
GetId() )
1260 case VclEventId::ButtonClick:
1263 css::awt::ActionEvent
aEvent;
1271 case VclEventId::RadiobuttonToggle:
1286 if ( pRadioButton && ( pRadioButton->IsRadioCheckEnabled() == bToggled ) && ( bToggled || pRadioButton->IsStateChanged() ) &&
maItemListeners.getLength() )
1288 css::awt::ItemEvent
aEvent;
1291 aEvent.Selected = pRadioButton->IsChecked() ? 1 : 0;
1300 PushPropertyIds( rIds,
1346 pSpinField->First();
1365 WinBits nStyle = pWindow->GetStyle();
1369 nStyle &= ~WB_REPEAT;
1370 pWindow->SetStyle( nStyle );
1376 switch ( rVclWindowEvent.
GetId() )
1378 case VclEventId::SpinfieldUp:
1379 case VclEventId::SpinfieldDown:
1380 case VclEventId::SpinfieldFirst:
1381 case VclEventId::SpinfieldLast:
1383 css::uno::Reference< css::awt::XWindow > xKeepAlive(
this );
1390 css::awt::SpinEvent
aEvent;
1392 switch ( rVclWindowEvent.
GetId() )
1419 PushPropertyIds( rIds,
1453 : maActionListeners( *this ),
1454 maItemListeners( *this )
1462 css::lang::EventObject aObj;
1498 pBox->InsertEntry( aItem,
nPos );
1508 sal_uInt16 nP =
nPos;
1509 for (
auto const & item : aItems )
1513 OSL_FAIL(
"VCLXListBox::addItems: too many entries!" );
1518 pBox->InsertEntry( item, nP++ );
1529 pBox->RemoveEntry(
nPos + (--
n) );
1538 return pBox ? pBox->GetEntryCount() : 0;
1548 aItem = pBox->GetEntry(
nPos );
1556 css::uno::Sequence< OUString>
aSeq;
1560 auto n = pBox->GetEntryCount();
1561 aSeq = css::uno::Sequence< OUString>(
n );
1565 aSeq.getArray()[
n] = pBox->GetEntry(
n );
1575 return pBox ? pBox->GetSelectedEntryPos() : 0;
1582 css::uno::Sequence<sal_Int16>
aSeq;
1586 const sal_Int32 nSelEntries = pBox->GetSelectedEntryCount();
1587 aSeq = css::uno::Sequence<sal_Int16>( nSelEntries );
1588 for ( sal_Int32
n = 0;
n < nSelEntries; ++
n )
1589 aSeq.getArray()[
n] = pBox->GetSelectedEntryPos(
n );
1601 aItem = pBox->GetSelectedEntry();
1609 css::uno::Sequence< OUString>
aSeq;
1613 const sal_Int32 nSelEntries = pBox->GetSelectedEntryCount();
1614 aSeq = css::uno::Sequence< OUString>( nSelEntries );
1615 for ( sal_Int32
n = 0;
n < nSelEntries; ++
n )
1616 aSeq.getArray()[
n] = pBox->GetSelectedEntry(
n );
1626 if ( pBox && ( pBox->IsEntryPosSelected(
nPos ) !=
bool(bSelect) ) )
1628 pBox->SelectEntryPos(
nPos, bSelect );
1634 SetSynthesizingVCLEvent(
true );
1636 SetSynthesizingVCLEvent(
false );
1648 std::vector<sal_Int32> aPositionVec;
1649 aPositionVec.reserve(aPositions.getLength());
1651 bool bChanged =
false;
1652 for (
auto n = aPositions.getLength();
n; )
1654 const auto nPos = aPositions.getConstArray()[--
n];
1655 if ( pBox->IsEntryPosSelected(
nPos ) !=
bool(bSelect) )
1657 aPositionVec.push_back(
nPos);
1665 bool bOrigUpdateMode = pBox->IsUpdateMode();
1666 pBox->SetUpdateMode(
false);
1668 pBox->SelectEntriesPos(aPositionVec, bSelect);
1670 pBox->SetUpdateMode(bOrigUpdateMode);
1676 SetSynthesizingVCLEvent(
true );
1678 SetSynthesizingVCLEvent(
false );
1697 pBox->SetDropDownLineCount( nLines );
1704 sal_Int16 nLines = 0;
1707 nLines = pBox->GetDropDownLineCount();
1714 bool bMulti =
false;
1717 bMulti = pBox->IsMultiSelectionEnabled();
1726 pBox->EnableMultiSelection( bMulti );
1734 pBox->SetTopEntry( nEntry );
1739 css::uno::Reference< css::awt::XWindow > xKeepAlive(
this );
1744 switch ( rVclWindowEvent.
GetId() )
1746 case VclEventId::ListboxSelect:
1751 bool bDropDown = ( pListBox->GetStyle() &
WB_DROPDOWN ) != 0;
1755 css::awt::ActionEvent
aEvent;
1757 aEvent.ActionCommand = pListBox->GetSelectedEntry();
1769 case VclEventId::ListboxDoubleClick:
1772 css::awt::ActionEvent
aEvent;
1774 aEvent.ActionCommand = GetAs<ListBox>()->GetSelectedEntry();
1789 return getAccessibleFactory().createAccessibleContext(
this );
1800 switch ( nPropType )
1804 sal_Int16 nSeparatorPos(0);
1805 if (
Value >>= nSeparatorPos )
1806 pListBox->SetSeparatorPos( nSeparatorPos );
1813 pListBox->SetReadOnly( b);
1820 pListBox->EnableMultiSelection( b );
1830 pListBox->SetDropDownLineCount(
n );
1835 css::uno::Sequence< OUString> aItems;
1836 if (
Value >>= aItems )
1845 css::uno::Sequence<sal_Int16> aItems;
1846 if (
Value >>= aItems )
1848 for (
auto n = pListBox->GetEntryCount();
n; )
1849 pListBox->SelectEntryPos( --
n,
false );
1851 if ( aItems.hasElements() )
1854 pListBox->SetNoSelection();
1856 if ( !pListBox->GetSelectedEntryCount() )
1857 pListBox->SetTopEntry( 0 );
1864 bool bVoid =
Value.getValueType().getTypeClass() == css::uno::TypeClass_VOID;
1871 if (!(
Value >>= nColor))
1874 pListBox->SetHighlightColor(nColor);
1880 bool bVoid =
Value.getValueType().getTypeClass() == css::uno::TypeClass_VOID;
1887 if (!(
Value >>= nColor))
1890 pListBox->SetHighlightTextColor(nColor);
1903 css::uno::Any aProp;
1908 switch ( nPropType )
1911 aProp <<= sal_Int16( pListBox->GetSeparatorPos() );
1915 aProp <<= pListBox->IsReadOnly();
1920 aProp <<= pListBox->IsMultiSelectionEnabled();
1925 aProp <<= ( ( pListBox->GetStyle() &
WB_SIMPLEMODE ) == 0 );
1930 aProp <<= static_cast<sal_Int16>(pListBox->GetDropDownLineCount());
1935 const sal_Int32 nItems = pListBox->GetEntryCount();
1936 css::uno::Sequence< OUString>
aSeq( nItems );
1937 OUString* pStrings =
aSeq.getArray();
1938 for ( sal_Int32
n = 0;
n < nItems; ++
n )
1939 pStrings[
n] = pListBox->GetEntry(
n );
1959 aSz = pListBox->CalcMinimumSize();
1970 aSz = pListBox->CalcMinimumSize();
1983 aSz = pListBox->CalcAdjustedSize( aSz );
1993 aSz = pListBox->CalcBlockSize( nCols, nLines );
2005 pListBox->GetMaxVisColumnsAndLines( nC, nL );
2016 css::awt::ItemEvent
aEvent;
2021 aEvent.Selected = (pListBox->GetSelectedEntryCount() == 1 ) ? pListBox->GetSelectedEntryPos() : 0xFFFF;
2028 Image lcl_getImageFromURL(
const OUString& i_rImageURL )
2030 if ( i_rImageURL.isEmpty() )
2035 Reference< uno::XComponentContext > xContext( ::comphelper::getProcessComponentContext() );
2036 Reference< XGraphicProvider > xProvider(graphic::GraphicProvider::create(xContext));
2038 aMediaProperties.
put(
"URL", i_rImageURL );
2039 Reference< XGraphic > xGraphic = xProvider->queryGraphic( aMediaProperties.
getPropertyValues() );
2040 return Image( xGraphic );
2042 catch(
const uno::Exception& )
2055 ENSURE_OR_RETURN_VOID( ( i_rEvent.ItemPosition >= 0 ) && ( i_rEvent.ItemPosition <= pListBox->GetEntryCount() ),
2056 "VCLXListBox::listItemInserted: illegal (inconsistent) item position!" );
2057 pListBox->InsertEntry(
2058 i_rEvent.ItemText.IsPresent ? i_rEvent.ItemText.Value : OUString(),
2060 i_rEvent.ItemPosition );
2069 ENSURE_OR_RETURN_VOID( ( i_rEvent.ItemPosition >= 0 ) && ( i_rEvent.ItemPosition < pListBox->GetEntryCount() ),
2070 "VCLXListBox::listItemRemoved: illegal (inconsistent) item position!" );
2072 pListBox->RemoveEntry( i_rEvent.ItemPosition );
2081 ENSURE_OR_RETURN_VOID( ( i_rEvent.ItemPosition >= 0 ) && ( i_rEvent.ItemPosition < pListBox->GetEntryCount() ),
2082 "VCLXListBox::listItemModified: illegal (inconsistent) item position!" );
2086 const OUString sNewText = i_rEvent.ItemText.IsPresent ? i_rEvent.ItemText.Value : pListBox->GetEntry( i_rEvent.ItemPosition );
2087 const Image aNewImage( i_rEvent.ItemImageURL.IsPresent ?
TkResMgr::getImageFromURL( i_rEvent.ItemImageURL.Value ) : pListBox->GetEntryImage( i_rEvent.ItemPosition ) );
2089 pListBox->RemoveEntry( i_rEvent.ItemPosition );
2090 pListBox->InsertEntry( sNewText, aNewImage, i_rEvent.ItemPosition );
2112 uno::Reference< beans::XPropertySet > xPropSet( i_rEvent.Source, uno::UNO_QUERY_THROW );
2113 uno::Reference< beans::XPropertySetInfo > xPSI( xPropSet->getPropertySetInfo(), uno::UNO_SET_THROW );
2114 uno::Reference< resource::XStringResourceResolver > xStringResourceResolver;
2115 if ( xPSI->hasPropertyByName(
"ResourceResolver") )
2117 xStringResourceResolver.set(
2118 xPropSet->getPropertyValue(
"ResourceResolver"),
2124 Reference< XItemList > xItemList( i_rEvent.Source, uno::UNO_QUERY_THROW );
2125 const uno::Sequence< beans::Pair< OUString, OUString > > aItems = xItemList->getAllItems();
2126 for (
const auto& rItem : aItems )
2128 OUString aLocalizationKey( rItem.First );
2129 if ( xStringResourceResolver.is() && aLocalizationKey.startsWith(
"&") )
2131 aLocalizationKey = xStringResourceResolver->resolveString(aLocalizationKey.copy( 1 ));
2133 pListBox->InsertEntry( aLocalizationKey, lcl_getImageFromURL( rItem.Second ) );
2165 pWindow->SetText( rText );
2175 aText = pWindow->GetText();
2184 pBox->SetMessText( rText );
2193 aText = pBox->GetMessText();
2201 return pBox ? pBox->Execute() : 0;
2206 return css::awt::Size( 250, 100 );
2218 SAL_INFO(
"toolkit",
"XDialog created");
2231 pDialog->EndDialog( i_result );
2239 pWindow->SetHelpId( rId );
2247 pWindow->SetText(
Title );
2257 aTitle = pWindow->GetText();
2269 vcl::Window* pParent = pDlg->GetWindow( GetWindowType::ParentOverlap );
2274 pOldParent = pDlg->GetParent();
2275 vcl::Window* pFrame = pDlg->GetWindow( GetWindowType::Frame );
2276 if( pFrame != pDlg )
2278 pDlg->SetParent( pFrame );
2279 pSetParent = pFrame;
2283 nRet = pDlg->Execute();
2287 if ( pOldParent && pDlg->GetParent() == pSetParent )
2288 pDlg->SetParent( pOldParent );
2306 pDev = pWindow->GetParent()->GetOutDev();
2309 pWindow->Draw( pDev, aPos, SystemTextColorFlags::NoControls );
2320 pDlg->GetDrawWindowBorder( aInfo.LeftInset, aInfo.TopInset, aInfo.RightInset, aInfo.BottomInset );
2326 const OUString& PropertyName,
2327 const css::uno::Any& Value )
2334 bool bVoid =
Value.getValueType().getTypeClass() == css::uno::TypeClass_VOID;
2337 switch ( nPropType )
2341 Reference< XGraphic > xGraphic;
2342 if ((
Value >>= xGraphic ) && xGraphic.is() )
2347 aWallpaper.
SetStyle( WallpaperStyle::Scale );
2348 pDialog->SetBackground( aWallpaper );
2350 else if ( bVoid || !xGraphic.is() )
2352 Color aColor = pDialog->GetControlBackground();
2354 aColor = pDialog->GetSettings().GetStyleSettings().GetDialogColor();
2357 pDialog->SetBackground( aWallpaper );
2373 SAL_INFO(
"toolkit",
"VCLXMultiPage::VCLXMultiPage()" );
2378 PushPropertyIds( rIds,
2405 css::lang::EventObject aObj;
2408 VCLXContainer::dispose();
2420 pDev = pWindow->GetParent()->GetOutDev();
2423 pWindow->Draw( pDev, aPos, SystemTextColorFlags::NoControls );
2429 SAL_INFO(
"toolkit",
" **** VCLXMultiPage::getProperty " << PropertyName );
2431 css::uno::Any aProp;
2433 switch ( nPropType )
2442 aProp = VCLXContainer::getProperty( PropertyName );
2448 const OUString& PropertyName,
2449 const css::uno::Any& Value )
2451 SAL_INFO(
"toolkit",
" **** VCLXMultiPage::setProperty " << PropertyName );
2458 bool bVoid =
Value.getValueType().getTypeClass() == css::uno::TypeClass_VOID;
2461 switch ( nPropType )
2465 SAL_INFO(
"toolkit",
"***MULTIPAGE VALUE");
2476 Reference< XGraphic > xGraphic;
2477 if ((
Value >>= xGraphic ) && xGraphic.is() )
2482 aWallpaper.
SetStyle( WallpaperStyle::Scale );
2483 pTabControl->SetBackground( aWallpaper );
2485 else if ( bVoid || !xGraphic.is() )
2487 Color aColor = pTabControl->GetControlBackground();
2489 aColor = pTabControl->GetSettings().GetStyleSettings().GetDialogColor();
2492 pTabControl->SetBackground( aWallpaper );
2509 throw uno::RuntimeException();
2515 return static_cast< sal_Int32
>(
insertTab( pTab, OUString() ) );
2521 sal_uInt16
id = sal::static_int_cast< sal_uInt16 >(
mTabId++ );
2530 if ( pTabControl->
GetTabPage( sal::static_int_cast< sal_uInt16 >(
ID ) ) ==
nullptr )
2531 throw lang::IndexOutOfBoundsException();
2532 pTabControl->
RemovePage( sal::static_int_cast< sal_uInt16 >(
ID ) );
2540 "Attempting to activate tab " <<
ID <<
", active tab is "
2542 if ( pTabControl->
GetTabPage( sal::static_int_cast< sal_uInt16 >(
ID ) ) ==
nullptr )
2543 throw lang::IndexOutOfBoundsException();
2544 pTabControl->
SelectTabPage( sal::static_int_cast< sal_uInt16 >(
ID ) );
2568 if ( pTabControl->
GetTabPage( sal::static_int_cast< sal_uInt16 >(
ID ) ) ==
nullptr )
2569 throw lang::IndexOutOfBoundsException();
2573 const OUString &
name = rProp.Name;
2576 if (
name ==
"Title")
2578 OUString title =
value.get<OUString>();
2579 pTabControl->
SetPageText( sal::static_int_cast< sal_uInt16 >(
ID ), title );
2588 if ( pTabControl->
GetTabPage( sal::static_int_cast< sal_uInt16 >(
ID ) ) ==
nullptr )
2589 throw lang::IndexOutOfBoundsException();
2591 uno::Sequence< beans::NamedValue >
props
2593 {
"Title", css::uno::Any(pTabControl->
GetPageText( sal::static_int_cast< sal_uInt16 >(
ID ) )) },
2594 {
"Position", css::uno::Any(pTabControl->
GetPagePos( sal::static_int_cast< sal_uInt16 >(
ID ) )) }
2600 css::uno::Reference< css::awt::XWindow > xKeepAlive(
this );
2601 switch ( rVclWindowEvent.
GetId() )
2603 case VclEventId::TabpageDeactivate:
2610 case VclEventId::TabpageActivate:
2617 VCLXContainer::ProcessWindowEvent( rVclWindowEvent );
2630 PushPropertyIds( rIds,
2663 pDev = pWindow->GetParent()->GetOutDev();
2666 pWindow->Draw( pDev, aPos, SystemTextColorFlags::NoControls );
2671 const OUString& PropertyName,
2672 const css::uno::Any& Value )
2679 bool bVoid =
Value.getValueType().getTypeClass() == css::uno::TypeClass_VOID;
2682 switch ( nPropType )
2686 Reference< XGraphic > xGraphic;
2687 if ((
Value >>= xGraphic ) && xGraphic.is() )
2692 aWallpaper.
SetStyle( WallpaperStyle::Scale );
2693 pTabPage->SetBackground( aWallpaper );
2695 else if ( bVoid || !xGraphic.is() )
2697 Color aColor = pTabPage->GetControlBackground();
2699 aColor = pTabPage->GetSettings().GetStyleSettings().GetDialogColor();
2702 pTabPage->SetBackground( aWallpaper );
2709 if (
Value >>= sTitle )
2711 pTabPage->SetText(sTitle);
2728 throw uno::RuntimeException();
2736 maActionListeners( *this )
2749 css::lang::EventObject aObj;
2757 switch ( rVclWindowEvent.
GetId() )
2759 case VclEventId::ButtonClick:
2763 css::awt::ActionEvent
aEvent;
2777 return getAccessibleFactory().createAccessibleContext(
this );
2785 pBase->SetText(
Text);
2795 aText = pWindow->GetText();
2804 pBase->SetURL(
URL );
2814 aText = pBase->GetURL();
2827 if ( nAlign == css::awt::TextAlign::LEFT )
2829 else if ( nAlign == css::awt::TextAlign::CENTER )
2834 WinBits nStyle = pWindow->GetStyle();
2836 pWindow->SetStyle( nStyle | nNewBits );
2843 sal_Int16 nAlign = 0;
2847 WinBits nStyle = pWindow->GetStyle();
2849 nAlign = css::awt::TextAlign::LEFT;
2851 nAlign = css::awt::TextAlign::CENTER;
2853 nAlign = css::awt::TextAlign::RIGHT;
2876 aSz = pFixedText->CalcMinimumSize();
2892 Size aMinSz = pFixedText->CalcMinimumSize(rNewSize.Width);
2911 switch ( nPropType )
2916 if (
Value >>= sNewLabel )
2917 pBase->SetText(sNewLabel);
2924 if (
Value >>= sNewURL )
2925 pBase->SetURL( sNewURL );
2940 css::uno::Any aProp;
2945 switch ( nPropType )
2949 aProp <<= pBase->GetURL();
2964 PushPropertyIds( rIds,
2992 PushPropertyIds( rIds,
3028 return getAccessibleFactory().createAccessibleContext(
this );
3037 pWindow->SetText(
Text );
3047 aText = pWindow->GetText();
3060 if ( nAlign == css::awt::TextAlign::LEFT )
3062 else if ( nAlign == css::awt::TextAlign::CENTER )
3067 WinBits nStyle = pWindow->GetStyle();
3069 pWindow->SetStyle( nStyle | nNewBits );
3076 sal_Int16 nAlign = 0;
3080 WinBits nStyle = pWindow->GetStyle();
3082 nAlign = css::awt::TextAlign::LEFT;
3084 nAlign = css::awt::TextAlign::CENTER;
3086 nAlign = css::awt::TextAlign::RIGHT;
3098 aSz = pFixedText->CalcMinimumSize();
3114 aAdjustedSize = pFixedText->CalcMinimumSize( rMaxSize.Width );
3122 PushPropertyIds( rIds,
3155 return getAccessibleFactory().createAccessibleContext(
this );
3163 css::lang::EventObject aObj;
3188 pScrollBar->DoScroll(
n );
3198 pScrollBar->SetVisibleSize( nVisible );
3199 pScrollBar->SetRangeMax( nMax );
3200 pScrollBar->DoScroll(
nValue );
3209 return pScrollBar ? pScrollBar->GetThumbPos() : 0;
3218 pScrollBar->SetRangeMax(
n );
3226 return pScrollBar ? pScrollBar->GetRangeMax() : 0;
3235 pScrollBar->SetRangeMin(
n );
3243 return pScrollBar ? pScrollBar->GetRangeMin() : 0;
3252 pScrollBar->SetLineSize(
n );
3260 return pScrollBar ? pScrollBar->GetLineSize() : 0;
3269 pScrollBar->SetPageSize(
n );
3277 return pScrollBar ? pScrollBar->GetPageSize() : 0;
3286 pScrollBar->SetVisibleSize(
n );
3294 return pScrollBar ? pScrollBar->GetVisibleSize() : 0;
3304 WinBits nStyle = pWindow->GetStyle();
3306 if (
n == css::awt::ScrollBarOrientation::HORIZONTAL )
3311 pWindow->SetStyle( nStyle );
3324 WinBits nStyle = pWindow->GetStyle();
3326 n = css::awt::ScrollBarOrientation::HORIZONTAL;
3328 n = css::awt::ScrollBarOrientation::VERTICAL;
3343 bool bVoid =
Value.getValueType().getTypeClass() == css::uno::TypeClass_VOID;
3346 switch ( nPropType )
3353 OSL_VERIFY(
Value >>= bDo );
3355 AllSettings aSettings( pScrollBar->GetSettings() );
3359 nDragOptions |= DragFullOptions::Scroll;
3364 pScrollBar->SetSettings( aSettings );
3454 css::uno::Any aProp;
3460 switch ( nPropType )
3464 aProp <<= bool( pScrollBar->GetSettings().GetStyleSettings().GetDragFullOptions() & DragFullOptions::Scroll );
3521 switch ( rVclWindowEvent.
GetId() )
3523 case VclEventId::ScrollbarScroll:
3525 css::uno::Reference< css::awt::XWindow > xKeepAlive(
this );
3536 css::awt::AdjustmentEvent
aEvent;
3538 aEvent.Value = pScrollBar->GetThumbPos();
3542 if ( aType == ScrollType::LineUp || aType == ScrollType::LineDown )
3544 aEvent.Type = css::awt::AdjustmentType_ADJUST_LINE;
3546 else if ( aType == ScrollType::PageUp || aType == ScrollType::PageDown )
3548 aEvent.Type = css::awt::AdjustmentType_ADJUST_PAGE;
3550 else if ( aType == ScrollType::Drag )
3552 aEvent.Type = css::awt::AdjustmentType_ADJUST_ABS;
3569 tools::Long n =
p->GetSettings().GetStyleSettings().GetScrollBarSize();
3570 return css::awt::Size(
n,
n );
3584 PushPropertyIds( rIds,
3625 return getAccessibleFactory().createAccessibleContext(
this );
3632 css::lang::EventObject aObj;
3657 pEdit->SetText( aText );
3660 SetSynthesizingVCLEvent(
true );
3661 pEdit->SetModifyFlag();
3663 SetSynthesizingVCLEvent(
false );
3674 pEdit->SetSelection(
Selection( rSel.Min, rSel.Max ) );
3675 pEdit->ReplaceSelected( aText );
3678 SetSynthesizingVCLEvent(
true );
3679 pEdit->SetModifyFlag();
3681 SetSynthesizingVCLEvent(
false );
3692 aText = pWindow->GetText();
3703 aText = pEdit->GetSelected();
3714 pEdit->SetSelection(
Selection( aSelection.Min, aSelection.Max ) );
3724 aSel = pEdit->GetSelection();
3725 return css::awt::Selection( aSel.
Min(), aSel.
Max() );
3733 return pEdit && !pEdit->IsReadOnly() && pEdit->IsEnabled();
3742 pEdit->SetReadOnly( !bEditable );
3752 pEdit->SetMaxTextLen( nLen );
3760 return pEdit ? pEdit->GetMaxTextLen() : 0;
3769 pEdit->SetEchoChar( cEcho );
3781 switch ( nPropType )
3785 if ( pEdit->GetSubEdit() )
3793 pEdit->SetReadOnly( b );
3798 sal_Int16
n = sal_Int16();
3800 pEdit->SetEchoChar(
n );
3805 sal_Int16
n = sal_Int16();
3807 pEdit->SetMaxTextLen(
n );
3821 css::uno::Any aProp;
3826 switch ( nPropType )
3832 aProp <<= pEdit->IsReadOnly();
3835 aProp <<= static_cast<sal_Int16>(pEdit->GetEchoChar());
3838 aProp <<= static_cast<sal_Int16>(pEdit->GetMaxTextLen());
3856 aSz = pEdit->CalcMinimumSize();
3868 aSz = pEdit->CalcMinimumSize();
3878 css::awt::Size aSz = rNewSize;
3880 if ( aSz.Height != aMinSz.Height )
3881 aSz.Height = aMinSz.Height;
3895 aSz = pEdit->CalcSize( nCols );
3897 aSz = pEdit->CalcMinimumSize();
3910 nCols = pEdit->GetMaxVisChars();
3915 switch ( rVclWindowEvent.
GetId() )
3917 case VclEventId::EditModify:
3919 css::uno::Reference< css::awt::XWindow > xKeepAlive(
this );
3926 css::awt::TextEvent
aEvent;
3944 PushPropertyIds( rIds,
3980 : maActionListeners( *this ), maItemListeners( *this )
3993 return getAccessibleFactory().createAccessibleContext(
this );
4000 css::lang::EventObject aObj;
4038 pBox->InsertEntry( aItem,
nPos );
4049 sal_uInt16 nP =
nPos;
4050 for (
const auto& rItem : aItems )
4052 pBox->InsertEntry( rItem, nP );
4055 OSL_FAIL(
"VCLXComboBox::addItems: too many entries!" );
4070 pBox->RemoveEntryAt(
nPos + (--
n) );
4079 return pBox ? pBox->GetEntryCount() : 0;
4089 aItem = pBox->GetEntry(
nPos );
4097 css::uno::Sequence< OUString>
aSeq;
4101 auto n = pBox->GetEntryCount();
4102 aSeq = css::uno::Sequence< OUString>(
n );
4106 aSeq.getArray()[
n] = pBox->GetEntry(
n );
4118 pBox->SetDropDownLineCount( nLines );
4125 sal_Int16 nLines = 0;
4128 nLines = pBox->GetDropDownLineCount();
4140 bool bVoid =
Value.getValueType().getTypeClass() == css::uno::TypeClass_VOID;
4142 switch ( nPropType )
4146 sal_Int16
n = sal_Int16();
4148 pComboBox->SetDropDownLineCount(
n );
4153 sal_Int16
n = sal_Int16();
4155 pComboBox->EnableAutocomplete(
n != 0 );
4160 pComboBox->EnableAutocomplete( b );
4166 css::uno::Sequence< OUString> aItems;
4167 if (
Value >>= aItems )
4183 if (!(
Value >>= nColor))
4186 pComboBox->SetHighlightColor(nColor);
4198 if (!(
Value >>= nColor))
4201 pComboBox->SetHighlightTextColor(nColor);
4211 sal_uInt16
nBorder = sal_uInt16();
4223 css::uno::Any aProp;
4228 switch ( nPropType )
4232 aProp <<= static_cast<sal_Int16>(pComboBox->GetDropDownLineCount());
4237 aProp <<= pComboBox->IsAutocompleteEnabled();
4242 const sal_Int32 nItems = pComboBox->GetEntryCount();
4243 css::uno::Sequence< OUString>
aSeq( nItems );
4244 OUString* pStrings =
aSeq.getArray();
4245 for ( sal_Int32
n = 0;
n < nItems; ++
n )
4246 pStrings[
n] = pComboBox->GetEntry(
n );
4262 css::uno::Reference< css::awt::XWindow > xKeepAlive(
this );
4267 switch ( rVclWindowEvent.
GetId() )
4269 case VclEventId::ComboboxSelect:
4275 if ( !pComboBox->IsTravelSelect() )
4277 css::awt::ItemEvent
aEvent;
4282 aEvent.Selected = pComboBox->GetEntryPos( pComboBox->GetText() );
4290 case VclEventId::ComboboxDoubleClick:
4293 css::awt::ActionEvent
aEvent;
4313 aSz = pComboBox->CalcMinimumSize();
4325 aSz = pComboBox->CalcMinimumSize();
4339 aSz = pComboBox->CalcAdjustedSize( aSz );
4350 aSz = pComboBox->CalcBlockSize( nCols, nLines );
4363 pComboBox->GetMaxVisColumnsAndLines( nC, nL );
4375 ENSURE_OR_RETURN_VOID( ( i_rEvent.ItemPosition >= 0 ) && ( i_rEvent.ItemPosition <= pComboBox->GetEntryCount() ),
4376 "VCLXComboBox::listItemInserted: illegal (inconsistent) item position!" );
4377 pComboBox->InsertEntryWithImage(
4378 i_rEvent.ItemText.IsPresent ? i_rEvent.ItemText.Value : OUString(),
4379 i_rEvent.ItemImageURL.IsPresent ? lcl_getImageFromURL( i_rEvent.ItemImageURL.Value ) :
Image(),
4380 i_rEvent.ItemPosition );
4390 ENSURE_OR_RETURN_VOID( ( i_rEvent.ItemPosition >= 0 ) && ( i_rEvent.ItemPosition < pComboBox->GetEntryCount() ),
4391 "VCLXComboBox::listItemRemoved: illegal (inconsistent) item position!" );
4393 pComboBox->RemoveEntryAt( i_rEvent.ItemPosition );
4403 ENSURE_OR_RETURN_VOID( ( i_rEvent.ItemPosition >= 0 ) && ( i_rEvent.ItemPosition < pComboBox->GetEntryCount() ),
4404 "VCLXComboBox::listItemModified: illegal (inconsistent) item position!" );
4408 const OUString sNewText = i_rEvent.ItemText.IsPresent ? i_rEvent.ItemText.Value : pComboBox->GetEntry( i_rEvent.ItemPosition );
4409 const Image aNewImage( i_rEvent.ItemImageURL.IsPresent ? lcl_getImageFromURL( i_rEvent.ItemImageURL.Value ) : pComboBox->GetEntryImage( i_rEvent.ItemPosition ) );
4411 pComboBox->RemoveEntryAt( i_rEvent.ItemPosition );
4412 pComboBox->InsertEntryWithImage(sNewText, aNewImage, i_rEvent.ItemPosition);
4434 uno::Reference< beans::XPropertySet > xPropSet( i_rEvent.Source, uno::UNO_QUERY_THROW );
4435 uno::Reference< beans::XPropertySetInfo > xPSI( xPropSet->getPropertySetInfo(), uno::UNO_SET_THROW );
4437 uno::Reference< resource::XStringResourceResolver > xStringResourceResolver;
4438 if ( xPSI->hasPropertyByName(
"ResourceResolver") )
4440 xStringResourceResolver.set(
4441 xPropSet->getPropertyValue(
"ResourceResolver"),
4447 Reference< XItemList > xItemList( i_rEvent.Source, uno::UNO_QUERY_THROW );
4448 const uno::Sequence< beans::Pair< OUString, OUString > > aItems = xItemList->getAllItems();
4449 for (
const auto& rItem : aItems )
4451 OUString aLocalizationKey( rItem.First );
4452 if ( xStringResourceResolver.is() && !aLocalizationKey.isEmpty() && aLocalizationKey[0] ==
'&' )
4454 aLocalizationKey = xStringResourceResolver->resolveString(aLocalizationKey.copy( 1 ));
4456 pComboBox->InsertEntryWithImage(aLocalizationKey,
4457 lcl_getImageFromURL(rItem.Second));
4463 VCLXEdit::disposing( i_rEvent );
4477 : mpFormatter(nullptr)
4510 switch ( nPropType )
4520 GetWindow()->SetStyle( nStyle );
4535 VCLXSpinField::setProperty( PropertyName,
Value );
4544 css::uno::Any aProp;
4549 switch ( nPropType )
4553 aProp <<= ( GetWindow()->GetStyle() &
WB_SPIN ) != 0;
4563 aProp = VCLXSpinField::getProperty( PropertyName );
4575 PushPropertyIds( rIds,
4626 pWindow->SetType( WindowType::DATEFIELD );
4628 return getAccessibleFactory().createAccessibleContext(
this );
4635 if ( !(GetWindow()) )
4638 bool bVoid =
Value.getValueType().getTypeClass() == css::uno::TypeClass_VOID;
4641 switch ( nPropType )
4647 GetAs< DateField >()->EnableEmptyFieldValue(
true );
4648 GetAs< DateField >()->SetEmptyFieldValue();
4653 if ((
Value >>=
d) &&
d.Year != 0)
4661 if ((
Value >>=
d) &&
d.Year != 0)
4668 if ((
Value >>=
d) &&
d.Year != 0)
4674 sal_Int16
n = sal_Int16();
4683 GetAs< DateField >()->SetShowDateCentury( b );
4688 bool bEnforce(
true );
4689 OSL_VERIFY(
Value >>= bEnforce );
4690 GetAs< DateField >()->EnforceValidValue( bEnforce );
4704 css::uno::Any aProp;
4709 switch ( nPropType )
4728 aProp <<= GetAs< DateField >()->IsShowDateCentury();
4733 aProp <<= GetAs< DateField >()->IsEnforceValidValue( );
4753 pDateField->SetDate( aDate );
4756 SetSynthesizingVCLEvent(
true );
4757 pDateField->SetModifyFlag();
4758 pDateField->Modify();
4759 SetSynthesizingVCLEvent(
false );
4769 return pDateField->GetDate().GetUNODate();
4771 return util::Date();
4780 pDateField->SetMin( aDate );
4789 return pDateField->GetMin().GetUNODate();
4791 return util::Date();
4800 pDateField->SetMax( aDate );
4809 return pDateField->GetMax().GetUNODate();
4811 return util::Date();
4820 pDateField->SetFirst( aDate );
4829 return pDateField->GetFirst().GetUNODate();
4831 return util::Date();
4840 pDateField->SetLast( aDate );
4849 return pDateField->GetLast().GetUNODate();
4851 return util::Date();
4860 pDateField->SetLongFormat( bLong );
4868 return pDateField && pDateField->IsLongFormat();
4878 pDateField->SetEmptyDate();
4881 SetSynthesizingVCLEvent(
true );
4882 pDateField->SetModifyFlag();
4883 pDateField->Modify();
4884 SetSynthesizingVCLEvent(
false );
4893 return pDateField && pDateField->IsEmptyDate();
4911 PushPropertyIds( rIds,
4960 pWindow->SetType( WindowType::TIMEFIELD );
4962 return getAccessibleFactory().createAccessibleContext(
this );
4972 pTimeField->SetTime( aTime );
4975 SetSynthesizingVCLEvent(
true );
4976 pTimeField->SetModifyFlag();
4977 pTimeField->Modify();
4978 SetSynthesizingVCLEvent(
false );
4988 return pTimeField->GetTime().GetUNOTime();
4990 return util::Time();
4999 pTimeField->SetMin( aTime );
5008 return pTimeField->GetMin().GetUNOTime();
5010 return util::Time();
5019 pTimeField->SetMax( aTime );
5028 return pTimeField->GetMax().GetUNOTime();
5030 return util::Time();
5039 pTimeField->SetFirst( aTime );
5048 return pTimeField->GetFirst().GetUNOTime();
5050 return util::Time();
5059 pTimeField->SetLast( aTime );
5068 return pTimeField->GetLast().GetUNOTime();
5070 return util::Time();
5079 pTimeField->SetEmptyTime();
5087 return pTimeField && pTimeField->IsEmptyTime();
5105 if ( !(GetWindow()) )
5108 bool bVoid =
Value.getValueType().getTypeClass() == css::uno::TypeClass_VOID;
5111 switch ( nPropType )
5117 GetAs< TimeField >()->EnableEmptyFieldValue(
true );
5118 GetAs< TimeField >()->SetEmptyFieldValue();
5144 sal_Int16
n = sal_Int16();
5151 bool bEnforce(
true );
5152 OSL_VERIFY(
Value >>= bEnforce );
5153 GetAs< TimeField >()->EnforceValidValue( bEnforce );
5167 css::uno::Any aProp;
5171 switch ( nPropType )
5190 aProp <<= GetAs< TimeField >()->IsEnforceValidValue( );
5207 PushPropertyIds( rIds,
5255 NumericFormatter* pNumericFormatter =
static_cast<NumericFormatter*
>(GetFormatter());
5256 if ( !pNumericFormatter )
5262 pNumericFormatter->SetValue(
5269 SetSynthesizingVCLEvent(
true );
5270 pEdit->SetModifyFlag();
5272 SetSynthesizingVCLEvent(
false );
5280 NumericFormatter* pNumericFormatter =
static_cast<NumericFormatter*
>(GetFormatter());
5281 return pNumericFormatter
5282 ?
ImplCalcDoubleValue(
static_cast<double>(pNumericFormatter->GetValue()), pNumericFormatter->GetDecimalDigits() )
5290 NumericFormatter* pNumericFormatter =
static_cast<NumericFormatter*
>(GetFormatter());
5291 if ( pNumericFormatter )
5292 pNumericFormatter->SetMin(
5300 NumericFormatter* pNumericFormatter =
static_cast<NumericFormatter*
>(GetFormatter());
5301 return pNumericFormatter
5302 ?
ImplCalcDoubleValue(
static_cast<double>(pNumericFormatter->GetMin()), pNumericFormatter->GetDecimalDigits() )
5310 NumericFormatter* pNumericFormatter =
static_cast<NumericFormatter*
>(GetFormatter());
5311 if ( pNumericFormatter )
5312 pNumericFormatter->SetMax(
5320 NumericFormatter* pNumericFormatter =
static_cast<NumericFormatter*
>(GetFormatter());
5321 return pNumericFormatter
5322 ?
ImplCalcDoubleValue(
static_cast<double>(pNumericFormatter->GetMax()), pNumericFormatter->GetDecimalDigits() )
5330 NumericFormatter* pNumericFormatter =
static_cast<NumericFormatter*
>(GetFormatter());
5331 if ( pNumericFormatter )
5332 pNumericFormatter->SetFirst(
5340 NumericFormatter* pNumericFormatter =
static_cast<NumericFormatter*
>(GetFormatter());
5341 return pNumericFormatter
5342 ?
ImplCalcDoubleValue(
static_cast<double>(pNumericFormatter->GetFirst()), pNumericFormatter->GetDecimalDigits() )
5350 NumericFormatter* pNumericFormatter =
static_cast<NumericFormatter*
>(GetFormatter());
5351 if ( pNumericFormatter )
5352 pNumericFormatter->SetLast(
5360 NumericFormatter* pNumericFormatter =
static_cast<NumericFormatter*
>(GetFormatter());
5361 return pNumericFormatter
5362 ?
ImplCalcDoubleValue(
static_cast<double>(pNumericFormatter->GetLast()), pNumericFormatter->GetDecimalDigits() )
5380 NumericFormatter* pNumericFormatter =
static_cast<NumericFormatter*
>(GetFormatter());
5381 if ( pNumericFormatter )
5382 pNumericFormatter->SetSpinSize(
5390 NumericFormatter* pNumericFormatter =
static_cast<NumericFormatter*
>(GetFormatter());
5391 return pNumericFormatter
5392 ?
ImplCalcDoubleValue(
static_cast<double>(pNumericFormatter->GetSpinSize()), pNumericFormatter->GetDecimalDigits() )
5400 NumericFormatter* pNumericFormatter =
static_cast<NumericFormatter*
>(GetFormatter());
5401 if ( pNumericFormatter )
5404 pNumericFormatter->SetDecimalDigits(
Value );
5413 NumericFormatter* pNumericFormatter =
static_cast<NumericFormatter*
>(GetFormatter());
5414 return pNumericFormatter ? pNumericFormatter->GetDecimalDigits() : 0;
5421 if ( !(GetWindow()) )
5424 bool bVoid =
Value.getValueType().getTypeClass() == css::uno::TypeClass_VOID;
5427 switch ( nPropType )
5433 NumericFormatter* pNumericFormatter =
static_cast<NumericFormatter*
>(GetFormatter());
5434 if (!pNumericFormatter)
5436 pNumericFormatter->EnableEmptyFieldValue(
true );
5437 pNumericFormatter->SetEmptyFieldValue();
5470 sal_Int16
n = sal_Int16();
5480 NumericFormatter* pNumericFormatter =
static_cast<NumericFormatter*
>(GetFormatter());
5481 if (!pNumericFormatter)
5483 pNumericFormatter->SetUseThousandSep( b );
5498 css::uno::Any aProp;
5503 switch ( nPropType )
5527 NumericFormatter* pNumericFormatter =
static_cast<NumericFormatter*
>(pFormatter);
5528 aProp <<= pNumericFormatter->IsUseThousandSep();
5546 PushPropertyIds( rIds,
5589 throw css::uno::RuntimeException();
5597 throw css::uno::RuntimeException();
5602#define MetricUnitUnoToVcl(a) (static_cast<FieldUnit>(a))
5604#define METRIC_MAP_PAIR(method,parent) \
5605 sal_Int64 VCLXMetricField::get##method( sal_Int16 nUnit ) \
5607 SolarMutexGuard aGuard; \
5608 return GetMetric##parent()->Get##method( MetricUnitUnoToVcl( nUnit ) ); \
5610 void VCLXMetricField::set##method( sal_Int64 nValue, sal_Int16 nUnit ) \
5612 SolarMutexGuard aGuard; \
5613 GetMetric##parent()->Set##method( nValue, MetricUnitUnoToVcl( nUnit ) ); \
5621#undef METRIC_MAP_PAIR
5642 SetSynthesizingVCLEvent(
true );
5643 pEdit->SetModifyFlag();
5645 SetSynthesizingVCLEvent(
false );
5695 NumericFormatter* pNumericFormatter =
static_cast<NumericFormatter*
>(GetFormatter());
5696 return pNumericFormatter ? pNumericFormatter->GetDecimalDigits() : 0;
5703 if ( !(GetWindow()) )
5707 switch ( nPropType )
5721 NumericFormatter* pNumericFormatter =
static_cast<NumericFormatter*
>(GetFormatter());
5722 if (!pNumericFormatter)
5724 pNumericFormatter->SetUseThousandSep( b );
5730 sal_uInt16 nVal = 0;
5731 if (
Value >>= nVal )
5732 GetAs< MetricField >()->SetUnit(
static_cast<FieldUnit>(nVal) );
5739 GetAs< MetricField >()->SetCustomUnitText(
aStr );
5754 css::uno::Any aProp;
5759 switch ( nPropType )
5763 NumericFormatter* pNumericFormatter =
static_cast<NumericFormatter*
>(pFormatter);
5764 aProp <<= pNumericFormatter->IsUseThousandSep();
5768 aProp <<= static_cast<sal_uInt16>(GetAs< MetricField >()->GetUnit());
5771 aProp <<= GetAs< MetricField >()->GetCustomUnitText();
5785 PushPropertyIds( rIds,
5828 if ( pPatternField )
5830 pPatternField->SetMask(
OUStringToOString(EditMask, RTL_TEXTENCODING_ASCII_US), LiteralMask );
5839 if ( pPatternField )
5841 EditMask = OStringToOUString(pPatternField->GetEditMask(), RTL_TEXTENCODING_ASCII_US);
5842 LiteralMask = pPatternField->GetLiteralMask();
5850 if ( pPatternField )
5851 pPatternField->SetString( Str );
5860 if ( pPatternField )
5861 aString = pPatternField->GetString();
5879 if ( !(GetWindow()) )
5883 switch ( nPropType )
5889 if (
Value >>= aString )
5891 OUString aEditMask, aLiteralMask;
5892 getMasks( aEditMask, aLiteralMask );
5894 aEditMask = aString;
5896 aLiteralMask = aString;
5897 setMasks( aEditMask, aLiteralMask );
5912 css::uno::Any aProp;
5916 switch ( nPropType )
5921 OUString aEditMask, aLiteralMask;
5922 getMasks( aEditMask, aLiteralMask );
5924 aProp <<= aEditMask;
5926 aProp <<= aLiteralMask;
5973 PushPropertyIds( rIds,
6002 pDev = pWindow->GetParent()->GetOutDev();
6005 pWindow->Draw( pDev, aPos, SystemTextColorFlags::NoControls );
6010 const OUString& PropertyName,
6011 const css::uno::Any& Value )
6020 css::uno::Reference< css::awt::XWindow > xKeepAlive(
this );
6021 VCLXContainer::ProcessWindowEvent( rVclWindowEvent );
6038 if ( !pProgressBar )
6073 if (nValMin != nValMax)
6075 nPercent = 100 * (nVal - nValMin) / (nValMax - nValMin);
6083 pProgressBar->SetValue(
static_cast<sal_uInt16
>(nPercent) );
6106 pWindow->SetBackground( aColor );
6107 pWindow->SetControlBackground( aColor );
6108 pWindow->Invalidate();
6153 if ( !pProgressBar )
6157 switch ( nPropType )
6182 bool bVoid =
Value.getValueType().getTypeClass() == css::uno::TypeClass_VOID;
6186 pWindow->SetControlForeground();
6191 if (
Value >>= nColor )
6192 pWindow->SetControlForeground( nColor );
6207 css::uno::Any aProp;
6212 switch ( nPropType )
6239 PushPropertyIds( rIds,
6281 switch ( nPropType )
6286 OSL_VERIFY(
Value >>= bValue );
6302 if ( pPrevFileControl )
6306 if ( pNewFileControl )
6329 pWindow->SetText( aText );
6344 pFileControl->GetEdit().SetSelection(
Selection( rSel.Min, rSel.Max ) );
6345 pFileControl->GetEdit().ReplaceSelected( aText );
6356 aText = pWindow->GetText();
6367 aText = pFileControl->GetEdit().GetSelected();
6378 pFileControl->GetEdit().SetSelection(
Selection( aSelection.Min, aSelection.Max ) );
6385 css::awt::Selection aSel;
6389 aSel.Min = pFileControl->GetEdit().GetSelection().Min();
6390 aSel.Max = pFileControl->GetEdit().GetSelection().Max();
6400 return pFileControl && !pFileControl->GetEdit().IsReadOnly() && pFileControl->GetEdit().IsEnabled();
6409 pFileControl->GetEdit().SetReadOnly( !bEditable );
6418 pFileControl->GetEdit().SetMaxTextLen( nLen );
6426 return pFileControl ? pFileControl->GetEdit().GetMaxTextLen() : 0;
6437 css::awt::TextEvent
aEvent;
6450 Size aTmpSize = pControl->GetEdit().CalcMinimumSize();
6451 aTmpSize.
AdjustWidth(pControl->GetButton().CalcMinimumSize().Width() );
6452 aSz =
AWTSize(pControl->CalcWindowSize( aTmpSize ));
6468 css::awt::Size aSz =rNewSize;
6473 if ( aSz.Height != aMinSz.Height )
6474 aSz.Height = aMinSz.Height;
6487 aSz =
AWTSize(pControl->GetEdit().CalcSize( nCols ));
6488 aSz.Width += pControl->GetButton().CalcMinimumSize().Width();
6501 nCols = pControl->GetEdit().GetMaxVisChars();
6506 PushPropertyIds( rIds,
6514 :bIsStandardSupplier(true)
6515 ,nKeyToSetDelayed(-1)
6525 VCLXSpinField::SetWindow(_pWindow);
6526 if (GetAs< FormattedField >())
6527 GetAs< FormattedField >()->GetFormatter().SetAutoColor(
true);
6537 Formatter& rFormatter = pField->GetFormatter();
6543 bool bEnable(
true );
6544 if (
Value >>= bEnable )
6572 if (!
Value.hasValue())
6573 setFormatsSupplier(css::uno::Reference< css::util::XNumberFormatsSupplier > (
nullptr));
6576 css::uno::Reference< css::util::XNumberFormatsSupplier > xNFS;
6577 if (
Value >>= xNFS )
6582 if (!
Value.hasValue())
6595 const css::uno::TypeClass rTC =
Value.getValueType().getTypeClass();
6596 if (rTC != css::uno::TypeClass_STRING)
6598 if (rTC != css::uno::TypeClass_DOUBLE)
6600 if (
Value.hasValue())
6605 throw css::lang::IllegalArgumentException();
6642 VCLXSpinField::setProperty( PropertyName,
Value );
6652 VCLXSpinField::setProperty( PropertyName,
Value );
6659 css::uno::Any aReturn;
6664 Formatter& rFormatter = pField->GetFormatter();
6703 css::uno::Reference< css::util::XNumberFormatsSupplier > xSupplier =
m_xCurrentSupplier;
6704 aReturn <<= xSupplier;
6717 aReturn = VCLXSpinField::getProperty(PropertyName);
6725 css::uno::Any aReturn;
6731 Formatter& rFieldFormatter = pField->GetFormatter();
6732 switch (rValue.getValueType().getTypeClass())
6734 case css::uno::TypeClass_DOUBLE:
6751 OUString sConverted;
6753 aReturn <<= sConverted;
6756 case css::uno::TypeClass_STRING:
6767 sal_uInt32 nTestFormat(0);
6789 Formatter& rFormatter = pField->GetFormatter();
6790 switch (rValue.getValueType().getTypeClass())
6793 case css::uno::TypeClass_DOUBLE:
6801 DBG_ASSERT(rValue.getValueType().getTypeClass() == css::uno::TypeClass_VOID,
"SVTXFormattedField::SetMinValue : invalid argument (an exception will be thrown) !");
6802 if ( rValue.getValueType().getTypeClass() != css::uno::TypeClass_VOID )
6805 throw css::lang::IllegalArgumentException();
6816 return css::uno::Any();
6817 Formatter& rFormatter = pField->GetFormatter();
6819 return css::uno::Any();
6821 css::uno::Any aReturn;
6832 Formatter& rFormatter = pField->GetFormatter();
6833 switch (rValue.getValueType().getTypeClass())
6835 case css::uno::TypeClass_DOUBLE:
6843 if (rValue.getValueType().getTypeClass() != css::uno::TypeClass_VOID)
6846 throw css::lang::IllegalArgumentException();
6857 return css::uno::Any();
6858 Formatter& rFormatter = pField->GetFormatter();
6860 return css::uno::Any();
6862 css::uno::Any aReturn;
6875 Formatter& rFormatter = pField->GetFormatter();
6876 switch (aConverted.getValueType().getTypeClass())
6878 case css::uno::TypeClass_DOUBLE:
6885 case css::uno::TypeClass_STRING:
6888 aConverted >>=
aStr;
6903 return css::uno::Any();
6904 Formatter& rFormatter = pField->GetFormatter();
6906 return css::uno::Any();
6908 css::uno::Any aReturn;
6920 return pField->GetFormatter().TreatingAsNumber();
6929 pField->GetFormatter().TreatAsNumber(bSet);
6936 return css::uno::Any();
6938 Formatter& rFormatter = pField->GetFormatter();
6939 css::uno::Any aReturn;
6947 if (!pField->GetText().isEmpty())
6960 if (!rValue.hasValue())
6962 pField->SetText(
"");
6966 Formatter& rFormatter = pField->GetFormatter();
6967 if (rValue.getValueType().getTypeClass() == css::uno::TypeClass_DOUBLE )
6975 DBG_ASSERT(rValue.getValueType().getTypeClass() == css::uno::TypeClass_STRING,
"SVTXFormattedField::SetValue : invalid argument !");
6993 if (!xSupplier.is())
6997 Formatter& rFormatter = pField->GetFormatter();
7004 pNew = comphelper::getFromUnoTunnel<SvNumberFormatsSupplierObj>(xSupplier);
7016 css::uno::Any aCurrent =
GetValue();
7017 Formatter& rFormatter = pField->GetFormatter();
7031 return pField ? pField->GetFormatter().GetFormatKey() : 0;
7040 Formatter& rFormatter = pField->GetFormatter();
7057 css::awt::TextEvent
aEvent;
7059 GetTextListeners().textChanged(
aEvent );
7065 PushPropertyIds( rIds,
7101 pField->GetFormatter().SetValue(
Value );
7109 return pField ? pField->GetFormatter().GetValue() : 0;
7118 pField->GetFormatter().SetMinValue(
Value );
7126 return pField ? pField->GetFormatter().GetMinValue() : 0;
7135 pField->GetFormatter().SetMaxValue(
Value );
7143 return pField ? pField->GetFormatter().GetMaxValue() : 0;
7152 pField->GetFormatter().SetSpinFirst(
Value );
7160 return pField ? pField->GetFormatter().GetSpinFirst() : 0;
7169 pField->GetFormatter().SetSpinLast(
Value );
7177 return pField ? pField->GetFormatter().GetSpinLast() : 0;
7186 pField->GetFormatter().SetSpinSize(
Value );
7194 return pField ? pField->GetFormatter().GetSpinSize() : 0;
7203 pField->GetFormatter().SetDecimalDigits(
Value );
7211 return pField ? pField->GetFormatter().GetDecimalDigits() : 0;
7220 pField->GetFormatter().SetStrictFormat( bStrict );
7228 return pField && pField->GetFormatter().IsStrictFormat();
7245 pField->setCurrencySymbol(
aStr );
7252 pField->setPrependCurrSym(b);
7268 css::uno::Any aReturn;
7278 aReturn <<= pField->getCurrencySymbol();
7283 aReturn <<= pField->getPrependCurrSym();
7295 PushPropertyIds( rIds,
7344 return getAccessibleFactory().createAccessibleContext(
this);
7354 pField->GetFormatter().SetValue(
Value );
7362 return pField ? pField->GetFormatter().GetValue() : 0;
7371 pField->GetFormatter().SetMinValue(
Value );
7379 return pField ? pField->GetFormatter().GetMinValue() : 0;
7388 pField->GetFormatter().SetMaxValue(
Value );
7396 return pField ? pField->GetFormatter().GetMaxValue() : 0;
7405 pField->GetFormatter().SetSpinFirst(
Value );
7413 return pField ? pField->GetFormatter().GetSpinFirst() : 0;
7422 pField->GetFormatter().SetSpinLast(
Value );
7430 return pField ? pField->GetFormatter().GetSpinLast() : 0;
7439 pField->GetFormatter().SetSpinSize(
Value );
7447 return pField ? pField->GetFormatter().GetSpinSize() : 0;
7456 pField->GetFormatter().SetDecimalDigits(
Value );
7464 return pField ? pField->GetFormatter().GetDecimalDigits() : 0;
7473 pField->GetFormatter().SetStrictFormat( bStrict );
7481 return pField && pField->GetFormatter().IsStrictFormat();
7503 VclPtr< Edit > pSubEdit = GetWindow() ? GetAs<Edit>()->GetSubEdit() :
nullptr;
7510 if ( !
Value.hasValue() )
7511 pSubEdit->SetTextLineColor();
7515 if (
Value >>= nColor )
7516 pSubEdit->SetTextLineColor( nColor );
7524 PushPropertyIds( rIds,
7531 :maTextListeners( *this )
7557 pEdit->SetText( aText );
7560 SetSynthesizingVCLEvent(
true );
7561 pEdit->SetModifyFlag();
7563 SetSynthesizingVCLEvent(
false );
7575 pEdit->ReplaceSelected( aText );
7596 if ( pMultiLineEdit)
7607 if ( pMultiLineEdit )
7609 pMultiLineEdit->SetSelection(
Selection( aSelection.Min, aSelection.Max ) );
7617 css::awt::Selection aSel;
7619 if ( pMultiLineEdit )
7621 aSel.Min = pMultiLineEdit->GetSelection().Min();
7622 aSel.Max = pMultiLineEdit->GetSelection().Max();
7632 return pMultiLineEdit && !pMultiLineEdit->IsReadOnly() && pMultiLineEdit->IsEnabled();
7640 if ( pMultiLineEdit )
7641 pMultiLineEdit->SetReadOnly( !bEditable );
7649 if ( pMultiLineEdit )
7650 pMultiLineEdit->SetMaxTextLen( nLen );
7658 return pMultiLineEdit ?
static_cast<sal_Int16
>(pMultiLineEdit->GetMaxTextLen()) : sal_Int16(0);
7679 aSz =
AWTSize(pEdit->CalcMinimumSize());
7692 css::awt::Size aSz = rNewSize;
7706 aSz =
AWTSize(pEdit->CalcBlockSize( nCols, nLines ));
7719 pEdit->GetMaxVisColumnsAndLines( nC, nL );
7727 switch ( rVclWindowEvent.
GetId() )
7729 case VclEventId::EditModify:
7733 css::awt::TextEvent
aEvent;
7752 if ( !pMultiLineEdit )
7756 switch ( nPropType )
7760 sal_Int16 nLineEndType = css::awt::LineEndFormat::LINE_FEED;
7761 OSL_VERIFY(
Value >>= nLineEndType );
7762 switch ( nLineEndType )
7767 default: OSL_FAIL(
"VCLXMultiLineEdit::setProperty: invalid line end value!" );
break;
7776 pMultiLineEdit->SetReadOnly( b );
7781 sal_Int16
n = sal_Int16();
7783 pMultiLineEdit->SetMaxTextLen(
n );
7791 pMultiLineEdit->EnableFocusSelectionHide( b );
7807 css::uno::Any aProp;
7809 if ( pMultiLineEdit )
7812 switch ( nPropType )
7816 sal_Int16 nLineEndType = css::awt::LineEndFormat::LINE_FEED;
7819 case LINEEND_CR: nLineEndType = css::awt::LineEndFormat::CARRIAGE_RETURN;
break;
7820 case LINEEND_LF: nLineEndType = css::awt::LineEndFormat::LINE_FEED;
break;
7821 case LINEEND_CRLF: nLineEndType = css::awt::LineEndFormat::CARRIAGE_RETURN_LINE_FEED;
break;
7822 default: OSL_FAIL(
"VCLXMultiLineEdit::getProperty: invalid line end value!" );
break;
7824 aProp <<= nLineEndType;
7830 aProp <<= pMultiLineEdit->IsReadOnly();
7835 aProp <<= static_cast<sal_Int16>(pMultiLineEdit->GetMaxTextLen());
7856 if ( GetWindow() && !GetWindow()->HasChildPathFocus() )
7857 GetWindow()->GrabFocus();
7862 PushPropertyIds( rIds,
const StyleSettings & GetStyleSettings() const
void SetStyleSettings(const StyleSettings &rSet)
static const AllSettings & GetSettings()
sal_uInt8 GetLuminance() const
sal_uInt8 GetBlue() const
void DecreaseLuminance(sal_uInt8 cLumDec)
void SetGreen(sal_uInt8 nGreen)
void SetRed(sal_uInt8 nRed)
void IncreaseLuminance(sal_uInt8 cLumInc)
sal_uInt8 GetGreen() const
void SetBlue(sal_uInt8 nBlue)
void SetEditModifyHdl(const Link< Edit &, void > &rLink)
css::uno::Reference< css::graphic::XGraphic > GetXGraphic() const
BitmapEx GetBitmapEx(const GraphicConversionParameters &rParameters=GraphicConversionParameters()) const
BitmapEx GetBitmapEx() const
Size GetSizePixel() const
SAL_WARN_UNUSED_RESULT Point PixelToLogic(const Point &rDevicePt) const
void SAL_CALL setLast(double Value) override
void SAL_CALL setStrictFormat(sal_Bool bStrict) override
double SAL_CALL getValue() override
double SAL_CALL getMin() override
css::uno::Any SAL_CALL getProperty(const OUString &PropertyName) override
void SAL_CALL setValue(double Value) override
sal_Int16 SAL_CALL getDecimalDigits() override
void SAL_CALL setProperty(const OUString &PropertyName, const css::uno::Any &Value) override
static void ImplGetPropertyIds(std::vector< sal_uInt16 > &aIds)
void SAL_CALL setSpinSize(double Value) override
void SAL_CALL setDecimalDigits(sal_Int16 nDigits) override
double SAL_CALL getFirst() override
sal_Bool SAL_CALL isStrictFormat() override
virtual ~SVTXCurrencyField() override
void SAL_CALL setMax(double Value) override
void SAL_CALL setFirst(double Value) override
double SAL_CALL getSpinSize() override
void SAL_CALL setMin(double Value) override
double SAL_CALL getLast() override
double SAL_CALL getMax() override
static void ImplGetPropertyIds(std::vector< sal_uInt16 > &aIds)
void SAL_CALL setProperty(const OUString &PropertyName, const css::uno::Any &Value) override
virtual ~SVTXDateField() override
double SAL_CALL getFirst() override
void SAL_CALL setValue(double Value) override
virtual ~SVTXNumericField() override
void SAL_CALL setLast(double Value) override
void SAL_CALL setMax(double Value) override
void SAL_CALL setFirst(double Value) override
void SAL_CALL setSpinSize(double Value) override
void SAL_CALL setDecimalDigits(sal_Int16 nDigits) override
virtual css::uno::Reference< css::accessibility::XAccessibleContext > CreateAccessibleContext() override
virtual void GetPropertyIds(std::vector< sal_uInt16 > &aIds) override
double SAL_CALL getSpinSize() override
sal_Int16 SAL_CALL getDecimalDigits() override
void SAL_CALL setMin(double Value) override
sal_Bool SAL_CALL isStrictFormat() override
double SAL_CALL getMax() override
void SAL_CALL setStrictFormat(sal_Bool bStrict) override
double SAL_CALL getValue() override
double SAL_CALL getMin() override
double SAL_CALL getLast() override
constexpr tools::Long Height() const
tools::Long AdjustHeight(tools::Long n)
void setWidth(tools::Long nWidth)
tools::Long AdjustWidth(tools::Long n)
void setHeight(tools::Long nHeight)
constexpr tools::Long Width() const
void SetLightBorderColor(const Color &rColor)
const Color & GetDarkShadowColor() const
void SetFaceColor(const Color &rColor)
void SetShadowColor(const Color &rColor)
const Color & GetShadowColor() const
StyleSettingsOptions GetOptions() const
const Color & GetCheckedColor() const
void SetCheckedColor(const Color &rColor)
const Color & GetLightBorderColor() const
const Color & GetLightColor() const
DragFullOptions GetDragFullOptions() const
void SetDragFullOptions(DragFullOptions nOptions)
const Color & GetHighlightColor() const
const Color & GetFaceColor() const
void SetDarkShadowColor(const Color &rColor)
const Color & GetHighlightTextColor() const
void SetLightColor(const Color &rColor)
void SetOptions(StyleSettingsOptions nOptions)
void SetTabPage(sal_uInt16 nPageId, TabPage *pPage)
sal_uInt16 GetPagePos(sal_uInt16 nPageId) const
TabPage * GetTabPage(sal_uInt16 nPageId) const
void SelectTabPage(sal_uInt16 nPageId)
void InsertPage(sal_uInt16 nPageId, const OUString &rText, sal_uInt16 nPos=TAB_APPEND)
sal_uInt16 GetCurPageId() const
OUString const & GetPageText(sal_uInt16 nPageId) const
void SetPageText(sal_uInt16 nPageId, const OUString &rText)
void RemovePage(sal_uInt16 nPageId)
static OutputDevice * GetOutputDevice(const css::uno::Reference< css::awt::XDevice > &rxDevice)
static css::awt::Size ConvertToAWTSize(::Size const &_aSize)
::Size ConvertToVCLSize(css::awt::Size const &_aSize)
ActionListenerMultiplexer maActionListeners
void SAL_CALL addItemListener(const css::uno::Reference< css::awt::XItemListener > &l) override
void SAL_CALL addActionListener(const css::uno::Reference< css::awt::XActionListener > &l) override
css::uno::Any SAL_CALL getProperty(const OUString &PropertyName) override
css::awt::Size SAL_CALL getMinimumSize() override
void SAL_CALL removeActionListener(const css::uno::Reference< css::awt::XActionListener > &l) override
void ProcessWindowEvent(const VclWindowEvent &rVclWindowEvent) override
void SAL_CALL setActionCommand(const OUString &Command) override
void SAL_CALL removeItemListener(const css::uno::Reference< css::awt::XItemListener > &l) override
void SAL_CALL setLabel(const OUString &Label) override
void SAL_CALL enableTriState(sal_Bool b) override
css::awt::Size SAL_CALL calcAdjustedSize(const css::awt::Size &rNewSize) override
ItemListenerMultiplexer maItemListeners
void SAL_CALL setState(sal_Int16 n) override
css::awt::Size SAL_CALL getPreferredSize() override
void SAL_CALL setProperty(const OUString &PropertyName, const css::uno::Any &Value) override
virtual css::uno::Reference< css::accessibility::XAccessibleContext > CreateAccessibleContext() override
void SAL_CALL dispose() override
static void ImplGetPropertyIds(std::vector< sal_uInt16 > &aIds)
sal_Int16 SAL_CALL getState() override
ActionListenerMultiplexer maActionListeners
css::uno::Any SAL_CALL getProperty(const OUString &PropertyName) override
virtual css::uno::Reference< css::accessibility::XAccessibleContext > CreateAccessibleContext() override
void ProcessWindowEvent(const VclWindowEvent &rVclWindowEvent) override
css::awt::Size SAL_CALL getPreferredSize() override
void SAL_CALL setProperty(const OUString &PropertyName, const css::uno::Any &Value) override
void SAL_CALL dispose() override
static void ImplGetPropertyIds(std::vector< sal_uInt16 > &aIds)
ItemListenerMultiplexer maItemListeners
void SAL_CALL removeItemListener(const css::uno::Reference< css::awt::XItemListener > &l) override
OUString SAL_CALL getItem(sal_Int16 nPos) override
sal_Int16 SAL_CALL getItemCount() override
void SAL_CALL getColumnsAndLines(sal_Int16 &nCols, sal_Int16 &nLines) override
void SAL_CALL removeItems(sal_Int16 nPos, sal_Int16 nCount) override
virtual void SAL_CALL disposing(const css::lang::EventObject &i_rEvent) override
void SAL_CALL addItem(const OUString &aItem, sal_Int16 nPos) override
virtual ~VCLXComboBox() override
virtual void SAL_CALL listItemModified(const css::awt::ItemListEvent &Event) override
virtual void SAL_CALL listItemRemoved(const css::awt::ItemListEvent &Event) override
void SAL_CALL addItems(const css::uno::Sequence< OUString > &aItems, sal_Int16 nPos) override
virtual void SAL_CALL itemListChanged(const css::lang::EventObject &Event) override
virtual void SAL_CALL listItemInserted(const css::awt::ItemListEvent &Event) override
void SAL_CALL setDropDownLineCount(sal_Int16 nLines) override
void SAL_CALL removeActionListener(const css::uno::Reference< css::awt::XActionListener > &l) override
css::awt::Size SAL_CALL getMinimumSize() override
virtual void SAL_CALL allItemsRemoved(const css::lang::EventObject &Event) override
css::uno::Sequence< OUString > SAL_CALL getItems() override
void SAL_CALL addItemListener(const css::uno::Reference< css::awt::XItemListener > &l) override
sal_Int16 SAL_CALL getDropDownLineCount() override
void SAL_CALL addActionListener(const css::uno::Reference< css::awt::XActionListener > &l) override
css::awt::Size SAL_CALL calcAdjustedSize(const css::awt::Size &rNewSize) override
void SAL_CALL setProperty(const OUString &PropertyName, const css::uno::Any &Value) override
static void ImplGetPropertyIds(std::vector< sal_uInt16 > &aIds)
css::util::Date SAL_CALL getMax() override
css::util::Date SAL_CALL getMin() override
virtual css::uno::Reference< css::accessibility::XAccessibleContext > CreateAccessibleContext() override
css::util::Date SAL_CALL getFirst() override
static void ImplGetPropertyIds(std::vector< sal_uInt16 > &aIds)
void SAL_CALL setMax(const css::util::Date &Date) override
void SAL_CALL setMin(const css::util::Date &Date) override
sal_Bool SAL_CALL isStrictFormat() override
void SAL_CALL setStrictFormat(sal_Bool bStrict) override
void SAL_CALL setFirst(const css::util::Date &Date) override
void SAL_CALL setLast(const css::util::Date &Date) override
void SAL_CALL setDate(const css::util::Date &Date) override
css::uno::Any SAL_CALL getProperty(const OUString &PropertyName) override
virtual ~VCLXDateField() override
sal_Bool SAL_CALL isEmpty() override
sal_Bool SAL_CALL isLongFormat() override
css::util::Date SAL_CALL getDate() override
void SAL_CALL setProperty(const OUString &PropertyName, const css::uno::Any &Value) override
css::util::Date SAL_CALL getLast() override
void SAL_CALL setLongFormat(sal_Bool bLong) override
void SAL_CALL setEmpty() override
css::awt::DeviceInfo SAL_CALL getInfo() override
void SAL_CALL setTitle(const OUString &Title) override
virtual void SAL_CALL endDialog(::sal_Int32 Result) override
void SAL_CALL endExecute() override
void SAL_CALL setProperty(const OUString &PropertyName, const css::uno::Any &Value) override
OUString SAL_CALL getTitle() override
virtual void SAL_CALL setHelpId(const OUString &Id) override
void SAL_CALL draw(sal_Int32 nX, sal_Int32 nY) override
sal_Int16 SAL_CALL execute() override
css::awt::DeviceInfo SAL_CALL getInfo() override
virtual ~VCLXDialog() override
virtual void GetPropertyIds(std::vector< sal_uInt16 > &aIds) override
void SAL_CALL setEditable(sal_Bool bEditable) override
void SAL_CALL setText(const OUString &aText) override
void SAL_CALL addTextListener(const css::uno::Reference< css::awt::XTextListener > &l) override
void SAL_CALL dispose() override
void SAL_CALL setEchoChar(sal_Unicode cEcho) override
static void ImplGetPropertyIds(std::vector< sal_uInt16 > &aIds)
void SAL_CALL removeTextListener(const css::uno::Reference< css::awt::XTextListener > &l) override
css::awt::Size SAL_CALL getPreferredSize() override
TextListenerMultiplexer & GetTextListeners()
TextListenerMultiplexer maTextListeners
css::awt::Size SAL_CALL calcAdjustedSize(const css::awt::Size &rNewSize) override
void SAL_CALL getColumnsAndLines(sal_Int16 &nCols, sal_Int16 &nLines) override
css::awt::Size SAL_CALL getMinimumSize() override
virtual css::uno::Reference< css::accessibility::XAccessibleContext > CreateAccessibleContext() override
void SAL_CALL setSelection(const css::awt::Selection &aSelection) override
void ProcessWindowEvent(const VclWindowEvent &rVclWindowEvent) override
css::awt::Selection SAL_CALL getSelection() override
void SAL_CALL setProperty(const OUString &PropertyName, const css::uno::Any &Value) override
void SAL_CALL insertText(const css::awt::Selection &Sel, const OUString &Text) override
void SAL_CALL setMaxTextLen(sal_Int16 nLen) override
OUString SAL_CALL getText() override
sal_Bool SAL_CALL isEditable() override
css::uno::Any SAL_CALL getProperty(const OUString &PropertyName) override
sal_Int16 SAL_CALL getMaxTextLen() override
OUString SAL_CALL getSelectedText() override
void SAL_CALL insertText(const css::awt::Selection &Sel, const OUString &Text) override
OUString SAL_CALL getText() override
void SAL_CALL setEditable(sal_Bool bEditable) override
void SAL_CALL removeTextListener(const css::uno::Reference< css::awt::XTextListener > &l) override
sal_Bool SAL_CALL isEditable() override
void SAL_CALL getColumnsAndLines(sal_Int16 &nCols, sal_Int16 &nLines) override
TextListenerMultiplexer maTextListeners
css::awt::Size SAL_CALL getMinimumSize() override
void SAL_CALL addTextListener(const css::uno::Reference< css::awt::XTextListener > &l) override
sal_Int16 SAL_CALL getMaxTextLen() override
void SAL_CALL setText(const OUString &aText) override
css::awt::Size SAL_CALL calcAdjustedSize(const css::awt::Size &aNewSize) override
virtual ~VCLXFileControl() override
virtual void SetWindow(const VclPtr< vcl::Window > &pWindow) override
OUString SAL_CALL getSelectedText() override
void SAL_CALL setSelection(const css::awt::Selection &aSelection) override
css::awt::Selection SAL_CALL getSelection() override
static void ImplGetPropertyIds(std::vector< sal_uInt16 > &aIds)
css::awt::Size SAL_CALL getPreferredSize() override
void SAL_CALL setProperty(const OUString &PropertyName, const css::uno::Any &Value) override
void SAL_CALL setMaxTextLen(sal_Int16 nLen) override
void SAL_CALL addActionListener(const css::uno::Reference< css::awt::XActionListener > &l) override
void SAL_CALL setURL(const OUString &URL) override
void ProcessWindowEvent(const VclWindowEvent &rVclWindowEvent) override
void SAL_CALL setProperty(const OUString &PropertyName, const css::uno::Any &Value) override
void SAL_CALL setText(const OUString &Text) override
css::awt::Size SAL_CALL getMinimumSize() override
css::uno::Any SAL_CALL getProperty(const OUString &PropertyName) override
void SAL_CALL dispose() override
virtual css::uno::Reference< css::accessibility::XAccessibleContext > CreateAccessibleContext() override
ActionListenerMultiplexer maActionListeners
virtual ~VCLXFixedHyperlink() override
OUString SAL_CALL getURL() override
static void ImplGetPropertyIds(std::vector< sal_uInt16 > &aIds)
void SAL_CALL setAlignment(sal_Int16 nAlign) override
void SAL_CALL removeActionListener(const css::uno::Reference< css::awt::XActionListener > &l) override
css::awt::Size SAL_CALL calcAdjustedSize(const css::awt::Size &rNewSize) override
OUString SAL_CALL getText() override
sal_Int16 SAL_CALL getAlignment() override
css::awt::Size SAL_CALL getPreferredSize() override
void SAL_CALL setAlignment(sal_Int16 nAlign) override
virtual css::uno::Reference< css::accessibility::XAccessibleContext > CreateAccessibleContext() override
css::awt::Size SAL_CALL calcAdjustedSize(const css::awt::Size &rNewSize) override
OUString SAL_CALL getText() override
css::awt::Size SAL_CALL getPreferredSize() override
static void ImplGetPropertyIds(std::vector< sal_uInt16 > &aIds)
css::awt::Size SAL_CALL getMinimumSize() override
void SAL_CALL setText(const OUString &Text) override
sal_Int16 SAL_CALL getAlignment() override
virtual ~VCLXFixedText() override
virtual ~VCLXFrame() override
void SAL_CALL setProperty(const OUString &PropertyName, const css::uno::Any &Value) override
static void ImplGetPropertyIds(std::vector< sal_uInt16 > &aIds)
void SAL_CALL draw(sal_Int32 nX, sal_Int32 nY) override
void ProcessWindowEvent(const VclWindowEvent &rVclWindowEvent) override
void SAL_CALL setProperty(const OUString &PropertyName, const css::uno::Any &Value) override
Image maImage
the image we currently display
static void ImplGetPropertyIds(std::vector< sal_uInt16 > &aIds)
virtual void ImplSetNewImage()
forward our bitmap to our window @precond our mutex is locked @precond GetWindow is not <NULL>
css::uno::Any SAL_CALL getProperty(const OUString &PropertyName) override
void SAL_CALL setPosSize(sal_Int32 X, sal_Int32 Y, sal_Int32 Width, sal_Int32 Height, sal_Int16 Flags) override
const Image & GetImage() const
css::uno::Any SAL_CALL getProperty(const OUString &PropertyName) override
css::awt::Size SAL_CALL getMinimumSize() override
static void ImplGetPropertyIds(std::vector< sal_uInt16 > &aIds)
css::awt::Size SAL_CALL getPreferredSize() override
virtual ~VCLXImageControl() override
virtual void ImplSetNewImage() override
forward our bitmap to our window @precond our mutex is locked @precond GetWindow is not <NULL>
void SAL_CALL setProperty(const OUString &PropertyName, const css::uno::Any &Value) override
css::awt::Size SAL_CALL calcAdjustedSize(const css::awt::Size &rNewSize) override
void SAL_CALL getColumnsAndLines(sal_Int16 &nCols, sal_Int16 &nLines) override
void SAL_CALL selectItem(const OUString &aItem, sal_Bool bSelect) override
sal_Bool SAL_CALL isMutipleMode() override
void SAL_CALL removeItems(sal_Int16 nPos, sal_Int16 nCount) override
void SAL_CALL addItemListener(const css::uno::Reference< css::awt::XItemListener > &l) override
css::uno::Sequence< OUString > SAL_CALL getSelectedItems() override
void SAL_CALL removeItemListener(const css::uno::Reference< css::awt::XItemListener > &l) override
virtual css::uno::Reference< css::accessibility::XAccessibleContext > CreateAccessibleContext() override
css::uno::Any SAL_CALL getProperty(const OUString &PropertyName) override
virtual void ProcessWindowEvent(const VclWindowEvent &rVclWindowEvent) override
css::awt::Size SAL_CALL calcAdjustedSize(const css::awt::Size &rNewSize) override
virtual void SAL_CALL listItemModified(const css::awt::ItemListEvent &Event) override
void SAL_CALL setDropDownLineCount(sal_Int16 nLines) override
void SAL_CALL addItems(const css::uno::Sequence< OUString > &aItems, sal_Int16 nPos) override
ActionListenerMultiplexer maActionListeners
void SAL_CALL setMultipleMode(sal_Bool bMulti) override
css::awt::Size SAL_CALL getPreferredSize() override
OUString SAL_CALL getSelectedItem() override
css::uno::Sequence< sal_Int16 > SAL_CALL getSelectedItemsPos() override
virtual void SAL_CALL itemListChanged(const css::lang::EventObject &Event) override
virtual void SAL_CALL allItemsRemoved(const css::lang::EventObject &Event) override
void SAL_CALL selectItemPos(sal_Int16 nPos, sal_Bool bSelect) override
sal_Int16 SAL_CALL getDropDownLineCount() override
void SAL_CALL removeActionListener(const css::uno::Reference< css::awt::XActionListener > &l) override
ItemListenerMultiplexer maItemListeners
void SAL_CALL makeVisible(sal_Int16 nEntry) override
void SAL_CALL setProperty(const OUString &PropertyName, const css::uno::Any &Value) override
void SAL_CALL addItem(const OUString &aItem, sal_Int16 nPos) override
virtual void SAL_CALL listItemRemoved(const css::awt::ItemListEvent &Event) override
OUString SAL_CALL getItem(sal_Int16 nPos) override
virtual void SAL_CALL disposing(const css::lang::EventObject &i_rEvent) override
sal_Int16 SAL_CALL getSelectedItemPos() override
void SAL_CALL addActionListener(const css::uno::Reference< css::awt::XActionListener > &l) override
css::uno::Sequence< OUString > SAL_CALL getItems() override
virtual void SAL_CALL listItemInserted(const css::awt::ItemListEvent &Event) override
void ImplCallItemListeners()
sal_Int16 SAL_CALL getItemCount() override
css::awt::Size SAL_CALL getMinimumSize() override
void SAL_CALL dispose() override
void SAL_CALL selectItemsPos(const css::uno::Sequence< sal_Int16 > &aPositions, sal_Bool bSelect) override
static void ImplGetPropertyIds(std::vector< sal_uInt16 > &aIds)
void SAL_CALL setCaptionText(const OUString &aText) override
void SAL_CALL setMessageText(const OUString &aText) override
OUString SAL_CALL getCaptionText() override
sal_Int16 SAL_CALL execute() override
virtual ~VCLXMessageBox() override
virtual void GetPropertyIds(std::vector< sal_uInt16 > &aIds) override
css::awt::Size SAL_CALL getMinimumSize() override
OUString SAL_CALL getMessageText() override
static void ImplGetPropertyIds(std::vector< sal_uInt16 > &aIds)
MetricField * GetMetricField()
virtual ::sal_Int64 SAL_CALL getCorrectedValue(::sal_Int16 Unit) override
virtual void SAL_CALL setUserValue(::sal_Int64 Value, ::sal_Int16 Unit) override
virtual ::sal_Int64 SAL_CALL getSpinSize() override
virtual void SAL_CALL setStrictFormat(sal_Bool bStrict) override
virtual ::sal_Int16 SAL_CALL getDecimalDigits() override
virtual void SAL_CALL setDecimalDigits(::sal_Int16 nDigits) override
virtual sal_Bool SAL_CALL isStrictFormat() override
virtual void SAL_CALL setValue(::sal_Int64 Value, ::sal_Int16 Unit) override
void SAL_CALL setProperty(const OUString &PropertyName, const css::uno::Any &Value) override
virtual ~VCLXMetricField() override
css::uno::Any SAL_CALL getProperty(const OUString &PropertyName) override
virtual ::sal_Int64 SAL_CALL getValue(::sal_Int16 Unit) override
virtual void SAL_CALL setSpinSize(::sal_Int64 Value) override
MetricFormatter * GetMetricFormatter()
css::awt::Size SAL_CALL getPreferredSize() override
void SAL_CALL setMaxTextLen(sal_Int16 nLen) override
OUString SAL_CALL getSelectedText() override
void SAL_CALL removeTextListener(const css::uno::Reference< css::awt::XTextListener > &l) override
void SAL_CALL getColumnsAndLines(sal_Int16 &nCols, sal_Int16 &nLines) override
TextListenerMultiplexer maTextListeners
OUString SAL_CALL getTextLines() override
void SAL_CALL setProperty(const OUString &PropertyName, const css::uno::Any &Value) override
void SAL_CALL setEditable(sal_Bool bEditable) override
sal_Bool SAL_CALL isEditable() override
css::awt::Size SAL_CALL getMinimumSize() override
css::uno::Any SAL_CALL getProperty(const OUString &PropertyName) override
void SAL_CALL setSelection(const css::awt::Selection &aSelection) override
css::awt::Size SAL_CALL calcAdjustedSize(const css::awt::Size &aNewSize) override
static void ImplGetPropertyIds(std::vector< sal_uInt16 > &aIds)
OUString SAL_CALL getText() override
sal_Int16 SAL_CALL getMaxTextLen() override
void SAL_CALL insertText(const css::awt::Selection &Sel, const OUString &Text) override
virtual ~VCLXMultiLineEdit() override
css::awt::Selection SAL_CALL getSelection() override
void SAL_CALL addTextListener(const css::uno::Reference< css::awt::XTextListener > &l) override
void SAL_CALL setFocus() override
void SAL_CALL setText(const OUString &aText) override
void ProcessWindowEvent(const VclWindowEvent &rVclWindowEvent) override
virtual void SAL_CALL setTabProps(::sal_Int32 ID, const css::uno::Sequence< css::beans::NamedValue > &Properties) override
css::uno::Any SAL_CALL getProperty(const OUString &PropertyName) override
virtual ::sal_Int32 SAL_CALL getActiveTabID() override
virtual ::sal_Int32 SAL_CALL insertTab() override
TabListenerMultiplexer maTabListeners
virtual css::uno::Sequence< css::beans::NamedValue > SAL_CALL getTabProps(::sal_Int32 ID) override
void SAL_CALL draw(sal_Int32 nX, sal_Int32 nY) override
TabControl * getTabControl() const
virtual void SAL_CALL removeTab(::sal_Int32 ID) override
virtual void SAL_CALL addTabListener(const css::uno::Reference< css::awt::XTabListener > &Listener) override
virtual void SAL_CALL removeTabListener(const css::uno::Reference< css::awt::XTabListener > &Listener) override
void ProcessWindowEvent(const VclWindowEvent &rVclWindowEvent) override
virtual ~VCLXMultiPage() override
void SAL_CALL dispose() override
static void ImplGetPropertyIds(std::vector< sal_uInt16 > &aIds)
void SAL_CALL setProperty(const OUString &PropertyName, const css::uno::Any &Value) override
virtual void SAL_CALL activateTab(::sal_Int32 ID) override
void SAL_CALL setDecimalDigits(sal_Int16 nDigits) override
double SAL_CALL getLast() override
void SAL_CALL setMax(double Value) override
sal_Int16 SAL_CALL getDecimalDigits() override
double SAL_CALL getFirst() override
void SAL_CALL setFirst(double Value) override
css::uno::Any SAL_CALL getProperty(const OUString &PropertyName) override
sal_Bool SAL_CALL isStrictFormat() override
void SAL_CALL setLast(double Value) override
double SAL_CALL getValue() override
double SAL_CALL getSpinSize() override
double SAL_CALL getMin() override
void SAL_CALL setValue(double Value) override
static void ImplGetPropertyIds(std::vector< sal_uInt16 > &aIds)
void SAL_CALL setMin(double Value) override
virtual ~VCLXNumericField() override
void SAL_CALL setProperty(const OUString &PropertyName, const css::uno::Any &Value) override
double SAL_CALL getMax() override
void SAL_CALL setSpinSize(double Value) override
void SAL_CALL setStrictFormat(sal_Bool bStrict) override
void SAL_CALL getMasks(OUString &EditMask, OUString &LiteralMask) override
void SAL_CALL setProperty(const OUString &PropertyName, const css::uno::Any &Value) override
void SAL_CALL setString(const OUString &Str) override
virtual ~VCLXPatternField() override
void SAL_CALL setMasks(const OUString &EditMask, const OUString &LiteralMask) override
css::uno::Any SAL_CALL getProperty(const OUString &PropertyName) override
OUString SAL_CALL getString() override
void SAL_CALL setStrictFormat(sal_Bool bStrict) override
static void ImplGetPropertyIds(std::vector< sal_uInt16 > &aIds)
sal_Bool SAL_CALL isStrictFormat() override
css::uno::Any SAL_CALL getProperty(const OUString &PropertyName) override
void SAL_CALL setProperty(const OUString &PropertyName, const css::uno::Any &Value) override
static void ImplGetPropertyIds(std::vector< sal_uInt16 > &aIds)
void SAL_CALL setForegroundColor(sal_Int32 nColor) override
void SAL_CALL setValue(sal_Int32 nValue) override
virtual ~VCLXProgressBar() override
sal_Int32 SAL_CALL getValue() override
void SAL_CALL setRange(sal_Int32 nMin, sal_Int32 nMax) override
void SAL_CALL setBackgroundColor(sal_Int32 nColor) override
void SAL_CALL last() override
void SAL_CALL removeSpinListener(const css::uno::Reference< css::awt::XSpinListener > &l) override
void SAL_CALL first() override
void SAL_CALL down() override
void SAL_CALL enableRepeat(sal_Bool bRepeat) override
SpinListenerMultiplexer maSpinListeners
static void ImplGetPropertyIds(std::vector< sal_uInt16 > &aIds)
void SAL_CALL addSpinListener(const css::uno::Reference< css::awt::XSpinListener > &l) override
void ProcessWindowEvent(const VclWindowEvent &rVclWindowEvent) override
void SAL_CALL up() override
TabPage * getTabPage() const
void SAL_CALL setProperty(const OUString &PropertyName, const css::uno::Any &Value) override
static void ImplGetPropertyIds(std::vector< sal_uInt16 > &aIds)
virtual ~VCLXTabPage() override
void SAL_CALL draw(sal_Int32 nX, sal_Int32 nY) override
sal_Bool SAL_CALL isEmpty() override
css::util::Time SAL_CALL getMin() override
void SAL_CALL setStrictFormat(sal_Bool bStrict) override
virtual ~VCLXTimeField() override
void SAL_CALL setEmpty() override
sal_Bool SAL_CALL isStrictFormat() override
void SAL_CALL setTime(const css::util::Time &Time) override
static void ImplGetPropertyIds(std::vector< sal_uInt16 > &aIds)
void SAL_CALL setMax(const css::util::Time &Time) override
css::util::Time SAL_CALL getMax() override
void SAL_CALL setMin(const css::util::Time &Time) override
void SAL_CALL setLast(const css::util::Time &Time) override
css::util::Time SAL_CALL getTime() override
css::uno::Any SAL_CALL getProperty(const OUString &PropertyName) override
void SAL_CALL setProperty(const OUString &PropertyName, const css::uno::Any &Value) override
void SAL_CALL setFirst(const css::util::Time &Time) override
css::util::Time SAL_CALL getLast() override
css::util::Time SAL_CALL getFirst() override
virtual css::uno::Reference< css::accessibility::XAccessibleContext > CreateAccessibleContext() override
static void ImplGetPropertyIds(std::vector< sal_uInt16 > &aIds)
vcl::Window * GetWindow() const
virtual void ProcessWindowEvent(const VclWindowEvent &rVclWindowEvent)
void SAL_CALL setPosSize(sal_Int32 X, sal_Int32 Y, sal_Int32 Width, sal_Int32 Height, sal_Int16 Flags) override
virtual void SetWindow(const VclPtr< vcl::Window > &pWindow)
Size ImplCalcWindowSize(const Size &rOutSz) const
static void ImplGetPropertyIds(std::vector< sal_uInt16 > &aIds, bool bWithDefaults=false)
css::uno::Any SAL_CALL getProperty(const OUString &PropertyName) override
static void PushPropertyIds(std::vector< sal_uInt16 > &aIds, int nFirstId,...)
void SAL_CALL setProperty(const OUString &PropertyName, const css::uno::Any &Value) override
virtual void SAL_CALL disposing(const css::lang::EventObject &Source) override
::toolkit::IAccessibleFactory & getAccessibleFactory()
void SAL_CALL dispose() override
reference_type * get() const
vcl::Window * GetWindow() const
void SetStyle(WallpaperStyle eStyle)
bool put(const OUString &_rValueName, const VALUE_TYPE &_rValue)
css::uno::Sequence< css::beans::PropertyValue > getPropertyValues() const
void SetStyle(WinBits nStyle)
bool IsReallyVisible() const
WindowType GetType() const
const AllSettings & GetSettings() const
void SetSettings(const AllSettings &rSettings)
virtual Size GetSizePixel() const
constexpr ::Color COL_WHITE(0xFF, 0xFF, 0xFF)
constexpr ::Color COL_AUTO(ColorTransparency, 0xFF, 0xFF, 0xFF, 0xFF)
css::awt::Size AWTSize(const Size &rVCLSize)
inline ::Size VCLSize(const css::awt::Size &rAWTSize)
#define DBG_ASSERT(sCon, aError)
#define DBG_UNHANDLED_EXCEPTION(...)
#define ENSURE_OR_RETURN_VOID(c, m)
#define LINK(Instance, Class, Member)
Sequence< sal_Int8 > aSeq
#define SAL_INFO(area, stream)
Image getImageFromURL(const OUString &i_rImageURL)
tools::Long const nBorder
double getLength(const B2DPolygon &rCandidate)
OString OUStringToOString(std::u16string_view str, ConnectionSettings const *settings)
sal_uInt16 GetPropertyId(const OUString &rPropertyName)
#define BASEPROPERTY_DEFAULTBUTTON
#define BASEPROPERTY_MULTILINE
#define BASEPROPERTY_SCROLLVALUE_MIN
#define BASEPROPERTY_UNIT
#define BASEPROPERTY_LITERALMASK
#define BASEPROPERTY_LINEINCREMENT
#define BASEPROPERTY_LINE_END_FORMAT
#define BASEPROPERTY_TEXTLINECOLOR
#define BASEPROPERTY_CURRENCYSYMBOL
#define BASEPROPERTY_VISIBLESIZE
#define BASEPROPERTY_EDITMASK
#define BASEPROPERTY_BORDER
#define BASEPROPERTY_SPIN
#define BASEPROPERTY_HSCROLL
#define BASEPROPERTY_VISUALEFFECT
#define BASEPROPERTY_PAINTTRANSPARENT
#define BASEPROPERTY_MOUSE_WHEEL_BEHAVIOUR
#define BASEPROPERTY_FILLCOLOR
#define BASEPROPERTY_STRINGITEMLIST
#define BASEPROPERTY_HIDEINACTIVESELECTION
#define BASEPROPERTY_ENFORCE_FORMAT
#define BASEPROPERTY_AUTOTOGGLE
#define BASEPROPERTY_SCALEIMAGE
#define BASEPROPERTY_ORIENTATION
#define BASEPROPERTY_ECHOCHAR
#define BASEPROPERTY_CONTEXT_WRITING_MODE
#define BASEPROPERTY_HIGHLIGHT_COLOR
#define BASEPROPERTY_DATESHOWCENTURY
#define BASEPROPERTY_EXTTIMEFORMAT
#define BASEPROPERTY_TIMEMIN
#define BASEPROPERTY_TEXT
#define BASEPROPERTY_BLOCKINCREMENT
#define BASEPROPERTY_READONLY
#define BASEPROPERTY_DATEMAX
#define BASEPROPERTY_MULTIPAGEVALUE
#define BASEPROPERTY_TITLE
#define BASEPROPERTY_SCROLLVALUE_MAX
#define BASEPROPERTY_ALIGN
#define BASEPROPERTY_IMAGEPOSITION
#define BASEPROPERTY_EFFECTIVE_MAX
#define BASEPROPERTY_TOGGLE
#define BASEPROPERTY_HELPURL
#define BASEPROPERTY_EXTDATEFORMAT
#define BASEPROPERTY_AUTOCOMPLETE
#define BASEPROPERTY_REPEAT
#define BASEPROPERTY_LINECOUNT
#define BASEPROPERTY_TIME
#define BASEPROPERTY_PROGRESSVALUE_MIN
#define BASEPROPERTY_GROUPNAME
#define BASEPROPERTY_SYMBOL_COLOR
#define BASEPROPERTY_IMAGEURL
#define BASEPROPERTY_VALUEMIN_DOUBLE
#define BASEPROPERTY_BACKGROUNDCOLOR
#define BASEPROPERTY_TYPEDITEMLIST
#define BASEPROPERTY_FORMATKEY
#define BASEPROPERTY_LIVE_SCROLL
#define BASEPROPERTY_MULTISELECTION_SIMPLEMODE
#define BASEPROPERTY_MULTISELECTION
#define BASEPROPERTY_PROGRESSVALUE
#define BASEPROPERTY_TABSTOP
#define BASEPROPERTY_ENABLED
#define BASEPROPERTY_STRICTFORMAT
#define BASEPROPERTY_DROPDOWN
#define BASEPROPERTY_DEFAULTCONTROL
#define BASEPROPERTY_VERTICALALIGN
#define BASEPROPERTY_PROGRESSVALUE_MAX
#define BASEPROPERTY_TRISTATE
#define BASEPROPERTY_ITEM_SEPARATOR_POS
#define BASEPROPERTY_SCROLLVALUE
#define BASEPROPERTY_WRITING_MODE
#define BASEPROPERTY_HIGHLIGHT_TEXT_COLOR
#define BASEPROPERTY_GRAPHIC
#define BASEPROPERTY_LABEL
#define BASEPROPERTY_DATE
#define BASEPROPERTY_FOCUSONCLICK
#define BASEPROPERTY_EFFECTIVE_DEFAULT
#define BASEPROPERTY_BORDERCOLOR
#define BASEPROPERTY_CURSYM_POSITION
#define BASEPROPERTY_FONTDESCRIPTOR
#define BASEPROPERTY_NUMSHOWTHOUSANDSEP
#define BASEPROPERTY_FORMATSSUPPLIER
#define BASEPROPERTY_MAXTEXTLEN
#define BASEPROPERTY_DATEMIN
#define BASEPROPERTY_DECIMALACCURACY
#define BASEPROPERTY_VSCROLL
#define BASEPROPERTY_ENABLEVISIBLE
#define BASEPROPERTY_NOLABEL
#define BASEPROPERTY_AUTOHSCROLL
#define BASEPROPERTY_AUTOVSCROLL
#define BASEPROPERTY_HELPTEXT
#define BASEPROPERTY_VALUEMAX_DOUBLE
#define BASEPROPERTY_VALUE_DOUBLE
#define BASEPROPERTY_STATE
#define BASEPROPERTY_SELECTEDITEMS
#define BASEPROPERTY_EFFECTIVE_VALUE
#define BASEPROPERTY_REFERENCE_DEVICE
#define BASEPROPERTY_EFFECTIVE_MIN
#define BASEPROPERTY_CUSTOMUNITTEXT
#define BASEPROPERTY_HARDLINEBREAKS
#define BASEPROPERTY_IMAGEALIGN
#define BASEPROPERTY_TIMEMAX
#define BASEPROPERTY_REPEAT_DELAY
#define BASEPROPERTY_IMAGE_SCALE_MODE
#define BASEPROPERTY_TEXTCOLOR
#define BASEPROPERTY_PUSHBUTTONTYPE
#define BASEPROPERTY_PRINTABLE
#define BASEPROPERTY_TREATASNUMBER
#define BASEPROPERTY_VALUESTEP_DOUBLE
#define MetricUnitUnoToVcl(a)
#define METRIC_MAP_PAIR(method, parent)
static double ImplCalcLongValue(double nValue, sal_uInt16 nDigits)
static double ImplCalcDoubleValue(double nValue, sal_uInt16 nDigits)
IMPL_LINK_NOARG(VCLXFileControl, ModifyHdl, Edit &, void)
WinBits const WB_DROPDOWN
WinBits const WB_NOPOINTERFOCUS
WinBits const WB_SIMPLEMODE
WinBits const WB_DEFBUTTON
WinBits const WB_NOHIDESELECTION