Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
7715f7e6
Kaydet (Commit)
7715f7e6
authored
Ara 19, 2013
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
CID#703891 RubyDialog::GetText orthogonal to Dialog::GetText
Change-Id: I131daae13b11b5242e9a32a94532463f6e0d925b
üst
3b6891ff
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
16 deletions
+13
-16
rubydialog.hxx
include/svx/rubydialog.hxx
+5
-8
rubydialog.cxx
svx/source/dialog/rubydialog.cxx
+8
-8
No files found.
include/svx/rubydialog.hxx
Dosyayı görüntüle @
7715f7e6
...
...
@@ -87,9 +87,6 @@ public:
class
SvxRubyDialog
:
public
SfxModelessDialog
{
using
Dialog
::
SetText
;
using
Dialog
::
GetText
;
friend
class
RubyPreview
;
FixedText
*
m_pLeftFT
;
...
...
@@ -123,7 +120,7 @@ class SvxRubyDialog : public SfxModelessDialog
long
nLastPos
;
long
nCurrentEdit
;
sal_Bool
bModified
;
sal_Bool
bModified
;
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
view
::
XSelectionChangeListener
>
xImpl
;
SfxBindings
*
pBindings
;
...
...
@@ -140,18 +137,18 @@ class SvxRubyDialog : public SfxModelessDialog
DECL_LINK
(
EditScrollHdl_Impl
,
sal_Int32
*
);
DECL_LINK
(
EditJumpHdl_Impl
,
sal_Int32
*
);
void
SetText
(
sal_Int32
nPos
,
Edit
&
rLeft
,
Edit
&
rRight
);
void
GetText
();
void
Set
Ruby
Text
(
sal_Int32
nPos
,
Edit
&
rLeft
,
Edit
&
rRight
);
void
Get
Ruby
Text
();
void
ClearCharStyleList
();
void
AssertOneEntry
();
void
Update
();
virtual
sal_Bool
Close
();
virtual
sal_Bool
Close
();
long
GetLastPos
()
const
{
return
nLastPos
;}
void
SetLastPos
(
long
nSet
)
{
nLastPos
=
nSet
;}
sal_Bool
IsModified
()
const
{
return
bModified
;}
sal_Bool
IsModified
()
const
{
return
bModified
;}
void
SetModified
(
sal_Bool
bSet
)
{
bModified
=
bSet
;}
void
EnableControls
(
bool
bEnable
);
...
...
svx/source/dialog/rubydialog.cxx
Dosyayı görüntüle @
7715f7e6
...
...
@@ -373,7 +373,7 @@ void SvxRubyDialog::Deactivate()
SfxModelessDialog
::
Deactivate
();
}
void
SvxRubyDialog
::
SetText
(
sal_Int32
nPos
,
Edit
&
rLeft
,
Edit
&
rRight
)
void
SvxRubyDialog
::
Set
Ruby
Text
(
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
::
Get
Ruby
Text
()
{
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
();
Get
Ruby
Text
();
}
SetText
(
nPos
++
,
*
m_pLeft1ED
,
*
m_pRight1ED
);
SetText
(
nPos
++
,
*
m_pLeft2ED
,
*
m_pRight2ED
);
SetText
(
nPos
++
,
*
m_pLeft3ED
,
*
m_pRight3ED
);
SetText
(
nPos
,
*
m_pLeft4ED
,
*
m_pRight4ED
);
Set
Ruby
Text
(
nPos
++
,
*
m_pLeft1ED
,
*
m_pRight1ED
);
Set
Ruby
Text
(
nPos
++
,
*
m_pLeft2ED
,
*
m_pRight2ED
);
Set
Ruby
Text
(
nPos
++
,
*
m_pLeft3ED
,
*
m_pRight3ED
);
Set
Ruby
Text
(
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
();
Get
Ruby
Text
();
//reset all edit fields - SaveValue is called
ScrollHdl_Impl
(
m_pScrollSB
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment