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
59ceaff2
Kaydet (Commit)
59ceaff2
authored
May 26, 2016
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
svx: need a UNO interface to use css::uno::Reference
Change-Id: I16a144ed410f5ef3f49ec4febf199aa2db96bdaa
üst
598a8869
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
24 deletions
+18
-24
rubydialog.hxx
include/svx/rubydialog.hxx
+2
-8
rubydialog.cxx
svx/source/dialog/rubydialog.cxx
+16
-16
No files found.
include/svx/rubydialog.hxx
Dosyayı görüntüle @
59ceaff2
...
...
@@ -29,14 +29,8 @@
#include <vcl/button.hxx>
#include <vcl/edit.hxx>
#include <vcl/scrbar.hxx>
#include <com/sun/star/uno/Reference.h>
#include <svx/svxdllapi.h>
namespace
com
{
namespace
sun
{
namespace
star
{
namespace
view
{
class
XSelectionChangeListener
;
}
}}}
#include <rtl/ref.hxx>
class
SvxRubyDialog
;
...
...
@@ -166,7 +160,7 @@ public:
virtual
void
Deactivate
()
override
;
private
:
css
::
uno
::
Reference
<
SvxRubyData_Impl
>
pImpl
;
rtl
::
Reference
<
SvxRubyData_Impl
>
m_
pImpl
;
};
#endif // INCLUDED_SVX_RUBYDIALOG_HXX
...
...
svx/source/dialog/rubydialog.cxx
Dosyayı görüntüle @
59ceaff2
...
...
@@ -207,7 +207,7 @@ SvxRubyDialog::SvxRubyDialog(SfxBindings* pBind, SfxChildWindow* pCW, vcl::Windo
,
nCurrentEdit
(
0
)
,
bModified
(
false
)
,
pBindings
(
pBind
)
,
pImpl
(
new
SvxRubyData_Impl
)
,
m_
pImpl
(
new
SvxRubyData_Impl
)
{
get
(
m_pLeftFT
,
"basetextft"
);
get
(
m_pRightFT
,
"rubytextft"
);
...
...
@@ -279,7 +279,7 @@ void SvxRubyDialog::dispose()
{
ClearCharStyleList
();
EventObject
aEvent
;
pImpl
->
disposing
(
aEvent
);
m_
pImpl
->
disposing
(
aEvent
);
m_pLeftFT
.
clear
();
m_pRightFT
.
clear
();
m_pLeft1ED
.
clear
();
...
...
@@ -333,16 +333,16 @@ void SvxRubyDialog::Activate()
//get selection from current view frame
SfxViewFrame
*
pCurFrm
=
SfxViewFrame
::
Current
();
Reference
<
XController
>
xCtrl
=
pCurFrm
->
GetFrame
().
GetController
();
pImpl
->
SetController
(
xCtrl
);
if
(
pImpl
->
HasSelectionChanged
())
m_
pImpl
->
SetController
(
xCtrl
);
if
(
m_
pImpl
->
HasSelectionChanged
())
{
Reference
<
XRubySelection
>
xRubySel
=
pImpl
->
GetRubySelection
();
pImpl
->
UpdateRubyValues
();
Reference
<
XRubySelection
>
xRubySel
=
m_
pImpl
->
GetRubySelection
();
m_
pImpl
->
UpdateRubyValues
();
EnableControls
(
xRubySel
.
is
());
if
(
xRubySel
.
is
())
{
Reference
<
XModel
>
xModel
=
pImpl
->
GetModel
();
Reference
<
XModel
>
xModel
=
m_
pImpl
->
GetModel
();
const
OUString
sCharStyleSelect
=
m_pCharStyleLB
->
GetSelectEntry
();
ClearCharStyleList
();
Reference
<
XStyleFamiliesSupplier
>
xSupplier
(
xModel
,
UNO_QUERY
);
...
...
@@ -412,7 +412,7 @@ void SvxRubyDialog::Deactivate()
void
SvxRubyDialog
::
SetRubyText
(
sal_Int32
nPos
,
Edit
&
rLeft
,
Edit
&
rRight
)
{
OUString
sLeft
,
sRight
;
const
Sequence
<
PropertyValues
>&
aRubyValues
=
pImpl
->
GetRubyValues
();
const
Sequence
<
PropertyValues
>&
aRubyValues
=
m_
pImpl
->
GetRubyValues
();
bool
bEnable
=
aRubyValues
.
getLength
()
>
nPos
;
if
(
bEnable
)
{
...
...
@@ -446,7 +446,7 @@ void SvxRubyDialog::GetRubyText()
if
(
aEditArr
[
i
]
->
IsEnabled
()
&&
(
aEditArr
[
i
]
->
IsValueChangedFromSaved
()
||
aEditArr
[
i
+
1
]
->
IsValueChangedFromSaved
()))
{
Sequence
<
PropertyValues
>&
aRubyValues
=
pImpl
->
GetRubyValues
();
Sequence
<
PropertyValues
>&
aRubyValues
=
m_
pImpl
->
GetRubyValues
();
DBG_ASSERT
(
aRubyValues
.
getLength
()
>
(
i
/
2
+
nTempLastPos
),
"wrong index"
);
SetModified
(
true
);
Sequence
<
PropertyValue
>&
rProps
=
aRubyValues
.
getArray
()[
i
/
2
+
nTempLastPos
];
...
...
@@ -464,7 +464,7 @@ void SvxRubyDialog::GetRubyText()
void
SvxRubyDialog
::
Update
()
{
const
Sequence
<
PropertyValues
>&
aRubyValues
=
pImpl
->
GetRubyValues
();
const
Sequence
<
PropertyValues
>&
aRubyValues
=
m_
pImpl
->
GetRubyValues
();
sal_Int32
nLen
=
aRubyValues
.
getLength
();
m_pScrollSB
->
Enable
(
nLen
>
4
);
m_pScrollSB
->
SetRange
(
Range
(
0
,
nLen
>
4
?
nLen
-
4
:
0
));
...
...
@@ -564,7 +564,7 @@ IMPL_LINK_TYPED(SvxRubyDialog, ScrollHdl_Impl, ScrollBar*, pScroll, void)
IMPL_LINK_NOARG_TYPED
(
SvxRubyDialog
,
ApplyHdl_Impl
,
Button
*
,
void
)
{
const
Sequence
<
PropertyValues
>&
aRubyValues
=
pImpl
->
GetRubyValues
();
const
Sequence
<
PropertyValues
>&
aRubyValues
=
m_
pImpl
->
GetRubyValues
();
if
(
!
aRubyValues
.
getLength
())
{
AssertOneEntry
();
...
...
@@ -576,7 +576,7 @@ IMPL_LINK_NOARG_TYPED(SvxRubyDialog, ApplyHdl_Impl, Button*, void)
//reset all edit fields - SaveValue is called
ScrollHdl_Impl
(
m_pScrollSB
);
Reference
<
XRubySelection
>
xSelection
=
pImpl
->
GetRubySelection
();
Reference
<
XRubySelection
>
xSelection
=
m_
pImpl
->
GetRubySelection
();
if
(
IsModified
()
&&
xSelection
.
is
())
{
try
...
...
@@ -610,7 +610,7 @@ IMPL_LINK_TYPED(SvxRubyDialog, AdjustHdl_Impl, ListBox&, rBox, void)
{
AssertOneEntry
();
sal_Int16
nAdjust
=
rBox
.
GetSelectEntryPos
();
Sequence
<
PropertyValues
>&
aRubyValues
=
pImpl
->
GetRubyValues
();
Sequence
<
PropertyValues
>&
aRubyValues
=
m_
pImpl
->
GetRubyValues
();
for
(
sal_Int32
nRuby
=
0
;
nRuby
<
aRubyValues
.
getLength
();
nRuby
++
)
{
Sequence
<
PropertyValue
>
&
rProps
=
aRubyValues
.
getArray
()[
nRuby
];
...
...
@@ -629,7 +629,7 @@ IMPL_LINK_TYPED(SvxRubyDialog, PositionHdl_Impl, ListBox&, rBox, void)
{
AssertOneEntry
();
bool
bAbove
=
!
rBox
.
GetSelectEntryPos
();
Sequence
<
PropertyValues
>&
aRubyValues
=
pImpl
->
GetRubyValues
();
Sequence
<
PropertyValues
>&
aRubyValues
=
m_
pImpl
->
GetRubyValues
();
for
(
sal_Int32
nRuby
=
0
;
nRuby
<
aRubyValues
.
getLength
();
nRuby
++
)
{
Sequence
<
PropertyValue
>
&
rProps
=
aRubyValues
.
getArray
()[
nRuby
];
...
...
@@ -650,7 +650,7 @@ IMPL_LINK_NOARG_TYPED(SvxRubyDialog, CharStyleHdl_Impl, ListBox&, void)
OUString
sStyleName
;
if
(
LISTBOX_ENTRY_NOTFOUND
!=
m_pCharStyleLB
->
GetSelectEntryPos
())
sStyleName
=
*
static_cast
<
OUString
*>
(
m_pCharStyleLB
->
GetSelectEntryData
());
Sequence
<
PropertyValues
>&
aRubyValues
=
pImpl
->
GetRubyValues
();
Sequence
<
PropertyValues
>&
aRubyValues
=
m_
pImpl
->
GetRubyValues
();
for
(
sal_Int32
nRuby
=
0
;
nRuby
<
aRubyValues
.
getLength
();
nRuby
++
)
{
Sequence
<
PropertyValue
>
&
rProps
=
aRubyValues
.
getArray
()[
nRuby
];
...
...
@@ -736,7 +736,7 @@ IMPL_LINK_TYPED(SvxRubyDialog, EditJumpHdl_Impl, sal_Int32, nParam, void)
void
SvxRubyDialog
::
AssertOneEntry
()
{
pImpl
->
AssertOneEntry
();
m_
pImpl
->
AssertOneEntry
();
}
void
SvxRubyDialog
::
UpdateColors
()
...
...
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