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
39f5e66e
Kaydet (Commit)
39f5e66e
authored
May 16, 2012
tarafından
Noel Grandin
Kaydeden (comit)
Michael Stahl
May 24, 2012
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Convert SV_DECL_PTRARR_DEL(SwRubyList) to boost::ptr_vector
Change-Id: Ib983bf7517a35392c0468cb763de67d5b45f4673
üst
f2e52807
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
15 deletions
+13
-15
rubylist.hxx
sw/inc/rubylist.hxx
+2
-2
docruby.cxx
sw/source/core/doc/docruby.cxx
+8
-10
unotxvw.cxx
sw/source/ui/uno/unotxvw.cxx
+3
-3
No files found.
sw/inc/rubylist.hxx
Dosyayı görüntüle @
39f5e66e
...
@@ -31,6 +31,7 @@
...
@@ -31,6 +31,7 @@
#include <svl/svarray.hxx>
#include <svl/svarray.hxx>
#include <swtypes.hxx>
#include <swtypes.hxx>
#include <fmtruby.hxx>
#include <fmtruby.hxx>
#include <boost/ptr_container/ptr_vector.hpp>
class
SwRubyListEntry
class
SwRubyListEntry
{
{
...
@@ -48,8 +49,7 @@ public:
...
@@ -48,8 +49,7 @@ public:
void
SetRubyAttr
(
const
SwFmtRuby
&
rAttr
)
{
aRubyAttr
=
rAttr
;
}
void
SetRubyAttr
(
const
SwFmtRuby
&
rAttr
)
{
aRubyAttr
=
rAttr
;
}
};
};
typedef
SwRubyListEntry
*
SwRubyListEntryPtr
;
class
SwRubyList
:
public
boost
::
ptr_vector
<
SwRubyListEntry
>
{};
SV_DECL_PTRARR_DEL
(
SwRubyList
,
SwRubyListEntryPtr
,
0
)
#endif //_RUBYLIST_HXX
#endif //_RUBYLIST_HXX
...
...
sw/source/core/doc/docruby.cxx
Dosyayı görüntüle @
39f5e66e
...
@@ -47,8 +47,6 @@
...
@@ -47,8 +47,6 @@
#include <breakit.hxx>
#include <breakit.hxx>
#include <crsskip.hxx>
#include <crsskip.hxx>
SV_IMPL_PTRARR
(
SwRubyList
,
SwRubyListEntryPtr
)
using
namespace
::
com
::
sun
::
star
::
i18n
;
using
namespace
::
com
::
sun
::
star
::
i18n
;
...
@@ -82,7 +80,7 @@ sal_uInt16 SwDoc::FillRubyList( const SwPaM& rPam, SwRubyList& rList,
...
@@ -82,7 +80,7 @@ sal_uInt16 SwDoc::FillRubyList( const SwPaM& rPam, SwRubyList& rList,
}
}
if
(
_SelectNextRubyChars
(
aPam
,
*
pNew
,
nMode
))
if
(
_SelectNextRubyChars
(
aPam
,
*
pNew
,
nMode
))
{
{
rList
.
Insert
(
pNew
,
rList
.
Count
()
);
rList
.
push_back
(
pNew
);
aPam
.
DeleteMark
();
aPam
.
DeleteMark
();
}
}
else
else
...
@@ -97,12 +95,12 @@ sal_uInt16 SwDoc::FillRubyList( const SwPaM& rPam, SwRubyList& rList,
...
@@ -97,12 +95,12 @@ sal_uInt16 SwDoc::FillRubyList( const SwPaM& rPam, SwRubyList& rList,
else
else
break
;
break
;
}
}
}
while
(
30
>
rList
.
Count
()
&&
*
aPam
.
GetPoint
()
<
*
pEnd
);
}
while
(
30
>
rList
.
size
()
&&
*
aPam
.
GetPoint
()
<
*
pEnd
);
}
}
}
while
(
30
>
rList
.
Count
()
&&
}
while
(
30
>
rList
.
size
()
&&
(
_pStartCrsr
=
(
SwPaM
*
)
_pStartCrsr
->
GetNext
())
!=
__pStartCrsr
);
(
_pStartCrsr
=
(
SwPaM
*
)
_pStartCrsr
->
GetNext
())
!=
__pStartCrsr
);
return
rList
.
Count
();
return
rList
.
size
();
}
}
sal_uInt16
SwDoc
::
SetRubyList
(
const
SwPaM
&
rPam
,
const
SwRubyList
&
rList
,
sal_uInt16
SwDoc
::
SetRubyList
(
const
SwPaM
&
rPam
,
const
SwRubyList
&
rList
,
...
@@ -135,7 +133,7 @@ sal_uInt16 SwDoc::SetRubyList( const SwPaM& rPam, const SwRubyList& rList,
...
@@ -135,7 +133,7 @@ sal_uInt16 SwDoc::SetRubyList( const SwPaM& rPam, const SwRubyList& rList,
}
}
if
(
_SelectNextRubyChars
(
aPam
,
aCheckEntry
,
nMode
))
if
(
_SelectNextRubyChars
(
aPam
,
aCheckEntry
,
nMode
))
{
{
const
SwRubyListEntry
*
pEntry
=
rList
[
nListEntry
++
];
const
SwRubyListEntry
*
pEntry
=
&
rList
[
nListEntry
++
];
if
(
aCheckEntry
.
GetRubyAttr
()
!=
pEntry
->
GetRubyAttr
()
)
if
(
aCheckEntry
.
GetRubyAttr
()
!=
pEntry
->
GetRubyAttr
()
)
{
{
// set/reset the attribut
// set/reset the attribut
...
@@ -167,7 +165,7 @@ sal_uInt16 SwDoc::SetRubyList( const SwPaM& rPam, const SwRubyList& rList,
...
@@ -167,7 +165,7 @@ sal_uInt16 SwDoc::SetRubyList( const SwPaM& rPam, const SwRubyList& rList,
}
}
else
else
{
{
const
SwRubyListEntry
*
pEntry
=
rList
[
nListEntry
++
];
const
SwRubyListEntry
*
pEntry
=
&
rList
[
nListEntry
++
];
// set/reset the attribut
// set/reset the attribut
if
(
pEntry
->
GetRubyAttr
().
GetText
().
Len
()
&&
if
(
pEntry
->
GetRubyAttr
().
GetText
().
Len
()
&&
...
@@ -184,9 +182,9 @@ sal_uInt16 SwDoc::SetRubyList( const SwPaM& rPam, const SwRubyList& rList,
...
@@ -184,9 +182,9 @@ sal_uInt16 SwDoc::SetRubyList( const SwPaM& rPam, const SwRubyList& rList,
aPam
.
DeleteMark
();
aPam
.
DeleteMark
();
}
}
}
}
}
while
(
nListEntry
<
rList
.
Count
()
&&
*
aPam
.
GetPoint
()
<
*
pEnd
);
}
while
(
nListEntry
<
rList
.
size
()
&&
*
aPam
.
GetPoint
()
<
*
pEnd
);
}
}
}
while
(
30
>
rList
.
Count
()
&&
}
while
(
30
>
rList
.
size
()
&&
(
_pStartCrsr
=
(
SwPaM
*
)
_pStartCrsr
->
GetNext
())
!=
__pStartCrsr
);
(
_pStartCrsr
=
(
SwPaM
*
)
_pStartCrsr
->
GetNext
())
!=
__pStartCrsr
);
GetIDocumentUndoRedo
().
EndUndo
(
UNDO_SETRUBYATTR
,
NULL
);
GetIDocumentUndoRedo
().
EndUndo
(
UNDO_SETRUBYATTR
,
NULL
);
...
...
sw/source/ui/uno/unotxvw.cxx
Dosyayı görüntüle @
39f5e66e
...
@@ -720,7 +720,7 @@ Sequence< Sequence< PropertyValue > > SwXTextView::getRubyList( sal_Bool /*bAuto
...
@@ -720,7 +720,7 @@ Sequence< Sequence< PropertyValue > > SwXTextView::getRubyList( sal_Bool /*bAuto
String
aString
;
String
aString
;
for
(
sal_uInt16
n
=
0
;
n
<
nCount
;
n
++
)
for
(
sal_uInt16
n
=
0
;
n
<
nCount
;
n
++
)
{
{
const
SwRubyListEntry
Ptr
pEntry
=
aList
[
n
];
const
SwRubyListEntry
*
pEntry
=
&
aList
[
n
];
const
String
&
rEntryText
=
pEntry
->
GetText
();
const
String
&
rEntryText
=
pEntry
->
GetText
();
const
SwFmtRuby
&
rAttr
=
pEntry
->
GetRubyAttr
();
const
SwFmtRuby
&
rAttr
=
pEntry
->
GetRubyAttr
();
...
@@ -764,7 +764,7 @@ void SAL_CALL SwXTextView::setRubyList(
...
@@ -764,7 +764,7 @@ void SAL_CALL SwXTextView::setRubyList(
const
Sequence
<
PropertyValue
>*
pRubyList
=
rRubyList
.
getConstArray
();
const
Sequence
<
PropertyValue
>*
pRubyList
=
rRubyList
.
getConstArray
();
for
(
sal_Int32
nPos
=
0
;
nPos
<
rRubyList
.
getLength
();
nPos
++
)
for
(
sal_Int32
nPos
=
0
;
nPos
<
rRubyList
.
getLength
();
nPos
++
)
{
{
SwRubyListEntry
Ptr
pEntry
=
new
SwRubyListEntry
;
SwRubyListEntry
*
pEntry
=
new
SwRubyListEntry
;
const
PropertyValue
*
pProperties
=
pRubyList
[
nPos
].
getConstArray
();
const
PropertyValue
*
pProperties
=
pRubyList
[
nPos
].
getConstArray
();
OUString
sTmp
;
OUString
sTmp
;
for
(
sal_Int32
nProp
=
0
;
nProp
<
pRubyList
[
nPos
].
getLength
();
nProp
++
)
for
(
sal_Int32
nProp
=
0
;
nProp
<
pRubyList
[
nPos
].
getLength
();
nProp
++
)
...
@@ -810,7 +810,7 @@ void SAL_CALL SwXTextView::setRubyList(
...
@@ -810,7 +810,7 @@ void SAL_CALL SwXTextView::setRubyList(
pEntry
->
GetRubyAttr
().
SetPosition
(
bValue
?
0
:
1
);
pEntry
->
GetRubyAttr
().
SetPosition
(
bValue
?
0
:
1
);
}
}
}
}
aList
.
Insert
(
pEntry
,
(
sal_uInt16
)
nPos
);
aList
.
insert
(
aList
.
begin
()
+
nPos
,
pEntry
);
}
}
SwDoc
*
pDoc
=
m_pView
->
GetDocShell
()
->
GetDoc
();
SwDoc
*
pDoc
=
m_pView
->
GetDocShell
()
->
GetDoc
();
pDoc
->
SetRubyList
(
*
rSh
.
GetCrsr
(),
aList
,
0
);
pDoc
->
SetRubyList
(
*
rSh
.
GetCrsr
(),
aList
,
0
);
...
...
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