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

#include <chardlg.hxx>

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

Public Member Functions

virtual void ActivatePage (const SfxItemSet &rSet) override
 
virtual DeactivateRC DeactivatePage (SfxItemSet *pSet) override
 
virtual ~SvxCharNamePage () override
 
virtual void dispose () override
 
virtual void Reset (const SfxItemSet *rSet) override
 
virtual bool FillItemSet (SfxItemSet *rSet) override
 
virtual void ChangesApplied () override
 
void SetFontList (const SvxFontListItem &rItem)
 
void EnableRelativeMode ()
 
void EnableSearchMode ()
 
void DisableControls (sal_uInt16 nDisable)
 
virtual void PageCreated (const SfxAllItemSet &aSet) override
 
- Public Member Functions inherited from SvxCharBasePage
virtual ~SvxCharBasePage () override
 
- Public Member Functions inherited from SfxTabPage
void SetDialogController (SfxOkDialogController *pDialog)
 
virtual ~SfxTabPage () override
 
const SfxItemSetGetItemSet () const
 
bool HasExchangeSupport () const
 
void SetExchangeSupport ()
 
void SetUserData (const OUString &rString)
 
const OUString & GetUserData ()
 
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 SfxItemSetGetDialogExampleSet () const
 
OString GetConfigId () const
 
weld::WindowGetDialogFrameWeld () const
 

Static Public Member Functions

static VclPtr< SfxTabPageCreate (TabPageParent pParent, 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 Types

enum  LanguageGroup {
  Western = 0,
  Asian,
  Ctl
}
 

Private Member Functions

 SvxCharNamePage (TabPageParent pParent, const SfxItemSet &rSet)
 
void Initialize ()
 
const FontListGetFontList () const
 
void UpdatePreview_Impl ()
 
void FillStyleBox_Impl (const weld::Widget &rBox)
 
void FillSizeBox_Impl (const weld::Widget &rBox)
 
void Reset_Impl (const SfxItemSet &rSet, LanguageGroup eLangGrp)
 
bool FillItemSet_Impl (SfxItemSet &rSet, LanguageGroup eLangGrp)
 
 DECL_LINK (UpdateHdl_Impl, Timer *, void)
 
 DECL_LINK (FontModifyEditHdl_Impl, weld::Entry &, void)
 
 DECL_LINK (FontModifyComboBoxHdl_Impl, weld::ComboBox &, void)
 
 DECL_LINK (FontFeatureButtonClicked, weld::Button &, void)
 
void FontModifyHdl_Impl (const weld::Widget &)
 

Private Attributes

std::unique_ptr< SvxCharNamePage_Implm_pImpl
 
std::unique_ptr< weld::Widgetm_xWestFrame
 
std::unique_ptr< weld::Labelm_xWestFontNameFT
 
std::unique_ptr< weld::ComboBoxm_xWestFontNameLB
 
std::unique_ptr< weld::Labelm_xWestFontStyleFT
 
std::unique_ptr< SvtFontStyleBoxm_xWestFontStyleLB
 
std::unique_ptr< weld::Labelm_xWestFontSizeFT
 
std::unique_ptr< SvtFontSizeBoxm_xWestFontSizeLB
 
std::unique_ptr< weld::Labelm_xWestFontLanguageFT
 
std::unique_ptr< LanguageBoxm_xWestFontLanguageLB
 
std::unique_ptr< weld::Labelm_xWestFontTypeFT
 
std::unique_ptr< weld::Buttonm_xWestFontFeaturesButton
 
std::unique_ptr< weld::Widgetm_xEastFrame
 
std::unique_ptr< weld::Labelm_xEastFontNameFT
 
std::unique_ptr< weld::ComboBoxm_xEastFontNameLB
 
std::unique_ptr< weld::Labelm_xEastFontStyleFT
 
std::unique_ptr< SvtFontStyleBoxm_xEastFontStyleLB
 
std::unique_ptr< weld::Labelm_xEastFontSizeFT
 
std::unique_ptr< SvtFontSizeBoxm_xEastFontSizeLB
 
std::unique_ptr< weld::Labelm_xEastFontLanguageFT
 
std::unique_ptr< LanguageBoxm_xEastFontLanguageLB
 
std::unique_ptr< weld::Labelm_xEastFontTypeFT
 
std::unique_ptr< weld::Buttonm_xEastFontFeaturesButton
 
std::unique_ptr< weld::Widgetm_xCTLFrame
 
std::unique_ptr< weld::Labelm_xCTLFontNameFT
 
std::unique_ptr< weld::ComboBoxm_xCTLFontNameLB
 
std::unique_ptr< weld::Labelm_xCTLFontStyleFT
 
std::unique_ptr< SvtFontStyleBoxm_xCTLFontStyleLB
 
std::unique_ptr< weld::Labelm_xCTLFontSizeFT
 
std::unique_ptr< SvtFontSizeBoxm_xCTLFontSizeLB
 
std::unique_ptr< weld::Labelm_xCTLFontLanguageFT
 
std::unique_ptr< LanguageBoxm_xCTLFontLanguageLB
 
std::unique_ptr< weld::Labelm_xCTLFontTypeFT
 
std::unique_ptr< weld::Buttonm_xCTLFontFeaturesButton
 

Static Private Attributes

static const sal_uInt16 pNameRanges []
 

Friends

class VclPtr< SvxCharNamePage >
 

Additional Inherited Members

- Protected Member Functions inherited from SvxCharBasePage
 SvxCharBasePage (TabPageParent pParent, 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 (vcl::Window *pParent, const OString &rID, const OUString &rUIXMLDescription, const SfxItemSet *rAttrSet)
 
 SfxTabPage (TabPageParent pParent, 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
FontPrevWindow m_aPreviewWin
 
std::unique_ptr< weld::CustomWeldm_xPreviewWin
 
bool m_bPreviewBackgroundToCharacter
 
- Protected Attributes inherited from SfxTabPage
std::unique_ptr< weld::Builderm_xBuilder
 
std::unique_ptr< weld::Containerm_xContainer
 

Detailed Description

Definition at line 66 of file chardlg.hxx.

Member Enumeration Documentation

Enumerator
Western 

Language for western text.

Asian 

Language for asian text.

Ctl 

Language for ctl text.

Definition at line 119 of file chardlg.hxx.

Constructor & Destructor Documentation

SvxCharNamePage::SvxCharNamePage ( TabPageParent  pParent,
const SfxItemSet rSet 
)
private
SvxCharNamePage::~SvxCharNamePage ( )
overridevirtual

Definition at line 346 of file chardlg.cxx.

Member Function Documentation

void SvxCharNamePage::ActivatePage ( const SfxItemSet rSet)
overridevirtual

Reimplemented from SvxCharBasePage.

Definition at line 1200 of file chardlg.cxx.

References SvxCharBasePage::ActivatePage(), and UpdatePreview_Impl().

void SvxCharNamePage::ChangesApplied ( )
overridevirtual
VclPtr< SfxTabPage > SvxCharNamePage::Create ( TabPageParent  pParent,
const SfxItemSet rSet 
)
static
DeactivateRC SvxCharNamePage::DeactivatePage ( SfxItemSet pSet)
overridevirtual

Reimplemented from SfxTabPage.

Definition at line 1207 of file chardlg.cxx.

References FillItemSet().

SvxCharNamePage::DECL_LINK ( UpdateHdl_Impl  ,
Timer ,
void   
)
private
SvxCharNamePage::DECL_LINK ( FontModifyEditHdl_Impl  ,
weld::Entry ,
void   
)
private
SvxCharNamePage::DECL_LINK ( FontModifyComboBoxHdl_Impl  ,
weld::ComboBox ,
void   
)
private
SvxCharNamePage::DECL_LINK ( FontFeatureButtonClicked  ,
weld::Button ,
void   
)
private
void SvxCharNamePage::DisableControls ( sal_uInt16  nDisable)
void SvxCharNamePage::dispose ( void  )
overridevirtual
void SvxCharNamePage::EnableRelativeMode ( )
void SvxCharNamePage::EnableSearchMode ( )

Definition at line 1285 of file chardlg.cxx.

References m_pImpl.

bool SvxCharNamePage::FillItemSet ( SfxItemSet rSet)
overridevirtual

Reimplemented from SfxTabPage.

Definition at line 1245 of file chardlg.cxx.

References Asian, Ctl, FillItemSet_Impl(), and Western.

Referenced by DeactivatePage().

bool SvxCharNamePage::FillItemSet_Impl ( SfxItemSet rSet,
LanguageGroup  eLangGrp 
)
private

Definition at line 854 of file chardlg.cxx.

References Asian, CalcToUnit(), SfxItemSet::ClearItem(), Ctl, DBG_ASSERT, SvtFontStyleBox::find_text(), SfxItemSet::Get(), FontList::Get(), LanguageBox::get_active(), LanguageBox::get_active_id(), LanguageBox::get_active_id_changed_from_saved(), weld::ComboBox::get_active_text(), SvtFontSizeBox::get_active_text(), SvtFontStyleBox::get_active_text(), LanguageBox::get_saved_active_id(), SvtFontStyleBox::get_saved_value(), SvtFontSizeBox::get_saved_value(), weld::ComboBox::get_saved_value(), SvtFontSizeBox::get_value(), SfxTabPage::GetDialogExampleSet(), LanguageBox::GetEditedAndValid(), SvxFontItem::GetFamilyName(), GetFontList(), SvxFontHeightItem::GetHeight(), SfxTabPage::GetItemSet(), SfxItemSet::GetItemState(), SfxItemPool::GetMetric(), SfxTabPage::GetOldItem(), SfxItemSet::GetParent(), SfxItemSet::GetPool(), SvxFontHeightItem::GetProp(), SvxFontHeightItem::GetPropUnit(), GetValue, SfxTabPage::GetWhich(), LanguageBox::Invalid, SfxItemSet::InvalidateItem(), SvtFontSizeBox::IsPtRelative(), SvtFontSizeBox::IsRelative(), ITALIC_NONE, m_pImpl, m_xCTLFontLanguageLB, m_xCTLFontNameLB, m_xCTLFontSizeLB, m_xCTLFontStyleLB, m_xEastFontLanguageLB, m_xEastFontNameLB, m_xEastFontSizeLB, m_xEastFontStyleLB, m_xWestFontLanguageLB, m_xWestFontNameLB, m_xWestFontSizeLB, m_xWestFontStyleLB, LanguageBox::No, nPos, SfxItemSet::Put(), LanguageBox::SaveEditedAsEntry(), LanguageBox::set_active(), LanguageBox::set_active_id(), SvxFontHeightItem::SetHeight(), LanguageBox::Valid, WEIGHT_NORMAL, and Western.

Referenced by FillItemSet().

void SvxCharNamePage::FillSizeBox_Impl ( const weld::Widget rBox)
private
void SvxCharNamePage::FillStyleBox_Impl ( const weld::Widget rBox)
private
void SvxCharNamePage::FontModifyHdl_Impl ( const weld::Widget rNameBox)
private
const FontList * SvxCharNamePage::GetFontList ( ) const
private
static const sal_uInt16* SvxCharNamePage::GetRanges ( )
inlinestatic

Definition at line 156 of file chardlg.hxx.

References pNameRanges.

Referenced by AbstractDialogFactory_Impl::GetTabPageRangesFunc().

void SvxCharNamePage::Initialize ( )
private
void SvxCharNamePage::PageCreated ( const SfxAllItemSet aSet)
overridevirtual
void SvxCharNamePage::Reset ( const SfxItemSet rSet)
overridevirtual

Reimplemented from SfxTabPage.

Definition at line 1219 of file chardlg.cxx.

References Asian, Ctl, Reset_Impl(), SvxCharBasePage::SetPrevFontWidthScale(), UpdatePreview_Impl(), and Western.

void SvxCharNamePage::Reset_Impl ( const SfxItemSet rSet,
LanguageGroup  eLangGrp 
)
private

Definition at line 625 of file chardlg.cxx.

References Asian, CalcToPoint(), Ctl, DBG_ASSERT, FillSizeBox_Impl(), FillStyleBox_Impl(), weld::ComboBox::find_text(), FontList::Get(), SfxItemSet::Get(), weld::ComboBox::get_active_text(), SvtFontStyleBox::get_active_text(), SvxFontItem::GetFamilyName(), GetFontList(), FontList::GetFontMapText(), SvxFontHeightItem::GetHeight(), SfxItemSet::GetItemState(), SfxItemPool::GetMetric(), SfxItemSet::GetPool(), SvxFontHeightItem::GetProp(), SvxFontHeightItem::GetPropUnit(), FontList::GetStyleName(), SfxTabPage::GetWhich(), weld::Widget::hide(), LanguageBox::hide(), SvtFontSizeBox::IsRelativeMode(), ITALIC_NONE, LANGUAGE_DONTKNOW, LANGUAGE_SYSTEM, m_pImpl, m_xCTLFontLanguageFT, m_xCTLFontLanguageLB, m_xCTLFontNameLB, m_xCTLFontSizeFT, m_xCTLFontSizeLB, m_xCTLFontStyleFT, m_xCTLFontStyleLB, m_xCTLFontTypeFT, m_xEastFontLanguageFT, m_xEastFontLanguageLB, m_xEastFontNameLB, m_xEastFontSizeFT, m_xEastFontSizeLB, m_xEastFontStyleFT, m_xEastFontStyleLB, m_xEastFontTypeFT, m_xWestFontLanguageFT, m_xWestFontLanguageLB, m_xWestFontNameLB, m_xWestFontSizeFT, m_xWestFontSizeLB, m_xWestFontStyleFT, m_xWestFontStyleLB, m_xWestFontTypeFT, LanguageBox::save_active_id(), SvtFontSizeBox::save_value(), weld::ComboBox::save_value(), SvtFontStyleBox::save_value(), weld::ComboBox::set_active(), LanguageBox::set_active(), LanguageBox::set_active_id(), SvtFontStyleBox::set_active_text(), weld::ComboBox::set_active_text(), SvtFontSizeBox::set_active_text(), weld::ComboBox::set_entry_text(), SvtFontSizeBox::set_sensitive(), SvtFontStyleBox::set_sensitive(), LanguageBox::set_sensitive(), weld::Widget::set_sensitive(), SvtFontSizeBox::set_value(), SvtFontSizeBox::SetPtRelative(), SvtFontSizeBox::SetRelative(), WEIGHT_NORMAL, and Western.

Referenced by Reset().

void SvxCharNamePage::SetFontList ( const SvxFontListItem rItem)

Definition at line 1253 of file chardlg.cxx.

References FontList::Clone(), SvxFontListItem::GetFontList(), and m_pImpl.

Referenced by PageCreated().

void SvxCharNamePage::UpdatePreview_Impl ( )
private

Friends And Related Function Documentation

friend class VclPtr< SvxCharNamePage >
friend

Definition at line 68 of file chardlg.hxx.

Member Data Documentation

std::unique_ptr<SvxCharNamePage_Impl> SvxCharNamePage::m_pImpl
private
std::unique_ptr<weld::Button> SvxCharNamePage::m_xCTLFontFeaturesButton
private

Definition at line 109 of file chardlg.hxx.

Referenced by Initialize().

std::unique_ptr<weld::Label> SvxCharNamePage::m_xCTLFontLanguageFT
private

Definition at line 106 of file chardlg.hxx.

Referenced by DisableControls(), and Reset_Impl().

std::unique_ptr<LanguageBox> SvxCharNamePage::m_xCTLFontLanguageLB
private
std::unique_ptr<weld::Label> SvxCharNamePage::m_xCTLFontNameFT
private

Definition at line 100 of file chardlg.hxx.

Referenced by SvxCharNamePage().

std::unique_ptr<weld::ComboBox> SvxCharNamePage::m_xCTLFontNameLB
private
std::unique_ptr<weld::Label> SvxCharNamePage::m_xCTLFontSizeFT
private

Definition at line 104 of file chardlg.hxx.

Referenced by Reset_Impl().

std::unique_ptr<SvtFontSizeBox> SvxCharNamePage::m_xCTLFontSizeLB
private
std::unique_ptr<weld::Label> SvxCharNamePage::m_xCTLFontStyleFT
private

Definition at line 102 of file chardlg.hxx.

Referenced by Reset_Impl(), and SvxCharNamePage().

std::unique_ptr<SvtFontStyleBox> SvxCharNamePage::m_xCTLFontStyleLB
private
std::unique_ptr<weld::Label> SvxCharNamePage::m_xCTLFontTypeFT
private

Definition at line 108 of file chardlg.hxx.

Referenced by Reset_Impl(), and UpdatePreview_Impl().

std::unique_ptr<weld::Widget> SvxCharNamePage::m_xCTLFrame
private

Definition at line 99 of file chardlg.hxx.

Referenced by SvxCharNamePage().

std::unique_ptr<weld::Button> SvxCharNamePage::m_xEastFontFeaturesButton
private

Definition at line 97 of file chardlg.hxx.

Referenced by Initialize().

std::unique_ptr<weld::Label> SvxCharNamePage::m_xEastFontLanguageFT
private

Definition at line 94 of file chardlg.hxx.

Referenced by DisableControls(), and Reset_Impl().

std::unique_ptr<LanguageBox> SvxCharNamePage::m_xEastFontLanguageLB
private
std::unique_ptr<weld::Label> SvxCharNamePage::m_xEastFontNameFT
private

Definition at line 88 of file chardlg.hxx.

Referenced by SvxCharNamePage().

std::unique_ptr<weld::ComboBox> SvxCharNamePage::m_xEastFontNameLB
private
std::unique_ptr<weld::Label> SvxCharNamePage::m_xEastFontSizeFT
private

Definition at line 92 of file chardlg.hxx.

Referenced by Reset_Impl().

std::unique_ptr<SvtFontSizeBox> SvxCharNamePage::m_xEastFontSizeLB
private
std::unique_ptr<weld::Label> SvxCharNamePage::m_xEastFontStyleFT
private

Definition at line 90 of file chardlg.hxx.

Referenced by Reset_Impl(), and SvxCharNamePage().

std::unique_ptr<SvtFontStyleBox> SvxCharNamePage::m_xEastFontStyleLB
private
std::unique_ptr<weld::Label> SvxCharNamePage::m_xEastFontTypeFT
private

Definition at line 96 of file chardlg.hxx.

Referenced by Reset_Impl(), and UpdatePreview_Impl().

std::unique_ptr<weld::Widget> SvxCharNamePage::m_xEastFrame
private

Definition at line 87 of file chardlg.hxx.

Referenced by SvxCharNamePage().

std::unique_ptr<weld::Button> SvxCharNamePage::m_xWestFontFeaturesButton
private

Definition at line 85 of file chardlg.hxx.

Referenced by Initialize(), and SvxCharNamePage().

std::unique_ptr<weld::Label> SvxCharNamePage::m_xWestFontLanguageFT
private

Definition at line 82 of file chardlg.hxx.

Referenced by DisableControls(), Reset_Impl(), and SvxCharNamePage().

std::unique_ptr<LanguageBox> SvxCharNamePage::m_xWestFontLanguageLB
private
std::unique_ptr<weld::Label> SvxCharNamePage::m_xWestFontNameFT
private

Definition at line 76 of file chardlg.hxx.

Referenced by SvxCharNamePage().

std::unique_ptr<weld::ComboBox> SvxCharNamePage::m_xWestFontNameLB
private
std::unique_ptr<weld::Label> SvxCharNamePage::m_xWestFontSizeFT
private

Definition at line 80 of file chardlg.hxx.

Referenced by Reset_Impl(), and SvxCharNamePage().

std::unique_ptr<SvtFontSizeBox> SvxCharNamePage::m_xWestFontSizeLB
private
std::unique_ptr<weld::Label> SvxCharNamePage::m_xWestFontStyleFT
private

Definition at line 78 of file chardlg.hxx.

Referenced by Reset_Impl(), and SvxCharNamePage().

std::unique_ptr<SvtFontStyleBox> SvxCharNamePage::m_xWestFontStyleLB
private
std::unique_ptr<weld::Label> SvxCharNamePage::m_xWestFontTypeFT
private

Definition at line 84 of file chardlg.hxx.

Referenced by Reset_Impl(), SvxCharNamePage(), and UpdatePreview_Impl().

std::unique_ptr<weld::Widget> SvxCharNamePage::m_xWestFrame
private

Definition at line 75 of file chardlg.hxx.

Referenced by SvxCharNamePage().

const sal_uInt16 SvxCharNamePage::pNameRanges
staticprivate
Initial value:
=
{
SID_ATTR_CHAR_FONT,
SID_ATTR_CHAR_WEIGHT,
SID_ATTR_CHAR_FONTHEIGHT,
SID_ATTR_CHAR_FONTHEIGHT,
SID_ATTR_CHAR_COLOR,
SID_ATTR_CHAR_COLOR,
SID_ATTR_CHAR_LANGUAGE,
SID_ATTR_CHAR_LANGUAGE,
SID_ATTR_CHAR_CJK_FONT,
SID_ATTR_CHAR_CJK_WEIGHT,
SID_ATTR_CHAR_CTL_FONT,
SID_ATTR_CHAR_CTL_WEIGHT,
0
}

Definition at line 71 of file chardlg.hxx.

Referenced by GetRanges().


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