LibreOffice Module cui (master)  1
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
SvxCharEffectsPage Class Reference

#include <chardlg.hxx>

Inheritance diagram for SvxCharEffectsPage:
[legend]
Collaboration diagram for SvxCharEffectsPage:
[legend]

Public Member Functions

 SvxCharEffectsPage (weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rSet)
 
virtual ~SvxCharEffectsPage () override
 
virtual DeactivateRC DeactivatePage (SfxItemSet *pSet) override
 
virtual void Reset (const SfxItemSet *rSet) override
 
virtual bool FillItemSet (SfxItemSet *rSet) override
 
virtual void ChangesApplied () override
 
void DisableControls (sal_uInt16 nDisable)
 
virtual void PageCreated (const SfxAllItemSet &aSet) override
 
- Public Member Functions inherited from SvxCharBasePage
virtual ~SvxCharBasePage () override
 
virtual void ActivatePage (const SfxItemSet &rSet) override
 
- Public Member Functions inherited from SfxTabPage
void SetDialogController (SfxOkDialogController *pDialog)
 
virtual ~SfxTabPage () override
 
void set_visible (bool bVisible)
 
const SfxItemSetGetItemSet () const
 
bool HasExchangeSupport () const
 
void SetExchangeSupport ()
 
void SetUserData (const OUString &rString)
 
const OUString & GetUserData () const
 
virtual void FillUserData ()
 
virtual bool IsReadOnly () const
 
void SetFrame (const css::uno::Reference< css::frame::XFrame > &xFrame)
 
css::uno::Reference< css::frame::XFrame > GetFrame () const
 
const SfxItemSetGetDialogExampleSet () const
 
OString GetHelpId () const
 
OString GetConfigId () const
 
bool IsVisible () const
 
weld::WindowGetFrameWeld () const
 

Static Public Member Functions

static std::unique_ptr< SfxTabPageCreate (weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rSet)
 
static const sal_uInt16 * GetRanges ()
 
- Static Public Member Functions inherited from SfxTabPage
static const SfxPoolItemGetItem (const SfxItemSet &rSet, sal_uInt16 nSlot, bool bDeep=true)
 
static const T * GetItem (const SfxItemSet &rSet, TypedWhichId< T > nSlot, bool bDeep=true)
 

Private Member Functions

void Initialize ()
 
void UpdatePreview_Impl ()
 
void SetCaseMap_Impl (SvxCaseMap eCaseMap)
 
void ResetColor_Impl (const SfxItemSet &rSet)
 
bool FillItemSetColor_Impl (SfxItemSet &rSet)
 
Color GetPreviewFontColor (const Color &rColor) const
 
void EnableNoneFontColor ()
 
void SelectHdl_Impl (const weld::ComboBox *)
 
 DECL_LINK (SelectListBoxHdl_Impl, weld::ComboBox &, void)
 
 DECL_LINK (CbClickHdl_Impl, weld::ToggleButton &, void)
 
 DECL_LINK (TristClickHdl_Impl, weld::ToggleButton &, void)
 
 DECL_LINK (UpdatePreview_Impl, weld::ComboBox &, void)
 
 DECL_LINK (ColorBoxSelectHdl_Impl, ColorListBox &, void)
 

Private Attributes

bool m_bOrigFontColor
 
bool m_bNewFontColor
 
bool m_bEnableNoneFontColor
 
Color m_aOrigFontColor
 
sal_uInt16 m_nHtmlMode
 
bool m_bUnderlineColorDisabled
 
std::unique_ptr< weld::Labelm_xFontColorFT
 
std::unique_ptr< ColorListBoxm_xFontColorLB
 
std::unique_ptr< weld::Labelm_xEffectsFT
 
std::unique_ptr< weld::ComboBoxm_xEffectsLB
 
std::unique_ptr< weld::Labelm_xReliefFT
 
std::unique_ptr< weld::ComboBoxm_xReliefLB
 
std::unique_ptr< weld::CheckButtonm_xOutlineBtn
 
std::unique_ptr< weld::CheckButtonm_xShadowBtn
 
std::unique_ptr< weld::CheckButtonm_xBlinkingBtn
 
std::unique_ptr< weld::CheckButtonm_xHiddenBtn
 
std::unique_ptr< weld::ComboBoxm_xOverlineLB
 
std::unique_ptr< weld::Labelm_xOverlineColorFT
 
std::unique_ptr< ColorListBoxm_xOverlineColorLB
 
std::unique_ptr< weld::ComboBoxm_xStrikeoutLB
 
std::unique_ptr< weld::ComboBoxm_xUnderlineLB
 
std::unique_ptr< weld::Labelm_xUnderlineColorFT
 
std::unique_ptr< ColorListBoxm_xUnderlineColorLB
 
std::unique_ptr< weld::CheckButtonm_xIndividualWordsBtn
 
std::unique_ptr< weld::Labelm_xEmphasisFT
 
std::unique_ptr< weld::ComboBoxm_xEmphasisLB
 
std::unique_ptr< weld::Labelm_xPositionFT
 
std::unique_ptr< weld::ComboBoxm_xPositionLB
 
std::unique_ptr< weld::Labelm_xA11yWarningFT
 

Static Private Attributes

static const sal_uInt16 pEffectsRanges []
 

Additional Inherited Members

- Protected Member Functions inherited from SvxCharBasePage
 SvxCharBasePage (weld::Container *pPage, weld::DialogController *pController, const OUString &rUIXMLDescription, const OString &rID, const SfxItemSet &rAttrSet)
 
void SetPrevFontWidthScale (const SfxItemSet &rSet)
 
void SetPrevFontEscapement (sal_uInt8 nProp, sal_uInt8 nEscProp, short nEsc)
 
SvxFontGetPreviewFont ()
 
SvxFontGetPreviewCJKFont ()
 
SvxFontGetPreviewCTLFont ()
 
- Protected Member Functions inherited from SfxTabPage
 SfxTabPage (weld::Container *pPage, weld::DialogController *pController, const OUString &rUIXMLDescription, const OString &rID, const SfxItemSet *rAttrSet)
 
sal_uInt16 GetWhich (sal_uInt16 nSlot, bool bDeep=true) const
 
const SfxPoolItemGetOldItem (const SfxItemSet &rSet, sal_uInt16 nSlot, bool bDeep=true)
 
const T * GetOldItem (const SfxItemSet &rSet, TypedWhichId< T > nSlot, bool bDeep=true)
 
SfxOkDialogControllerGetDialogController () const
 
- Protected Attributes inherited from SvxCharBasePage
SvxFontPrevWindow m_aPreviewWin
 
std::unique_ptr< weld::CustomWeldm_xPreviewWin
 
bool m_bPreviewBackgroundToCharacter
 

Detailed Description

Definition at line 161 of file chardlg.hxx.

Constructor & Destructor Documentation

SvxCharEffectsPage::SvxCharEffectsPage ( weld::Container pPage,
weld::DialogController pController,
const SfxItemSet rSet 
)
SvxCharEffectsPage::~SvxCharEffectsPage ( )
overridevirtual

Definition at line 1369 of file chardlg.cxx.

References m_xFontColorLB, m_xOverlineColorLB, and m_xUnderlineColorLB.

Member Function Documentation

void SvxCharEffectsPage::ChangesApplied ( )
overridevirtual
std::unique_ptr< SfxTabPage > SvxCharEffectsPage::Create ( weld::Container pPage,
weld::DialogController pController,
const SfxItemSet rSet 
)
static
DeactivateRC SvxCharEffectsPage::DeactivatePage ( SfxItemSet pSet)
overridevirtual

Reimplemented from SfxTabPage.

Definition at line 1665 of file chardlg.cxx.

References FillItemSet().

SvxCharEffectsPage::DECL_LINK ( SelectListBoxHdl_Impl  ,
weld::ComboBox ,
void   
)
private
SvxCharEffectsPage::DECL_LINK ( CbClickHdl_Impl  ,
weld::ToggleButton ,
void   
)
private
SvxCharEffectsPage::DECL_LINK ( TristClickHdl_Impl  ,
weld::ToggleButton ,
void   
)
private
SvxCharEffectsPage::DECL_LINK ( UpdatePreview_Impl  ,
weld::ComboBox ,
void   
)
private
SvxCharEffectsPage::DECL_LINK ( ColorBoxSelectHdl_Impl  ,
ColorListBox ,
void   
)
private
void SvxCharEffectsPage::DisableControls ( sal_uInt16  nDisable)
void SvxCharEffectsPage::EnableNoneFontColor ( )
private

Definition at line 1354 of file chardlg.cxx.

References m_bEnableNoneFontColor, and m_xFontColorLB.

Referenced by ResetColor_Impl().

bool SvxCharEffectsPage::FillItemSet ( SfxItemSet rSet)
overridevirtual

