LibreOffice Module cui (master) 1
Classes | Namespaces | Typedefs | Functions | Variables
colorpicker.cxx File Reference
#include <com/sun/star/uno/XComponentContext.hpp>
#include <com/sun/star/ui/dialogs/XExecutableDialog.hpp>
#include <com/sun/star/ui/dialogs/XAsynchronousExecutableDialog.hpp>
#include <com/sun/star/beans/XPropertyAccess.hpp>
#include <com/sun/star/lang/XInitialization.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/awt/XWindow.hpp>
#include <comphelper/propertyvalue.hxx>
#include <cppuhelper/compbase.hxx>
#include <cppuhelper/supportsservice.hxx>
#include <cppuhelper/basemutex.hxx>
#include <vcl/customweld.hxx>
#include <vcl/event.hxx>
#include <vcl/svapp.hxx>
#include <vcl/virdev.hxx>
#include <vcl/weld.hxx>
#include <sfx2/basedlgs.hxx>
#include <svx/hexcolorcontrol.hxx>
#include <basegfx/color/bcolortools.hxx>
#include <cmath>
#include <o3tl/typed_flags_set.hxx>
Include dependency graph for colorpicker.cxx:

Go to the source code of this file.

Classes

struct  o3tl::typed_flags< UpdateFlags >
 

Namespaces

namespace  o3tl
 
namespace  cui
 

Typedefs

typedef ::cppu::WeakComponentImplHelper< XServiceInfo, XExecutableDialog, XAsynchronousExecutableDialog, XInitialization, XPropertyAccess > cui::ColorPickerBase
 

Functions

static void cui::RGBtoHSV (double dR, double dG, double dB, double &dH, double &dS, double &dV)
 
static void cui::HSVtoRGB (double dH, double dS, double dV, double &dR, double &dG, double &dB)
 
static void cui::CMYKtoRGB (double fCyan, double fMagenta, double fYellow, double fKey, double &dR, double &dG, double &dB)
 
static void cui::RGBtoCMYK (double dR, double dG, double dB, double &fCyan, double &fMagenta, double &fYellow, double &fKey)
 
static int cui::toInt (double dValue, double dRange)
 
 cui::IMPL_LINK_NOARG (ColorPickerDialog, ColorFieldControlModifydl, ColorFieldControl &, void)
 
 cui::IMPL_LINK_NOARG (ColorPickerDialog, ColorSliderControlModifyHdl, ColorSliderControl &, void)
 
 cui::IMPL_LINK (ColorPickerDialog, ColorModifyMetricHdl, weld::MetricSpinButton &, rEdit, void)
 
 cui::IMPL_LINK_NOARG (ColorPickerDialog, ColorModifyEditHdl, weld::Entry &, void)
 
 cui::IMPL_LINK (ColorPickerDialog, ColorModifySpinHdl, weld::SpinButton &, rEdit, void)
 
 cui::IMPL_LINK_NOARG (ColorPickerDialog, ModeModifyHdl, weld::Toggleable &, void)
 
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * cui::com_sun_star_cui_ColorPicker_get_implementation (css::uno::XComponentContext *, css::uno::Sequence< css::uno::Any > const &)
 
constexpr OUStringLiteral cui::gsColorKey (u"Color")
 
constexpr OUStringLiteral cui::gsModeKey (u"Mode")
 

Variables

const ColorMode cui::DefaultMode = HUE
 

Variable Documentation

◆ m_aColor

Color m_aColor
private

Definition at line 155 of file colorpicker.cxx.

◆ m_aColorField

ColorFieldControl m_aColorField
private

Definition at line 737 of file colorpicker.cxx.

Referenced by cui::IMPL_LINK_NOARG().

◆ m_aColorPreview

ColorPreviewControl m_aColorPreview
private

Definition at line 739 of file colorpicker.cxx.

◆ m_aColorPrevious

ColorPreviewControl m_aColorPrevious
private

Definition at line 740 of file colorpicker.cxx.

◆ m_aColorSlider

ColorSliderControl m_aColorSlider
private

Definition at line 738 of file colorpicker.cxx.

Referenced by cui::IMPL_LINK_NOARG().

◆ m_xColorField

std::unique_ptr<weld::CustomWeld> m_xColorField
private

Definition at line 742 of file colorpicker.cxx.

◆ m_xColorPreview

std::unique_ptr<weld::CustomWeld> m_xColorPreview
private

Definition at line 744 of file colorpicker.cxx.

◆ m_xColorPrevious

std::unique_ptr<weld::CustomWeld> m_xColorPrevious
private

Definition at line 745 of file colorpicker.cxx.

◆ m_xColorSlider

std::unique_ptr<weld::CustomWeld> m_xColorSlider
private

Definition at line 743 of file colorpicker.cxx.

◆ m_xEDHex

std::unique_ptr<weld::HexColorControl> m_xEDHex
private

Definition at line 759 of file colorpicker.cxx.

Referenced by cui::IMPL_LINK_NOARG().

◆ m_xFISliderLeft

std::unique_ptr<weld::Widget> m_xFISliderLeft
private

Definition at line 747 of file colorpicker.cxx.

◆ m_xFISliderRight

std::unique_ptr<weld::Widget> m_xFISliderRight
private

Definition at line 748 of file colorpicker.cxx.

◆ m_xMFBlue

std::unique_ptr<weld::SpinButton> m_xMFBlue
private

Definition at line 758 of file colorpicker.cxx.

Referenced by cui::IMPL_LINK().

◆ m_xMFBrightness

std::unique_ptr<weld::MetricSpinButton> m_xMFBrightness
private

Definition at line 763 of file colorpicker.cxx.

Referenced by cui::IMPL_LINK().

◆ m_xMFCyan

std::unique_ptr<weld::MetricSpinButton> m_xMFCyan
private

Definition at line 765 of file colorpicker.cxx.

Referenced by cui::IMPL_LINK().

◆ m_xMFGreen

std::unique_ptr<weld::SpinButton> m_xMFGreen
private

Definition at line 757 of file colorpicker.cxx.

Referenced by cui::IMPL_LINK().

◆ m_xMFHue

std::unique_ptr<weld::MetricSpinButton> m_xMFHue
private

Definition at line 761 of file colorpicker.cxx.

Referenced by cui::IMPL_LINK().

◆ m_xMFKey

std::unique_ptr<weld::MetricSpinButton> m_xMFKey
private

Definition at line 768 of file colorpicker.cxx.

Referenced by cui::IMPL_LINK().

◆ m_xMFMagenta

std::unique_ptr<weld::MetricSpinButton> m_xMFMagenta
private

Definition at line 766 of file colorpicker.cxx.

Referenced by cui::IMPL_LINK().

◆ m_xMFRed

std::unique_ptr<weld::SpinButton> m_xMFRed
private

Definition at line 756 of file colorpicker.cxx.

Referenced by cui::IMPL_LINK().

◆ m_xMFSaturation

std::unique_ptr<weld::MetricSpinButton> m_xMFSaturation
private

Definition at line 762 of file colorpicker.cxx.

Referenced by cui::IMPL_LINK().

◆ m_xMFYellow

std::unique_ptr<weld::MetricSpinButton> m_xMFYellow
private

Definition at line 767 of file colorpicker.cxx.

Referenced by cui::IMPL_LINK().

◆ m_xRBBlue

std::unique_ptr<weld::RadioButton> m_xRBBlue
private

Definition at line 751 of file colorpicker.cxx.

Referenced by cui::IMPL_LINK_NOARG().

◆ m_xRBBrightness

std::unique_ptr<weld::RadioButton> m_xRBBrightness
private

Definition at line 754 of file colorpicker.cxx.

Referenced by cui::IMPL_LINK_NOARG().

◆ m_xRBGreen

std::unique_ptr<weld::RadioButton> m_xRBGreen
private

Definition at line 750 of file colorpicker.cxx.

Referenced by cui::IMPL_LINK_NOARG().

◆ m_xRBHue

std::unique_ptr<weld::RadioButton> m_xRBHue
private

Definition at line 752 of file colorpicker.cxx.

◆ m_xRBRed

