29#include <helper/property.hxx>
51 GetContainerListeners().addInterface( rxListener );
59 GetContainerListeners().removeInterface( rxListener );
67 css::uno::Sequence< css::uno::Reference< css::awt::XWindow > >
aSeq;
71 sal_uInt16 nChildren = pWindow->GetChildCount();
74 aSeq = css::uno::Sequence< css::uno::Reference< css::awt::XWindow > >( nChildren );
75 css::uno::Reference< css::awt::XWindow > * pChildRefs =
aSeq.getArray();
76 for ( sal_uInt16
n = 0;
n < nChildren;
n++ )
80 css::uno::Reference< css::awt::XWindow > xW( xWP, css::uno::UNO_QUERY );
97 WinBits nStyle = pWindow->GetStyle();
101 nStyle &= (~WB_DIALOGCONTROL);
102 pWindow->SetStyle( nStyle );
111 DBG_ASSERT(
nCount ==
static_cast<sal_uInt32
>(Tabs.getLength()),
"setTabOrder: TabCount != ComponentCount" );
112 const css::uno::Reference< css::awt::XWindow > * pComps =
Components.getConstArray();
113 const css::uno::Any* pTabs = Tabs.getConstArray();
116 for ( sal_uInt32
n = 0;
n <
nCount;
n++ )
126 pWin->SetZOrder( pPrevWin, ZOrderFlags::Behind );
128 WinBits nStyle = pWin->GetStyle();
130 if ( pTabs[
n].getValueType().getTypeClass() == css::uno::TypeClass_BOOLEAN )
136 pWin->SetStyle( nStyle );
141 pWin->SetDialogControlStart(
true );
143 pWin->SetDialogControlStart(
false );
156 const css::uno::Reference< css::awt::XWindow > * pComps =
Components.getConstArray();
160 for ( sal_uInt32
n = 0;
n <
nCount;
n++ )
167 bool bNewPrevWin =
true;
168 if ( pWin->GetType() == WindowType::RADIOBUTTON )
173 bNewPrevWin = ( pPrevWin == pPrevRadio );
174 pSortBehind = pPrevRadio;
181 pWin->SetZOrder( pSortBehind, ZOrderFlags::Behind );
183 WinBits nStyle = pWin->GetStyle();
187 nStyle &= (~WB_GROUP);
188 pWin->SetStyle( nStyle );
193 vcl::Window* pBehindLast = pWin->GetWindow( GetWindowType::Next );
198 pBehindLast->
SetStyle( nLastStyle );
209 const OUString& PropertyName,
210 const css::uno::Any& Value )
224 Size aSize( nVal, nVal );
226 MapMode aMode( MapUnit::MapAppFont );
229 if ( pWindow && (pScrollable || pScrollTabPage) )
231 aSize = pWindow->LogicToPixel( aSize, aMode );
constexpr tools::Long Height() const
constexpr tools::Long Width() const
void SetScrollLeft(tools::Long nLeft)
void SetScrollTop(tools::Long Top)
void SetScrollWidth(tools::Long nWidth)
void SetScrollHeight(tools::Long nHeight)
static vcl::Window * GetWindow(const css::uno::Reference< css::awt::XWindow > &rxWindow)
void SAL_CALL addVclContainerListener(const css::uno::Reference< css::awt::XVclContainerListener > &l) override
void SAL_CALL enableDialogControl(sal_Bool bEnable) override
void SAL_CALL setTabOrder(const css::uno::Sequence< css::uno::Reference< css::awt::XWindow > > &WindowOrder, const css::uno::Sequence< css::uno::Any > &Tabs, sal_Bool GroupControl) override
void SAL_CALL setProperty(const OUString &PropertyName, const css::uno::Any &Value) override
static void ImplGetPropertyIds(std::vector< sal_uInt16 > &aIds)
virtual ~VCLXContainer() override
void SAL_CALL setGroup(const css::uno::Sequence< css::uno::Reference< css::awt::XWindow > > &Windows) override
void SAL_CALL removeVclContainerListener(const css::uno::Reference< css::awt::XVclContainerListener > &l) override
css::uno::Sequence< css::uno::Reference< css::awt::XWindow > > SAL_CALL getWindows() override
static void ImplGetPropertyIds(std::vector< sal_uInt16 > &aIds, bool bWithDefaults=false)
void SAL_CALL setProperty(const OUString &PropertyName, const css::uno::Any &Value) override
reference_type * get() const
void SetStyle(WinBits nStyle)
virtual css::uno::Reference< css::awt::XVclWindowPeer > GetComponentInterface(bool bCreate=true)
#define DBG_ASSERT(sCon, aError)
Sequence< sal_Int8 > aSeq
sal_uInt16 GetPropertyId(const OUString &rPropertyName)
#define BASEPROPERTY_SCROLLWIDTH
#define BASEPROPERTY_SCROLLLEFT
#define BASEPROPERTY_SCROLLHEIGHT
#define BASEPROPERTY_SCROLLTOP
std::vector< uno::Reference< sheet::XSpreadsheetDocument > > Components
WinBits const WB_DIALOGCONTROL
WinBits const WB_NOTABSTOP