28using namespace css::uno;
39 : mbIsHighContrastMode(
Application::GetSettings().GetStyleSettings().GetHighContrastMode()),
40 mbIsHighContrastModeSetManually(false)
106 Color aSecondColor (aBaseBackgroundColor);
137 catch(beans::UnknownPropertyException
const &)
151 const lang::EventObject
aEvent (getXWeak());
155 for (
const auto& rxListener : rContainer.second)
159 rxListener->disposing(
aEvent);
173 return Reference<beans::XPropertySet>();
178 return Reference<beans::XPropertySetInfo>(
this);
182 const OUString& rsPropertyName,
183 const css::uno::Any& rValue)
189 throw beans::UnknownPropertyException(rsPropertyName);
193 throw beans::UnknownPropertyException(rsPropertyName);
206 const beans::PropertyChangeEvent
aEvent(
227 const OUString& rsPropertyName)
233 throw beans::UnknownPropertyException(rsPropertyName);
237 throw beans::UnknownPropertyException(rsPropertyName);
245 const OUString& rsPropertyName,
246 const css::uno::Reference<css::beans::XPropertyChangeListener>& rxListener)
251 if (rsPropertyName.getLength() > 0)
255 throw beans::UnknownPropertyException(rsPropertyName);
259 throw beans::UnknownPropertyException(rsPropertyName);
264 if (pListeners !=
nullptr)
265 pListeners->push_back(rxListener);
269 const OUString& rsPropertyName,
270 const css::uno::Reference<css::beans::XPropertyChangeListener>& rxListener)
275 if (rsPropertyName.getLength() > 0)
279 throw beans::UnknownPropertyException(rsPropertyName);
283 throw beans::UnknownPropertyException(rsPropertyName);
288 if (pContainer !=
nullptr)
290 ChangeListenerContainer::iterator iListener (::std::find(pContainer->begin(), pContainer->end(), rxListener));
291 if (iListener != pContainer->end())
293 pContainer->erase(iListener);
296 if (pContainer->empty())
303 const OUString& rsPropertyName,
304 const css::uno::Reference<css::beans::XVetoableChangeListener>& rxListener)
309 if (rsPropertyName.getLength() > 0)
313 throw beans::UnknownPropertyException(rsPropertyName);
317 throw beans::UnknownPropertyException(rsPropertyName);
322 if (pListeners !=
nullptr)
323 pListeners->push_back(rxListener);
327 const OUString& rsPropertyName,
328 const css::uno::Reference<css::beans::XVetoableChangeListener>& rxListener)
333 if (rsPropertyName.getLength() > 0)
337 throw beans::UnknownPropertyException(rsPropertyName);
341 throw beans::UnknownPropertyException(rsPropertyName);
346 if (pContainer !=
nullptr)
348 VetoableListenerContainer::iterator iListener (::std::find(pContainer->begin(), pContainer->end(), rxListener));
349 if (iListener != pContainer->end())
351 pContainer->erase(iListener);
353 if (pContainer->empty())
365 sal_Int32
const nEnd(
End_);
366 for (sal_Int32 nItem(
Begin_); nItem!=nEnd; ++nItem)
373 const beans::Property aProperty(
381 return css::uno::Sequence<css::beans::Property>(
392 throw beans::UnknownPropertyException(rsPropertyName);
396 throw beans::UnknownPropertyException(rsPropertyName);
400 return beans::Property(
551 return &iContainer->second;
567 return &iContainer->second;
579 const beans::PropertyChangeEvent& rEvent)
581 if (pListeners ==
nullptr)
589 rxListener->vetoableChange(rEvent);
592 catch(
const beans::PropertyVetoException&)
605 const beans::PropertyChangeEvent& rEvent)
607 if (pListeners ==
nullptr)
615 rxListener->propertyChange(rEvent);
635 if (rValue >>= nColorValue)
651 if (rValue >>= bValue)
PropertiesInfo aProperties
SfxApplication * SfxGetpApp()
const StyleSettings & GetStyleSettings() const
static const AllSettings & GetSettings()
Color GetRGBColor() const
void DecreaseLuminance(sal_uInt8 cLumDec)
sfx2::sidebar::Theme & GetSidebarTheme()
this Theme contains Images so must be deleted before DeInitVCL
bool GetHighContrastMode() const
const Color & GetDialogColor() const
const Color & GetHighlightColor() const
const Color & GetHighlightTextColor() const
css::uno::Type const & get()
constexpr ::Color COL_WHITE(0xFF, 0xFF, 0xFF)
#define DBG_UNHANDLED_EXCEPTION(...)