LibreOffice Module cui (master)  1
Classes | Namespaces | Typedefs | Enumerations | 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/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 <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 <svx/hexcolorcontrol.hxx>
#include <basegfx/color/bcolortools.hxx>
#include <colorpicker.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

 o3tl
 
 cui
 

Typedefs

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

Enumerations

enum  UpdateFlags {
  UpdateFlags::NONE,
  UpdateFlags::Transformation,
  UpdateFlags::Clip,
  UpdateFlags::Alpha,
  UpdateFlags::Position,
  UpdateFlags::Content,
  UpdateFlags::Force
}
 
enum  ColorComponent {
  cui::@14::ColorComponent::Red,
  cui::@14::ColorComponent::Green,
  cui::@14::ColorComponent::Blue,
  cui::@14::ColorComponent::Hue,
  cui::@14::ColorComponent::Saturation,
  cui::@14::ColorComponent::Brightness,
  cui::@14::ColorComponent::Cyan,
  cui::@14::ColorComponent::Yellow,
  cui::@14::ColorComponent::Magenta,
  cui::@14::ColorComponent::Key
}
 
enum  ColorMode
 

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::ToggleButton &, void)
 
OUString cui::ColorPicker_getImplementationName ()
 
Reference< XInterfacecui::ColorPicker_createInstance (Reference< XComponentContext > const &)
 
Sequence< OUString > cui::ColorPicker_getSupportedServiceNames ()
 
static const OUStringLiteral cui::gsColorKey ("Color")
 
static const OUStringLiteral cui::gsModeKey ("Mode")
 

Variables

const ColorMode cui::DefaultMode = HUE
 

Enumeration Type Documentation

enum UpdateFlags
strong
Enumerator
NONE 
Transformation 
Clip 
Alpha 
Position 
Content 
Force 

Definition at line 48 of file colorpicker.cxx.

Variable Documentation

Color m_aColor

Definition at line 152 of file colorpicker.cxx.

ColorFieldControl m_aColorField

Definition at line 734 of file colorpicker.cxx.

Referenced by cui::IMPL_LINK_NOARG().

ColorPreviewControl m_aColorPreview

Definition at line 736 of file colorpicker.cxx.

ColorPreviewControl m_aColorPrevious

Definition at line 737 of file colorpicker.cxx.

ColorSliderControl m_aColorSlider

Definition at line 735 of file colorpicker.cxx.

Referenced by cui::IMPL_LINK_NOARG().

std::unique_ptr<weld::CustomWeld> m_xColorField

Definition at line 739 of file colorpicker.cxx.

std::unique_ptr<weld::CustomWeld> m_xColorPreview

Definition at line 741 of file colorpicker.cxx.

std::unique_ptr<weld::CustomWeld> m_xColorPrevious

Definition at line 742 of file colorpicker.cxx.

std::unique_ptr<weld::CustomWeld> m_xColorSlider

Definition at line 740 of file colorpicker.cxx.

std::unique_ptr<weld::HexColorControl> m_xEDHex

Definition at line 756 of file colorpicker.cxx.

Referenced by cui::IMPL_LINK_NOARG().

std::unique_ptr<weld::Widget> m_xFISliderLeft

Definition at line 744 of file colorpicker.cxx.

std::unique_ptr<weld::Widget> m_xFISliderRight

Definition at line 745 of file colorpicker.cxx.

std::unique_ptr<weld::SpinButton> m_xMFBlue

Definition at line 755 of file colorpicker.cxx.

Referenced by cui::IMPL_LINK().

std::unique_ptr<weld::MetricSpinButton> m_xMFBrightness

Definition at line 760 of file colorpicker.cxx.

Referenced by cui::IMPL_LINK().

std::unique_ptr<weld::MetricSpinButton> m_xMFCyan

Definition at line 762 of file colorpicker.cxx.

Referenced by cui::IMPL_LINK().

std::unique_ptr<weld::SpinButton> m_xMFGreen

Definition at line 754 of file colorpicker.cxx.

Referenced by cui::IMPL_LINK().

std::unique_ptr<weld::MetricSpinButton> m_xMFHue

Definition at line 758 of file colorpicker.cxx.

Referenced by cui::IMPL_LINK().

std::unique_ptr<weld::MetricSpinButton> m_xMFKey

Definition at line 765 of file colorpicker.cxx.

Referenced by cui::IMPL_LINK().

std::unique_ptr<weld::MetricSpinButton> m_xMFMagenta

Definition at line 763 of file colorpicker.cxx.

