diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-12-19 12:01:58 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-12-19 12:06:22 +0000 |
commit | 7715f7e6b941a5b4bcde326c77647cd00c647a0b (patch) | |
tree | a44c3092a2c305ff1b74dba71bf9778c6fd523a5 /svx | |
parent | 3b6891ff6fa92bf64b8013181999e44d6dfb0b01 (diff) |
CID#703891 RubyDialog::GetText orthogonal to Dialog::GetText
Change-Id: I131daae13b11b5242e9a32a94532463f6e0d925b
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/dialog/rubydialog.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/svx/source/dialog/rubydialog.cxx b/svx/source/dialog/rubydialog.cxx index cb6db3cdb09f..2e113dc5d8b0 100644 --- a/svx/source/dialog/rubydialog.cxx +++ b/svx/source/dialog/rubydialog.cxx @@ -373,7 +373,7 @@ void SvxRubyDialog::Deactivate() SfxModelessDialog::Deactivate(); } -void SvxRubyDialog::SetText(sal_Int32 nPos, Edit& rLeft, Edit& rRight) +void SvxRubyDialog::SetRubyText(sal_Int32 nPos, Edit& rLeft, Edit& rRight) { OUString sLeft, sRight; const Sequence<PropertyValues>& aRubyValues = pImpl->GetRubyValues(); @@ -400,7 +400,7 @@ void SvxRubyDialog::SetText(sal_Int32 nPos, Edit& rLeft, Edit& rRight) rRight.SaveValue(); } //----------------------------------------------------------------------------- -void SvxRubyDialog::GetText() +void SvxRubyDialog::GetRubyText() { long nTempLastPos = GetLastPos(); for(int i = 0; i < 8; i+=2) @@ -515,12 +515,12 @@ IMPL_LINK(SvxRubyDialog, ScrollHdl_Impl, ScrollBar*, pScroll) long nPos = pScroll->GetThumbPos(); if(GetLastPos() != nPos) { - GetText(); + GetRubyText(); } - SetText(nPos++, *m_pLeft1ED, *m_pRight1ED); - SetText(nPos++, *m_pLeft2ED, *m_pRight2ED); - SetText(nPos++, *m_pLeft3ED, *m_pRight3ED); - SetText(nPos, *m_pLeft4ED, *m_pRight4ED); + SetRubyText(nPos++, *m_pLeft1ED, *m_pRight1ED); + SetRubyText(nPos++, *m_pLeft2ED, *m_pRight2ED); + SetRubyText(nPos++, *m_pLeft3ED, *m_pRight3ED); + SetRubyText(nPos, *m_pLeft4ED, *m_pRight4ED); SetLastPos(nPos - 3); m_pPreviewWin->Invalidate(); return 0; @@ -536,7 +536,7 @@ IMPL_LINK_NOARG(SvxRubyDialog, ApplyHdl_Impl) AdjustHdl_Impl(m_pAdjustLB); CharStyleHdl_Impl(m_pCharStyleLB); } - GetText(); + GetRubyText(); //reset all edit fields - SaveValue is called ScrollHdl_Impl(m_pScrollSB); |