if there are different underline styles in the selection the item-state in the 'rOldSet' will be invalid. In this case changing the underline style will be allowed if a style is selected in the listbox.

if there are different underline styles in the selection the item-state in the 'rOldSet' will be invalid. In this case changing the underline style will be allowed if a style is selected in the listbox.

if there are different strikeout styles in the selection the item-state in the 'rOldSet' will be invalid. In this case changing the strikeout style will be allowed if a style is selected in the listbox.

if there are different effect styles in the selection the item-state in the 'rOldSet' will be invalid. In this case changing the effect style will be allowed if a style is selected in the listbox.

Reimplemented from SfxTabPage.

Definition at line 2069 of file chardlg.cxx.

References CHRDLG_POSITION_UNDER, FillItemSetColor_Impl(), SvxTextLineItem::GetColor(), SfxTabPage::GetDialogExampleSet(), SvxEmphasisMarkItem::GetEmphasisMark(), SfxTabPage::GetItemSet(), SfxItemSet::GetItemState(), SfxTabPage::GetOldItem(), GetValue, SfxTabPage::GetWhich(), SfxItemSet::InvalidateItem(), LINESTYLE_NONE, m_xBlinkingBtn, m_xEffectsLB, m_xEmphasisLB, m_xHiddenBtn, m_xIndividualWordsBtn, m_xOutlineBtn, m_xOverlineColorLB, m_xOverlineLB, m_xPositionLB, m_xReliefLB, m_xShadowBtn, m_xStrikeoutLB, m_xUnderlineColorLB, m_xUnderlineLB, nPos, SfxItemSet::Put(), SvxTextLineItem::SetColor(), StateToAttr(), and TRISTATE_INDET.

Referenced by DeactivatePage().

bool SvxCharEffectsPage::FillItemSetColor_Impl ( SfxItemSet rSet)
private
Color SvxCharEffectsPage::GetPreviewFontColor ( const Color rColor) const
private

Definition at line 1360 of file chardlg.cxx.

References COL_AUTO(), COL_BLACK(), COL_NONE_COLOR, and m_bEnableNoneFontColor.

Referenced by ResetColor_Impl(), and UpdatePreview_Impl().

static const sal_uInt16* SvxCharEffectsPage::GetRanges ( )
inlinestatic

Definition at line 219 of file chardlg.hxx.

References pEffectsRanges.

Referenced by AbstractDialogFactory_Impl::GetTabPageRangesFunc().

void SvxCharEffectsPage::Initialize ( )
private
void SvxCharEffectsPage::PageCreated ( const SfxAllItemSet aSet)
overridevirtual
void SvxCharEffectsPage::Reset ( const SfxItemSet rSet)
overridevirtual
void SvxCharEffectsPage::ResetColor_Impl ( const SfxItemSet rSet)
private
void SvxCharEffectsPage::SelectHdl_Impl ( const weld::ComboBox pBox)
private
void SvxCharEffectsPage::SetCaseMap_Impl ( SvxCaseMap  eCaseMap)
private

Definition at line 1506 of file chardlg.cxx.

References m_xEffectsLB, and UpdatePreview_Impl().

Referenced by Reset().

void SvxCharEffectsPage::UpdatePreview_Impl ( )
private

Member Data Documentation

Color SvxCharEffectsPage::m_aOrigFontColor
private

Definition at line 168 of file chardlg.hxx.

Referenced by FillItemSetColor_Impl(), and ResetColor_Impl().

bool SvxCharEffectsPage::m_bEnableNoneFontColor
private

Definition at line 167 of file chardlg.hxx.

Referenced by EnableNoneFontColor(), FillItemSetColor_Impl(), and GetPreviewFontColor().

bool SvxCharEffectsPage::m_bNewFontColor
private

Definition at line 166 of file chardlg.hxx.

Referenced by FillItemSetColor_Impl(), and ResetColor_Impl().

bool SvxCharEffectsPage::m_bOrigFontColor
private

Definition at line 165 of file chardlg.hxx.

Referenced by FillItemSetColor_Impl(), and ResetColor_Impl().

bool SvxCharEffectsPage::m_bUnderlineColorDisabled
private

Definition at line 170 of file chardlg.hxx.

Referenced by DisableControls(), and SelectHdl_Impl().

sal_uInt16 SvxCharEffectsPage::m_nHtmlMode
private

Definition at line 169 of file chardlg.hxx.

Referenced by Initialize().

