diff options
Diffstat (limited to 'vcl/source/window/tabpage.cxx')
-rw-r--r-- | vcl/source/window/tabpage.cxx | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/vcl/source/window/tabpage.cxx b/vcl/source/window/tabpage.cxx index 576d645ea820..2079ec9bdb50 100644 --- a/vcl/source/window/tabpage.cxx +++ b/vcl/source/window/tabpage.cxx @@ -44,6 +44,8 @@ void TabPage::ImplInit( vcl::Window* pParent, WinBits nStyle ) // otherwise they will paint with a wrong background if( IsNativeControlSupported(ControlType::TabBody, ControlPart::Entire) && GetParent() && (GetParent()->GetType() == WINDOW_TABCONTROL) ) EnableChildTransparentMode(); + + maContext.push_back( vcl::EnumContext::Context::Context_Any ); } void TabPage::ImplInitSettings() @@ -222,4 +224,22 @@ void TabPage::SetPosPixel(const Point& rAllocPos) } } +void TabPage::SetContext(const std::vector<vcl::EnumContext::Context>& aContext) +{ + maContext = aContext; +} + +bool TabPage::HasContext( const vcl::EnumContext::Context eContext ) const +{ + auto aFind = std::find(maContext.begin(), maContext.end(), eContext); + if (aFind == maContext.end()) + return false; + return true; +} + +const std::vector< vcl::EnumContext::Context >& TabPage::GetContext() const +{ + return maContext; +} + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |