LibreOffice Module cui (master)  1
Classes | Typedefs | Enumerations | Functions | Variables
cui Namespace Reference

Classes

class  ColorFieldControl
 
class  ColorPicker
 
class  ColorPickerDialog
 
class  ColorPreviewControl
 
class  ColorSliderControl
 
struct  FontFeatureItem
 
class  FontFeaturesDialog
 

Typedefs

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

Enumerations

enum  ColorComponent {
  ColorComponent::Red,
  ColorComponent::Green,
  ColorComponent::Blue,
  ColorComponent::Hue,
  ColorComponent::Saturation,
  ColorComponent::Brightness,
  ColorComponent::Cyan,
  ColorComponent::Yellow,
  ColorComponent::Magenta,
  ColorComponent::Key
}
 
enum  ColorMode {
  HUE,
  SATURATION,
  BRIGHTNESS,
  RED,
  GREEN,
  BLUE
}
 

Functions

static void RGBtoHSV (double dR, double dG, double dB, double &dH, double &dS, double &dV)
 
static void HSVtoRGB (double dH, double dS, double dV, double &dR, double &dG, double &dB)
 
static void CMYKtoRGB (double fCyan, double fMagenta, double fYellow, double fKey, double &dR, double &dG, double &dB)
 
static void RGBtoCMYK (double dR, double dG, double dB, double &fCyan, double &fMagenta, double &fYellow, double &fKey)
 
static int toInt (double dValue, double dRange)
 
 IMPL_LINK_NOARG (ColorPickerDialog, ColorFieldControlModifydl, ColorFieldControl &, void)
 
 IMPL_LINK_NOARG (ColorPickerDialog, ColorSliderControlModifyHdl, ColorSliderControl &, void)
 
 IMPL_LINK (ColorPickerDialog, ColorModifyMetricHdl, weld::MetricSpinButton &, rEdit, void)
 
 IMPL_LINK_NOARG (ColorPickerDialog, ColorModifyEditHdl, weld::Entry &, void)
 
 IMPL_LINK (ColorPickerDialog, ColorModifySpinHdl, weld::SpinButton &, rEdit, void)
 
 IMPL_LINK_NOARG (ColorPickerDialog, ModeModifyHdl, weld::ToggleButton &, void)
 
OUString ColorPicker_getImplementationName ()
 
Reference< XInterfaceColorPicker_createInstance (Reference< XComponentContext > const &)
 
Sequence< OUString > ColorPicker_getSupportedServiceNames ()
 
static const OUStringLiteral gsColorKey ("Color")
 
static const OUStringLiteral gsModeKey ("Mode")
 
static sal_Int32 makeEnumComboBox (weld::ComboBox &rNameBox, vcl::font::FeatureDefinition const &rFeatureDefinition, uint32_t nDefault)
 
 IMPL_LINK_NOARG (FontFeaturesDialog, CheckBoxToggledHdl, weld::ToggleButton &, void)
 
 IMPL_LINK_NOARG (FontFeaturesDialog, ComboBoxSelectedHdl, weld::ComboBox &, void)
 
static AbstractDialogFactory_ImplGetFactory ()
 
css::uno::Reference< css::uno::XInterface > ColorPicker_createInstance (css::uno::Reference< css::uno::XComponentContext > const &)
 

Variables

const ColorMode DefaultMode = HUE
 

Typedef Documentation

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

Definition at line 1189 of file colorpicker.cxx.

Enumeration Type Documentation

enum cui::ColorComponent
strong
Enumerator
Red 
Green 
Blue 
Hue 
Saturation 
Brightness 
Cyan 
Yellow 
Magenta 
Key 

Definition at line 74 of file colorpicker.cxx.

Enumerator
HUE 
SATURATION 
BRIGHTNESS 
RED 
GREEN 
BLUE 

Definition at line 183 of file colorpicker.cxx.

Function Documentation

static void cui::CMYKtoRGB ( double  fCyan,
double  fMagenta,
double  fYellow,
double  fKey,
double &  dR,
double &  dG,
double &  dB 
)
static

Definition at line 109 of file colorpicker.cxx.

Referenced by cui::ColorPickerDialog::setColorComponent().