std::unique_ptr<weld::Label> SvxCharEffectsPage::m_xA11yWarningFT
private

Definition at line 194 of file chardlg.hxx.

Referenced by Initialize().

std::unique_ptr<weld::CheckButton> SvxCharEffectsPage::m_xBlinkingBtn
private

Definition at line 180 of file chardlg.hxx.

Referenced by ChangesApplied(), DisableControls(), FillItemSet(), PageCreated(), and Reset().

std::unique_ptr<weld::Label> SvxCharEffectsPage::m_xEffectsFT
private

Definition at line 174 of file chardlg.hxx.

Referenced by DisableControls(), and Reset().

std::unique_ptr<weld::ComboBox> SvxCharEffectsPage::m_xEffectsLB
private
std::unique_ptr<weld::Label> SvxCharEffectsPage::m_xEmphasisFT
private

Definition at line 190 of file chardlg.hxx.

Referenced by Initialize(), and Reset().

std::unique_ptr<weld::ComboBox> SvxCharEffectsPage::m_xEmphasisLB
private
std::unique_ptr<weld::Label> SvxCharEffectsPage::m_xFontColorFT
private

Definition at line 172 of file chardlg.hxx.

Referenced by ResetColor_Impl().

std::unique_ptr<ColorListBox> SvxCharEffectsPage::m_xFontColorLB
private
std::unique_ptr<weld::CheckButton> SvxCharEffectsPage::m_xHiddenBtn
private

Definition at line 181 of file chardlg.hxx.

Referenced by ChangesApplied(), FillItemSet(), and Reset().

std::unique_ptr<weld::CheckButton> SvxCharEffectsPage::m_xIndividualWordsBtn
private
std::unique_ptr<weld::CheckButton> SvxCharEffectsPage::m_xOutlineBtn
private
std::unique_ptr<weld::Label> SvxCharEffectsPage::m_xOverlineColorFT
private

Definition at line 183 of file chardlg.hxx.

Referenced by SelectHdl_Impl().

std::unique_ptr<ColorListBox> SvxCharEffectsPage::m_xOverlineColorLB
private
std::unique_ptr<weld::ComboBox> SvxCharEffectsPage::m_xOverlineLB
private
std::unique_ptr<weld::Label> SvxCharEffectsPage::m_xPositionFT
private

Definition at line 192 of file chardlg.hxx.

Referenced by Initialize(), and SelectHdl_Impl().

std::unique_ptr<weld::ComboBox> SvxCharEffectsPage::m_xPositionLB
private
std::unique_ptr<weld::Label> SvxCharEffectsPage::m_xReliefFT
private

Definition at line 176 of file chardlg.hxx.

Referenced by Reset().

std::unique_ptr<weld::ComboBox> SvxCharEffectsPage::m_xReliefLB
private
std::unique_ptr<weld::CheckButton> SvxCharEffectsPage::m_xShadowBtn
private
std::unique_ptr<weld::ComboBox> SvxCharEffectsPage::m_xStrikeoutLB
private
std::unique_ptr<weld::Label> SvxCharEffectsPage::m_xUnderlineColorFT
private

Definition at line 187 of file chardlg.hxx.

Referenced by DisableControls(), and SelectHdl_Impl().

std::unique_ptr<ColorListBox> SvxCharEffectsPage::m_xUnderlineColorLB
private
std::unique_ptr<weld::ComboBox> SvxCharEffectsPage::m_xUnderlineLB
private
const sal_uInt16 SvxCharEffectsPage::pEffectsRanges
staticprivate
Initial value:
=
{
SID_ATTR_CHAR_SHADOWED,
SID_ATTR_CHAR_UNDERLINE,
SID_ATTR_CHAR_COLOR,
SID_ATTR_CHAR_COLOR,
SID_ATTR_CHAR_CASEMAP,
SID_ATTR_CHAR_CASEMAP,
SID_ATTR_FLASH,
SID_ATTR_FLASH,
SID_ATTR_CHAR_EMPHASISMARK,
SID_ATTR_CHAR_EMPHASISMARK,
SID_ATTR_CHAR_RELIEF,
SID_ATTR_CHAR_RELIEF,
SID_ATTR_CHAR_HIDDEN,
SID_ATTR_CHAR_HIDDEN,
SID_ATTR_CHAR_OVERLINE,
SID_ATTR_CHAR_OVERLINE,
0
}

Definition at line 164 of file chardlg.hxx.

Referenced by GetRanges().


The documentation for this class was generated from the following files: