LibreOffice Module svx (master)  1
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
SvxRubyDialog Class Reference

#include <rubydialog.hxx>

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

Public Member Functions

 SvxRubyDialog (SfxBindings *pBindings, SfxChildWindow *pCW, weld::Window *pParent)
 
virtual ~SvxRubyDialog () override
 
virtual void Activate () override
 
- Public Member Functions inherited from SfxModelessDialogController
virtual ~SfxModelessDialogController () override
 
void Initialize (SfxChildWinInfo const *pInfo)
 
bool IsClosing () const
 
virtual void EndDialog () override
 
virtual void Deactivate () override
 
virtual void ChildWinDispose () override
 
virtual void FillInfo (SfxChildWinInfo &) const
 
SfxBindingsGetBindings () const
 
- Public Member Functions inherited from SfxDialogController
 SfxDialogController (weld::Widget *pParent, const OUString &rUIFile, const OString &rDialogId)
 

Private Member Functions

 DECL_LINK (ApplyHdl_Impl, weld::Button &, void)
 
 DECL_LINK (CloseHdl_Impl, weld::Button &, void)
 
 DECL_LINK (StylistHdl_Impl, weld::Button &, void)
 
 DECL_LINK (ScrollHdl_Impl, weld::ScrolledWindow &, void)
 
 DECL_LINK (PositionHdl_Impl, weld::ComboBox &, void)
 
 DECL_LINK (AdjustHdl_Impl, weld::ComboBox &, void)
 
 DECL_LINK (CharStyleHdl_Impl, weld::ComboBox &, void)
 
 DECL_LINK (EditModifyHdl_Impl, weld::Entry &, void)
 
 DECL_LINK (EditFocusHdl_Impl, weld::Widget &, void)
 
 DECL_LINK (KeyUpDownHdl_Impl, const KeyEvent &, bool)
 
 DECL_LINK (KeyUpDownTabHdl_Impl, const KeyEvent &, bool)
 
bool EditScrollHdl_Impl (sal_Int32 nParam)
 
bool EditJumpHdl_Impl (sal_Int32 nParam)
 
void SetRubyText (sal_Int32 nPos, weld::Entry &rLeft, weld::Entry &rRight)
 
void GetRubyText ()
 
void ClearCharStyleList ()
 
void AssertOneEntry ()
 
void Update ()
 
virtual void Close () override
 
long GetLastPos () const
 
void SetLastPos (long nSet)
 
bool IsModified () const
 
void SetModified (bool bSet)
 
void EnableControls (bool bEnable)
 
void GetCurrentText (OUString &rBase, OUString &rRuby)
 

Private Attributes

long nLastPos
 
long nCurrentEdit
 
bool bModified
 
SfxBindingspBindings
 
rtl::Reference< SvxRubyData_Implm_pImpl
 
weld::EntryaEditArr [8]
 
std::unique_ptr< weld::Labelm_xLeftFT
 
std::unique_ptr< weld::Labelm_xRightFT
 
std::unique_ptr< weld::Entrym_xLeft1ED
 
std::unique_ptr< weld::Entrym_xRight1ED
 
std::unique_ptr< weld::Entrym_xLeft2ED
 
std::unique_ptr< weld::Entrym_xRight2ED
 
std::unique_ptr< weld::Entrym_xLeft3ED
 
std::unique_ptr< weld::Entrym_xRight3ED
 
std::unique_ptr< weld::Entrym_xLeft4ED
 
std::unique_ptr< weld::Entrym_xRight4ED
 
std::unique_ptr< weld::ScrolledWindowm_xScrolledWindow
 
std::unique_ptr< weld::ComboBoxm_xAdjustLB
 
std::unique_ptr< weld::ComboBoxm_xPositionLB
 
std::unique_ptr< weld::Labelm_xCharStyleFT
 
std::unique_ptr< weld::ComboBoxm_xCharStyleLB
 
std::unique_ptr< weld::Buttonm_xStylistPB
 
std::unique_ptr< weld::Buttonm_xApplyPB
 
std::unique_ptr< weld::Buttonm_xClosePB
 
std::unique_ptr< weld::Containerm_xContentArea
 
std::unique_ptr< weld::Widgetm_xGrid
 
std::unique_ptr< RubyPreviewm_xPreviewWin
 
std::unique_ptr< weld::CustomWeldm_xPreview
 

Friends

class RubyPreview
 

Additional Inherited Members

- Protected Member Functions inherited from SfxModelessDialogController
 SfxModelessDialogController (SfxBindings *, SfxChildWindow *pChildWin, weld::Window *pParent, const OUString &rUIXMLDescription, const OString &rID)
 

Detailed Description

Definition at line 55 of file rubydialog.hxx.

Constructor & Destructor Documentation

SvxRubyDialog::SvxRubyDialog ( SfxBindings pBindings,
SfxChildWindow pCW,
weld::Window pParent 
)
SvxRubyDialog::~SvxRubyDialog ( )
overridevirtual

Definition at line 267 of file rubydialog.cxx.

References ClearCharStyleList(), and m_pImpl.

Member Function Documentation

void SvxRubyDialog::Activate ( )
overridevirtual
void SvxRubyDialog::AssertOneEntry ( )
private

Definition at line 691 of file rubydialog.cxx.

References m_pImpl.

void SvxRubyDialog::ClearCharStyleList ( )
private

Definition at line 274 of file rubydialog.cxx.

References m_xCharStyleLB.

Referenced by Activate(), and ~SvxRubyDialog().

void SvxRubyDialog::Close ( )
overrideprivatevirtual
SvxRubyDialog::DECL_LINK ( ApplyHdl_Impl  ,
weld::Button ,
void   
)
private
SvxRubyDialog::DECL_LINK ( CloseHdl_Impl  ,
weld::Button ,
void   
)
private
SvxRubyDialog::DECL_LINK ( StylistHdl_Impl  ,
weld::Button ,
void   
)
private
SvxRubyDialog::DECL_LINK ( ScrollHdl_Impl  ,
weld::ScrolledWindow ,
void   
)
private
SvxRubyDialog::DECL_LINK ( PositionHdl_Impl  ,
weld::ComboBox ,
void   
)
private
SvxRubyDialog::DECL_LINK ( AdjustHdl_Impl  ,
weld::ComboBox ,
void   
)
private
SvxRubyDialog::DECL_LINK ( CharStyleHdl_Impl  ,
weld::ComboBox ,
void   
)
private
SvxRubyDialog::DECL_LINK ( EditModifyHdl_Impl  ,
weld::Entry ,
void   
)
private
SvxRubyDialog::DECL_LINK ( EditFocusHdl_Impl  ,
weld::Widget ,
void   
)
private
SvxRubyDialog::DECL_LINK ( KeyUpDownHdl_Impl  ,
const KeyEvent ,
bool   
)
private
SvxRubyDialog::DECL_LINK ( KeyUpDownTabHdl_Impl  ,
const KeyEvent ,
bool   
)
private
bool SvxRubyDialog::EditJumpHdl_Impl ( sal_Int32  nParam)
private

Definition at line 661 of file rubydialog.cxx.

References aEditArr, EditScrollHdl_Impl(), weld::Widget::grab_focus(), i, and USHRT_MAX.

bool SvxRubyDialog::EditScrollHdl_Impl ( sal_Int32  nParam)
private
void SvxRubyDialog::EnableControls ( bool  bEnable)
private

Definition at line 696 of file rubydialog.cxx.

References m_xApplyPB, and m_xContentArea.

Referenced by Activate().

void SvxRubyDialog::GetCurrentText ( OUString &  rBase,
OUString &  rRuby 
)
private

Definition at line 498 of file rubydialog.cxx.

References aEditArr, weld::Entry::get_text(), and nCurrentEdit.

Referenced by RubyPreview::Paint().

long SvxRubyDialog::GetLastPos ( ) const
inlineprivate

Definition at line 120 of file rubydialog.hxx.

References nLastPos.

Referenced by GetRubyText().

void SvxRubyDialog::GetRubyText ( )
private
bool SvxRubyDialog::IsModified ( ) const
inlineprivate

Definition at line 123 of file rubydialog.hxx.

References bModified.

void SvxRubyDialog::SetLastPos ( long  nSet)
inlineprivate

Definition at line 121 of file rubydialog.hxx.

Referenced by Update().

void SvxRubyDialog::SetModified ( bool  bSet)
inlineprivate

Definition at line 124 of file rubydialog.hxx.

Referenced by GetRubyText(), and Update().

void SvxRubyDialog::SetRubyText ( sal_Int32  nPos,
weld::Entry rLeft,
weld::Entry rRight 
)
private
void SvxRubyDialog::Update ( )
private

Definition at line 417 of file rubydialog.cxx.

References i, m_pImpl, m_xAdjustLB, m_xCharStyleLB, m_xPositionLB, m_xScrolledWindow, SetLastPos(), and SetModified().

Referenced by Activate().

Friends And Related Function Documentation

friend class RubyPreview
friend

Definition at line 57 of file rubydialog.hxx.

Member Data Documentation

weld::Entry* SvxRubyDialog::aEditArr[8]
private
bool SvxRubyDialog::bModified
private

Definition at line 62 of file rubydialog.hxx.

Referenced by IsModified().

rtl::Reference<SvxRubyData_Impl> SvxRubyDialog::m_pImpl
private
std::unique_ptr<weld::ComboBox> SvxRubyDialog::m_xAdjustLB
private

Definition at line 80 of file rubydialog.hxx.

Referenced by RubyPreview::Paint(), SvxRubyDialog(), and Update().

std::unique_ptr<weld::Button> SvxRubyDialog::m_xApplyPB
private

Definition at line 88 of file rubydialog.hxx.

Referenced by EnableControls(), and SvxRubyDialog().

std::unique_ptr<weld::Label> SvxRubyDialog::m_xCharStyleFT
private

Definition at line 84 of file rubydialog.hxx.

Referenced by Activate().

std::unique_ptr<weld::ComboBox> SvxRubyDialog::m_xCharStyleLB
private

Definition at line 85 of file rubydialog.hxx.

Referenced by Activate(), ClearCharStyleList(), SvxRubyDialog(), and Update().

std::unique_ptr<weld::Button> SvxRubyDialog::m_xClosePB
private

Definition at line 89 of file rubydialog.hxx.

Referenced by SvxRubyDialog().

std::unique_ptr<weld::Container> SvxRubyDialog::m_xContentArea
private

Definition at line 91 of file rubydialog.hxx.

Referenced by EnableControls().

std::unique_ptr<weld::Widget> SvxRubyDialog::m_xGrid
private

Definition at line 92 of file rubydialog.hxx.

Referenced by SvxRubyDialog().

std::unique_ptr<weld::Entry> SvxRubyDialog::m_xLeft1ED
private

Definition at line 69 of file rubydialog.hxx.

Referenced by SvxRubyDialog().

std::unique_ptr<weld::Entry> SvxRubyDialog::m_xLeft2ED
private

Definition at line 71 of file rubydialog.hxx.

Referenced by SvxRubyDialog().

std::unique_ptr<weld::Entry> SvxRubyDialog::m_xLeft3ED
private

Definition at line 73 of file rubydialog.hxx.

Referenced by SvxRubyDialog().

std::unique_ptr<weld::Entry> SvxRubyDialog::m_xLeft4ED
private

Definition at line 75 of file rubydialog.hxx.

Referenced by SvxRubyDialog().

std::unique_ptr<weld::Label> SvxRubyDialog::m_xLeftFT
private

Definition at line 67 of file rubydialog.hxx.

std::unique_ptr<weld::ComboBox> SvxRubyDialog::m_xPositionLB
private

Definition at line 82 of file rubydialog.hxx.

Referenced by RubyPreview::Paint(), SvxRubyDialog(), and Update().

std::unique_ptr<weld::CustomWeld> SvxRubyDialog::m_xPreview
private

Definition at line 95 of file rubydialog.hxx.

std::unique_ptr<RubyPreview> SvxRubyDialog::m_xPreviewWin
private

Definition at line 94 of file rubydialog.hxx.

Referenced by Activate(), and SvxRubyDialog().

std::unique_ptr<weld::Entry> SvxRubyDialog::m_xRight1ED
private

Definition at line 70 of file rubydialog.hxx.

Referenced by SvxRubyDialog().

std::unique_ptr<weld::Entry> SvxRubyDialog::m_xRight2ED
private

Definition at line 72 of file rubydialog.hxx.

Referenced by SvxRubyDialog().

std::unique_ptr<weld::Entry> SvxRubyDialog::m_xRight3ED
private

Definition at line 74 of file rubydialog.hxx.

Referenced by SvxRubyDialog().

std::unique_ptr<weld::Entry> SvxRubyDialog::m_xRight4ED
private

Definition at line 76 of file rubydialog.hxx.

Referenced by SvxRubyDialog().

std::unique_ptr<weld::Label> SvxRubyDialog::m_xRightFT
private

Definition at line 68 of file rubydialog.hxx.

std::unique_ptr<weld::ScrolledWindow> SvxRubyDialog::m_xScrolledWindow
private

Definition at line 78 of file rubydialog.hxx.

Referenced by EditScrollHdl_Impl(), SvxRubyDialog(), and Update().

std::unique_ptr<weld::Button> SvxRubyDialog::m_xStylistPB
private

Definition at line 86 of file rubydialog.hxx.

Referenced by SvxRubyDialog().

long SvxRubyDialog::nCurrentEdit
private

Definition at line 61 of file rubydialog.hxx.

Referenced by GetCurrentText().

long SvxRubyDialog::nLastPos
private

Definition at line 60 of file rubydialog.hxx.

Referenced by GetLastPos().

SfxBindings* SvxRubyDialog::pBindings
private

Definition at line 63 of file rubydialog.hxx.


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