css::uno::Reference<css::uno::XInterface> cui::ColorPicker_createInstance ( css::uno::Reference< css::uno::XComponentContext > const &  )
Reference< XInterface > cui::ColorPicker_createInstance ( Reference< XComponentContext > const &  )

Definition at line 1224 of file colorpicker.cxx.

OUString cui::ColorPicker_getImplementationName ( )

Definition at line 1219 of file colorpicker.cxx.

Referenced by cui::ColorPicker::getImplementationName().

css::uno::Sequence< OUString > cui::ColorPicker_getSupportedServiceNames ( )
Exceptions
css::uno::RuntimeException

Definition at line 1229 of file colorpicker.cxx.

Referenced by cui::ColorPicker::getSupportedServiceNames().

static AbstractDialogFactory_Impl* cui::GetFactory ( )
static

Definition at line 60 of file cuiexp.cxx.

Referenced by CreateDialogFactory().

static const OUStringLiteral cui::gsColorKey ( "Color"  )
static
static const OUStringLiteral cui::gsModeKey ( "Mode"  )
static
static void cui::HSVtoRGB ( double  dH,
double  dS,
double  dV,
double &  dR,
double &  dG,
double &  dB 
)
static

Definition at line 99 of file colorpicker.cxx.

References basegfx::utils::hsv2rgb(), and result.

Referenced by cui::ColorPickerDialog::setColorComponent().

cui::IMPL_LINK ( ColorPickerDialog  ,
ColorModifyMetricHdl  ,
weld::MetricSpinButton ,
rEdit  ,
void   
)

Definition at line 1014 of file colorpicker.cxx.

References Brightness, Cyan, Hue, Key, Magenta, rEdit, Saturation, and Yellow.

cui::IMPL_LINK ( ColorPickerDialog  ,
ColorModifySpinHdl  ,
weld::SpinButton ,
rEdit  ,
void   
)

Definition at line 1079 of file colorpicker.cxx.

References Blue, Green, Red, and rEdit.

cui::IMPL_LINK_NOARG ( FontFeaturesDialog  ,
CheckBoxToggledHdl  ,
weld::ToggleButton ,
void   
)

Definition at line 160 of file FontFeaturesDialog.cxx.

cui::IMPL_LINK_NOARG ( FontFeaturesDialog  ,
ComboBoxSelectedHdl  ,
weld::ComboBox ,
void   
)

Definition at line 165 of file FontFeaturesDialog.cxx.

cui::IMPL_LINK_NOARG ( ColorPickerDialog  ,
ColorFieldControlModifydl  ,
ColorFieldControl ,
void   
)

Definition at line 950 of file colorpicker.cxx.

References BLUE, Brightness, BRIGHTNESS, Green, GREEN, HUE, Red, RED, Saturation, SATURATION, x, and y.

cui::IMPL_LINK_NOARG ( ColorPickerDialog  ,
ColorSliderControlModifyHdl  ,
ColorSliderControl ,
void   
)

Definition at line 986 of file colorpicker.cxx.

References Blue, BLUE, Brightness, BRIGHTNESS, Green, GREEN, Hue, HUE, Red, RED, Saturation, and SATURATION.

cui::IMPL_LINK_NOARG ( ColorPickerDialog  ,
ColorModifyEditHdl  ,
weld::Entry ,
void   
)
cui::IMPL_LINK_NOARG ( ColorPickerDialog  ,
ModeModifyHdl  ,
weld::ToggleButton ,
void   
)

Definition at line 1104 of file colorpicker.cxx.

References BLUE, BRIGHTNESS, GREEN, HUE, RED, and SATURATION.

static sal_Int32 cui::makeEnumComboBox ( weld::ComboBox rNameBox,
vcl::font::FeatureDefinition const &  rFeatureDefinition,
uint32_t  nDefault 
)
static
static void cui::RGBtoCMYK ( double  dR,
double  dG,
double  dB,
double &  fCyan,
double &  fMagenta,
double &  fYellow,
double &  fKey 
)
static
static void cui::RGBtoHSV ( double  dR,
double  dG,
double  dB,
double &  dH,
double &  dS,
double &  dV 
)
static
static int cui::toInt ( double  dValue,
double  dRange 
)
static

Variable Documentation

const ColorMode cui::DefaultMode = HUE

Definition at line 184 of file colorpicker.cxx.