Referenced by cui::IMPL_LINK().

std::unique_ptr<weld::SpinButton> m_xMFRed

Definition at line 753 of file colorpicker.cxx.

Referenced by cui::IMPL_LINK().

std::unique_ptr<weld::MetricSpinButton> m_xMFSaturation

Definition at line 759 of file colorpicker.cxx.

Referenced by cui::IMPL_LINK().

std::unique_ptr<weld::MetricSpinButton> m_xMFYellow

Definition at line 764 of file colorpicker.cxx.

Referenced by cui::IMPL_LINK().

std::unique_ptr<weld::RadioButton> m_xRBBlue

Definition at line 748 of file colorpicker.cxx.

Referenced by cui::IMPL_LINK_NOARG().

std::unique_ptr<weld::RadioButton> m_xRBBrightness

Definition at line 751 of file colorpicker.cxx.

Referenced by cui::IMPL_LINK_NOARG().

std::unique_ptr<weld::RadioButton> m_xRBGreen

Definition at line 747 of file colorpicker.cxx.

Referenced by cui::IMPL_LINK_NOARG().

std::unique_ptr<weld::RadioButton> m_xRBHue

Definition at line 749 of file colorpicker.cxx.

std::unique_ptr<weld::RadioButton> m_xRBRed

Definition at line 746 of file colorpicker.cxx.

Referenced by cui::IMPL_LINK_NOARG().

std::unique_ptr<weld::RadioButton> m_xRBSaturation

Definition at line 750 of file colorpicker.cxx.

Referenced by cui::IMPL_LINK_NOARG().

Color maColor

Definition at line 238 of file colorpicker.cxx.

std::vector<sal_uInt16> maGrad_Horiz

Definition at line 246 of file colorpicker.cxx.

Link<ColorSliderControl&,void> maModifyHdl

Definition at line 244 of file colorpicker.cxx.

std::vector<sal_uInt16> maPercent_Horiz

Definition at line 247 of file colorpicker.cxx.

std::vector<sal_uInt16> maPercent_Vert

Definition at line 249 of file colorpicker.cxx.

Point maPosition

Definition at line 242 of file colorpicker.cxx.

std::vector<sal_uInt8> maRGB_Horiz

Definition at line 245 of file colorpicker.cxx.

std::vector<sal_uInt8> maRGB_Vert

Definition at line 248 of file colorpicker.cxx.

bool mbMouseCaptured

Definition at line 241 of file colorpicker.cxx.

double mdBlue

Definition at line 786 of file colorpicker.cxx.

Referenced by cui::IMPL_LINK_NOARG().

double mdBri

Definition at line 787 of file colorpicker.cxx.

Referenced by cui::IMPL_LINK_NOARG().

double mdCyan

Definition at line 788 of file colorpicker.cxx.

Referenced by cui::IMPL_LINK_NOARG().

double mdGreen

Definition at line 786 of file colorpicker.cxx.

Referenced by cui::IMPL_LINK_NOARG().

double mdHue

Definition at line 787 of file colorpicker.cxx.

Referenced by cui::IMPL_LINK_NOARG().

double mdKey

Definition at line 788 of file colorpicker.cxx.

Referenced by cui::IMPL_LINK_NOARG().

double mdMagenta

Definition at line 788 of file colorpicker.cxx.

Referenced by cui::IMPL_LINK_NOARG().

double mdRed

Definition at line 786 of file colorpicker.cxx.

Referenced by cui::IMPL_LINK_NOARG().

double mdSat

Definition at line 787 of file colorpicker.cxx.

Referenced by cui::IMPL_LINK_NOARG().

double mdValue

Definition at line 550 of file colorpicker.cxx.

double mdX

Definition at line 239 of file colorpicker.cxx.

double mdY

Definition at line 240 of file colorpicker.cxx.

double mdYellow

Definition at line 788 of file colorpicker.cxx.

Referenced by cui::IMPL_LINK_NOARG().

ColorMode meMode

Definition at line 237 of file colorpicker.cxx.

Referenced by cui::IMPL_LINK_NOARG().

Color mnColor

Definition at line 1236 of file colorpicker.cxx.

sal_Int16 mnLevel

Definition at line 549 of file colorpicker.cxx.

sal_Int16 mnMode

Definition at line 1237 of file colorpicker.cxx.

VclPtr<VirtualDevice> mxBitmap

Definition at line 243 of file colorpicker.cxx.

Reference<css::awt::XWindow> mxParent

Definition at line 1238 of file colorpicker.cxx.