Eine aufbereitete Darstellung der Quelle
Stufen
Anforderungen
|
Konzepte
|
Entwurf
|
Entwicklung
|
Qualitätssicherung
|
Lebenszyklus
|
Steuerung
Ziele
Untersuchung
mit Columbo
Integrität von
Datenbanken
Interaktion und
Portierbarkeit
Ergonomie der
Schnittstellen
Angebot
Produkte
Projekt
Beratung
Mittel
Analytik
Modellierung
Sprachen
Algebra
Logik
Hardware
Denken
Kreativität
Zusammenhänge
Gesellschaft
Wirtschaft
Branche
Firma
Benutzer
products
/
Sources
/
formale Sprachen
/
C
/
Firefox
/
layout
/
reftests
/
svg
/ (
Firefox Browser
Version 153.0.1
©
) Datei vom 27.6.2026 mit Größe 760 B
Bilddatei
colorbox.hxx
products/Sources/formale Sprachen/C/LibreOffice/include/svx/colorbox.hxx
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #ifndef INCLUDED_SVX_COLORBOX_HXX #define INCLUDED_SVX_COLORBOX_HXX #include
#include
#include
class ColorListBox; class ListBoxColorWrapper { public: ListBoxColorWrapper(ColorListBox* pControl); void operator()(const OUString& rCommand, const NamedColor& rColor); // ColorSelectFunction signature private: ColorListBox* mpControl; }; class SVXCORE_DLLPUBLIC ColorListBox { private: friend class ListBoxColorWrapper; std::unique_ptr
m_xColorWindow; std::unique_ptr
m_xButton; Link
m_aSelectedLink; ListBoxColorWrapper m_aColorWrapper; Color m_aAutoDisplayColor; Color m_aSaveColor; NamedColor m_aSelectedColor; sal_uInt16 m_nSlotId; bool m_bShowNoneButton; std::shared_ptr
m_xPaletteManager; TopLevelParentFunction m_aTopLevelParentFunction; ColorStatus m_aColorStatus; void Selected(const NamedColor& rNamedColor); void createColorWindow(); void LockWidthRequest(int nWidthRequest); int CalcBestWidthRequest(); ColorWindow* getColorWindow() const; DECL_DLLPRIVATE_LINK(ToggleHdl, weld::Toggleable&, void); public: // rTopLevelParentFunction will be used to get parent for any color picker dialog created ColorListBox(std::unique_ptr
pControl, TopLevelParentFunction aTopLevelParentFunction); ~ColorListBox(); void SetSelectHdl(const Link
& rLink) { m_aSelectedLink = rLink; } void SetSlotId(sal_uInt16 nSlotId, bool bShowNoneButton = false); Color const& GetSelectEntryColor() const { return m_aSelectedColor.m_aColor; } const NamedColor& GetSelectedEntry() const { return m_aSelectedColor; } const NamedColor& GetSelectedEntryThemedColor() const { return m_aSelectedColor; } void SelectEntry(const NamedColor& rColor); void SelectEntry(const Color& rColor); void SetNoSelection() { getColorWindow()->SetNoSelection(); } bool IsNoSelection() const { return getColorWindow()->IsNoSelection(); } void SetAutoDisplayColor(const Color& rColor) { m_aAutoDisplayColor = rColor; } void ShowPreview(const NamedColor& rColor); void EnsurePaletteManager(); void SaveValue() { m_aSaveColor = GetSelectEntryColor(); } bool IsValueChangedFromSaved() const { return m_aSaveColor != GetSelectEntryColor(); } void set_sensitive(bool sensitive) { m_xButton->set_sensitive(sensitive); } bool get_sensitive() const { return m_xButton->get_sensitive(); } void show() { m_xButton->show(); } void hide() { m_xButton->hide(); } void set_visible(bool bShow) { m_xButton->set_visible(bShow); } void set_help_id(const OUString& rHelpId) { m_xButton->set_help_id(rHelpId); } void set_accessible_name(const OUString& rName) { m_xButton->set_accessible_name(rName); }; void connect_focus_in(const Link
& rLink) { m_xButton->connect_focus_in(rLink); } void connect_focus_out(const Link
& rLink) { m_xButton->connect_focus_out(rLink); } weld::MenuButton& get_widget() { return *m_xButton; } }; #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
2026-10-10
Neuigkeiten
Aktuelles
Motto des Tages
Open Source Software
Quellcodebibliothek
Eigene Quellcodes
Fremde Quellcodes
Suchen
Jenseits des Üblichen ....
Besucherstatistik
Statistik
#Sources=1126438
#Domains=1897691
Impressum
|
Ethik und Gesetz
|
Haftungsausschluß
|
Kontakt
|
Seitenstruktur
|
©
2026 JDD
|