std::unique_ptr<weld::RadioButton> m_xRBRed
private

Definition at line 749 of file colorpicker.cxx.

Referenced by cui::IMPL_LINK_NOARG().

◆ m_xRBSaturation

std::unique_ptr<weld::RadioButton> m_xRBSaturation
private

Definition at line 753 of file colorpicker.cxx.

Referenced by cui::IMPL_LINK_NOARG().

◆ maColor

Color maColor
private

Definition at line 241 of file colorpicker.cxx.

◆ maGrad_Horiz

std::vector<sal_uInt16> maGrad_Horiz
private

Definition at line 249 of file colorpicker.cxx.

◆ maModifyHdl

Link<ColorSliderControl&,void> maModifyHdl
private

Definition at line 247 of file colorpicker.cxx.

◆ maPercent_Horiz

std::vector<sal_uInt16> maPercent_Horiz
private

Definition at line 250 of file colorpicker.cxx.

◆ maPercent_Vert

std::vector<sal_uInt16> maPercent_Vert
private

Definition at line 252 of file colorpicker.cxx.

◆ maPosition

Point maPosition
private

Definition at line 245 of file colorpicker.cxx.

◆ maRGB_Horiz

std::vector<sal_uInt8> maRGB_Horiz
private

Definition at line 248 of file colorpicker.cxx.

◆ maRGB_Vert

std::vector<sal_uInt8> maRGB_Vert
private

Definition at line 251 of file colorpicker.cxx.

◆ mbMouseCaptured

bool mbMouseCaptured
private

Definition at line 244 of file colorpicker.cxx.

◆ mdBlue

double mdBlue
private

Definition at line 789 of file colorpicker.cxx.

Referenced by cui::IMPL_LINK_NOARG().

◆ mdBri

double mdBri
private

Definition at line 790 of file colorpicker.cxx.

Referenced by cui::IMPL_LINK_NOARG().

◆ mdCyan

double mdCyan
private

Definition at line 791 of file colorpicker.cxx.

Referenced by cui::IMPL_LINK_NOARG().

◆ mdGreen

double mdGreen
private

Definition at line 789 of file colorpicker.cxx.

Referenced by cui::IMPL_LINK_NOARG().

◆ mdHue

double mdHue
private

Definition at line 790 of file colorpicker.cxx.

Referenced by cui::IMPL_LINK_NOARG().

◆ mdKey

double mdKey
private

Definition at line 791 of file colorpicker.cxx.

Referenced by cui::IMPL_LINK_NOARG().

◆ mdMagenta

double mdMagenta
private

Definition at line 791 of file colorpicker.cxx.

Referenced by cui::IMPL_LINK_NOARG().

◆ mdRed

double mdRed
private

Definition at line 789 of file colorpicker.cxx.

Referenced by cui::IMPL_LINK_NOARG().

◆ mdSat

double mdSat
private

Definition at line 790 of file colorpicker.cxx.

Referenced by cui::IMPL_LINK_NOARG().

◆ mdValue

double mdValue
private

Definition at line 553 of file colorpicker.cxx.

◆ mdX

double mdX
private

Definition at line 242 of file colorpicker.cxx.

◆ mdY

double mdY
private

Definition at line 243 of file colorpicker.cxx.

◆ mdYellow

double mdYellow
private

Definition at line 791 of file colorpicker.cxx.

Referenced by cui::IMPL_LINK_NOARG().

◆ meMode

ColorMode meMode
private

Definition at line 240 of file colorpicker.cxx.

Referenced by cui::IMPL_LINK_NOARG().

◆ mnColor

Color mnColor
private

Definition at line 1243 of file colorpicker.cxx.

◆ mnLevel

sal_Int16 mnLevel
private

Definition at line 552 of file colorpicker.cxx.

◆ mnMode

sal_Int16 mnMode
private

Definition at line 1244 of file colorpicker.cxx.

◆ mxBitmap

VclPtr<VirtualDevice> mxBitmap
private

Definition at line 246 of file colorpicker.cxx.

◆ mxParent

Reference<css::awt::XWindow> mxParent
private

Definition at line 1245 of file colorpicker.cxx.