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
2b81f3c2
Kaydet (Commit)
2b81f3c2
authored
Haz 01, 2014
tarafından
Matteo Casalin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sal_uInt16 to more proper types + minor optimizations
Change-Id: I8873a1ec910024b6fc25490891dc2e2c8d20d5d1
üst
b101ebff
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
9 deletions
+8
-9
unocrsrhelper.cxx
sw/source/core/unocore/unocrsrhelper.cxx
+8
-9
No files found.
sw/source/core/unocore/unocrsrhelper.cxx
Dosyayı görüntüle @
2b81f3c2
...
@@ -20,6 +20,7 @@
...
@@ -20,6 +20,7 @@
#include <unocrsrhelper.hxx>
#include <unocrsrhelper.hxx>
#include <map>
#include <map>
#include <algorithm>
#include <com/sun/star/beans/PropertyState.hpp>
#include <com/sun/star/beans/PropertyState.hpp>
#include <com/sun/star/embed/ElementModes.hpp>
#include <com/sun/star/embed/ElementModes.hpp>
...
@@ -667,13 +668,11 @@ bool getCrsrPropertyValue(const SfxItemPropertySimpleEntry& rEntry
...
@@ -667,13 +668,11 @@ bool getCrsrPropertyValue(const SfxItemPropertySimpleEntry& rEntry
if
(
rPam
.
GetNode
(
true
)
==
rPam
.
GetNode
(
false
)
if
(
rPam
.
GetNode
(
true
)
==
rPam
.
GetNode
(
false
)
&&
pTxtNode
&&
pTxtNode
->
GetpSwpHints
())
&&
pTxtNode
&&
pTxtNode
->
GetpSwpHints
())
{
{
sal_
uInt16
nPaMStart
=
rPam
.
GetPoint
()
->
nContent
.
GetIndex
();
sal_
Int32
nPaMStart
=
rPam
.
GetPoint
()
->
nContent
.
GetIndex
();
sal_
uInt16
nPaMEnd
=
rPam
.
GetMark
()
?
rPam
.
GetMark
()
->
nContent
.
GetIndex
()
:
nPaMStart
;
sal_
Int32
nPaMEnd
=
rPam
.
GetMark
()
?
rPam
.
GetMark
()
->
nContent
.
GetIndex
()
:
nPaMStart
;
if
(
nPaMStart
>
nPaMEnd
)
if
(
nPaMStart
>
nPaMEnd
)
{
{
sal_uInt16
nTmp
=
nPaMStart
;
std
::
swap
(
nPaMStart
,
nPaMEnd
);
nPaMStart
=
nPaMEnd
;
nPaMEnd
=
nTmp
;
}
}
Sequence
<
OUString
>
aCharStyles
;
Sequence
<
OUString
>
aCharStyles
;
SwpHints
*
pHints
=
pTxtNode
->
GetpSwpHints
();
SwpHints
*
pHints
=
pTxtNode
->
GetpSwpHints
();
...
@@ -682,8 +681,8 @@ bool getCrsrPropertyValue(const SfxItemPropertySimpleEntry& rEntry
...
@@ -682,8 +681,8 @@ bool getCrsrPropertyValue(const SfxItemPropertySimpleEntry& rEntry
SwTxtAttr
*
pAttr
=
pHints
->
GetStart
(
nAttr
);
SwTxtAttr
*
pAttr
=
pHints
->
GetStart
(
nAttr
);
if
(
pAttr
->
Which
()
!=
RES_TXTATR_CHARFMT
)
if
(
pAttr
->
Which
()
!=
RES_TXTATR_CHARFMT
)
continue
;
continue
;
sal_uInt16
nAttrStart
=
*
pAttr
->
GetStart
();
const
sal_Int32
nAttrStart
=
*
pAttr
->
GetStart
();
sal_uInt16
nAttrEnd
=
*
pAttr
->
GetEnd
();
const
sal_Int32
nAttrEnd
=
*
pAttr
->
GetEnd
();
//check if the attribute touches the selection
//check if the attribute touches the selection
if
(
(
nAttrEnd
>
nPaMStart
&&
nAttrStart
<
nPaMEnd
)
||
if
(
(
nAttrEnd
>
nPaMStart
&&
nAttrStart
<
nPaMEnd
)
||
(
!
nAttrStart
&&
!
nAttrEnd
&&
!
nPaMStart
&&
!
nPaMEnd
)
)
(
!
nAttrStart
&&
!
nAttrEnd
&&
!
nPaMStart
&&
!
nPaMEnd
)
)
...
@@ -787,9 +786,9 @@ void setNumberingProperty(const Any& rValue, SwPaM& rPam)
...
@@ -787,9 +786,9 @@ void setNumberingProperty(const Any& rValue, SwPaM& rPam)
{
{
// get CharStyle and set the rule
// get CharStyle and set the rule
sal_uInt16
nChCount
=
pDoc
->
GetCharFmts
()
->
size
();
const
size_t
nChCount
=
pDoc
->
GetCharFmts
()
->
size
();
SwCharFmt
*
pCharFmt
=
0
;
SwCharFmt
*
pCharFmt
=
0
;
for
(
s
al_uInt16
nCharFmt
=
0
;
nCharFmt
<
nChCount
;
nCharFmt
++
)
for
(
s
ize_t
nCharFmt
=
0
;
nCharFmt
<
nChCount
;
++
nCharFmt
)
{
{
SwCharFmt
&
rChFmt
=
*
((
*
(
pDoc
->
GetCharFmts
()))[
nCharFmt
]);
SwCharFmt
&
rChFmt
=
*
((
*
(
pDoc
->
GetCharFmts
()))[
nCharFmt
]);
if
(
rChFmt
.
GetName
()
==
pNewCharStyles
[
i
])
if
(
rChFmt
.
GetName
()
==
pNewCharStyles
[
i
])
...
...
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