diff --git a/rsc/inc/rscdb.hxx b/rsc/inc/rscdb.hxx index 1d5af35de9ff..4a32d954efa6 100644 --- a/rsc/inc/rscdb.hxx +++ b/rsc/inc/rscdb.hxx @@ -97,6 +97,7 @@ class RscTypCont Atom nMinimizeId; Atom nMaximizeId; Atom nCloseableId; + Atom nStdPopupId; Atom nAppId; Atom nTabstopId; Atom nGroupId; diff --git a/rsc/inc/vclrsc.hxx b/rsc/inc/vclrsc.hxx index 49847bd91e69..f84c11136700 100644 --- a/rsc/inc/vclrsc.hxx +++ b/rsc/inc/vclrsc.hxx @@ -84,6 +84,10 @@ typedef sal_Int64 WinBits; #define WB_AUTOVSCROLL ((WinBits)0x40000000) #define WB_HIDE ((WinBits)0x80000000) + +// system floating window +#define WB_POPUP ((WinBits)0x20000000) + #define WB_HSCROLL WB_HORZ #define WB_VSCROLL WB_VERT #define WB_TOPIMAGE WB_TOP @@ -152,6 +156,7 @@ typedef sal_Int64 WinBits; #define WB_STDMODAL (WB_STDDIALOG) #define WB_STDTABDIALOG (WB_STDDIALOG) #define WB_STDTABCONTROL 0 +#define WB_STDPOPUP (WB_BORDER | WB_POPUP | WB_SYSTEMWINDOW | WB_3DLOOK | WB_DIALOGCONTROL) // For TreeListBox #define WB_HASBUTTONS ((WinBits)0x00800000) diff --git a/rsc/source/parser/rscicpx.cxx b/rsc/source/parser/rscicpx.cxx index 625417769f45..b401cf677612 100644 --- a/rsc/source/parser/rscicpx.cxx +++ b/rsc/source/parser/rscicpx.cxx @@ -2218,6 +2218,7 @@ RscTop * RscTypCont::InitClassFloatingWindow( RscTop * pSuper, INS_WINBIT(pClassFloatingWindow,Zoomable) INS_WINBIT(pClassFloatingWindow,HideWhenDeactivate) INS_WINBIT(pClassFloatingWindow,EnableResizing) + INS_WINBIT(pClassFloatingWindow,StdPopup) return pClassFloatingWindow; } diff --git a/rsc/source/parser/rscinit.cxx b/rsc/source/parser/rscinit.cxx index a763b92f0bb1..9c15bde0ffad 100644 --- a/rsc/source/parser/rscinit.cxx +++ b/rsc/source/parser/rscinit.cxx @@ -374,6 +374,8 @@ void RscTypCont::Init() aWinBits.SetConstant( nSingleLineId, sal::static_int_cast(WB_SINGLELINE) ); nSysWinId = pHS->getID( "WB_SYSTEMWINDOW" ); aWinBits.SetConstant( nSysWinId, sal::static_int_cast(WB_SYSTEMWINDOW) ); + nStdPopupId = pHS->getID( "WB_STDPOPUP" ); + aWinBits.SetConstant( nStdPopupId, sal::static_int_cast(WB_STDPOPUP) ); } { /********** I n i t B a s i c T y p e s **************************/