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
cbf3bdab
Kaydet (Commit)
cbf3bdab
authored
Ock 05, 2015
tarafından
Matteo Casalin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sal_uInt16 to sal_Int32
Change-Id: I2ab0eab053238b3c6db29b25a514e2b1b2ecd923
üst
ea404ac3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
22 deletions
+10
-22
accpara.cxx
sw/source/core/access/accpara.cxx
+6
-18
accportions.cxx
sw/source/core/access/accportions.cxx
+2
-2
accportions.hxx
sw/source/core/access/accportions.hxx
+2
-2
No files found.
sw/source/core/access/accpara.cxx
Dosyayı görüntüle @
cbf3bdab
...
@@ -1375,20 +1375,14 @@ com::sun::star::uno::Sequence< ::com::sun::star::style::TabStop > SwAccessiblePa
...
@@ -1375,20 +1375,14 @@ com::sun::star::uno::Sequence< ::com::sun::star::style::TabStop > SwAccessiblePa
SwSpecialPos
aSpecialPos
;
SwSpecialPos
aSpecialPos
;
SwTxtNode
*
pNode
=
const_cast
<
SwTxtNode
*>
(
GetTxtNode
()
);
SwTxtNode
*
pNode
=
const_cast
<
SwTxtNode
*>
(
GetTxtNode
()
);
sal_uInt16
nPos
=
0
;
/* #i12332# FillSpecialPos does not accept nIndex ==
/* #i12332# FillSpecialPos does not accept nIndex ==
GetString().getLength(). In that case nPos is set to the
GetString().getLength(). In that case nPos is set to the
length of the string in the core. This way GetCharRect
length of the string in the core. This way GetCharRect
returns the rectangle for a cursor at the end of the
returns the rectangle for a cursor at the end of the
paragraph. */
paragraph. */
if
(
bBehindText
)
const
sal_Int32
nPos
=
bBehindText
{
?
pNode
->
GetTxt
().
getLength
()
nPos
=
pNode
->
GetTxt
().
getLength
();
:
GetPortionData
().
FillSpecialPos
(
nIndex
,
aSpecialPos
,
aMoveState
.
pSpecialPos
);
}
else
nPos
=
GetPortionData
().
FillSpecialPos
(
nIndex
,
aSpecialPos
,
aMoveState
.
pSpecialPos
);
// call GetCharRect
// call GetCharRect
SwRect
aCoreRect
;
SwRect
aCoreRect
;
...
@@ -2425,20 +2419,14 @@ awt::Rectangle SwAccessibleParagraph::getCharacterBounds(
...
@@ -2425,20 +2419,14 @@ awt::Rectangle SwAccessibleParagraph::getCharacterBounds(
SwSpecialPos
aSpecialPos
;
SwSpecialPos
aSpecialPos
;
SwTxtNode
*
pNode
=
const_cast
<
SwTxtNode
*>
(
GetTxtNode
()
);
SwTxtNode
*
pNode
=
const_cast
<
SwTxtNode
*>
(
GetTxtNode
()
);
sal_uInt16
nPos
=
0
;
/** #i12332# FillSpecialPos does not accept nIndex ==
/** #i12332# FillSpecialPos does not accept nIndex ==
GetString().getLength(). In that case nPos is set to the
GetString().getLength(). In that case nPos is set to the
length of the string in the core. This way GetCharRect
length of the string in the core. This way GetCharRect
returns the rectangle for a cursor at the end of the
returns the rectangle for a cursor at the end of the
paragraph. */
paragraph. */
if
(
bBehindText
)
const
sal_Int32
nPos
=
bBehindText
{
?
pNode
->
GetTxt
().
getLength
()
nPos
=
pNode
->
GetTxt
().
getLength
();
:
GetPortionData
().
FillSpecialPos
(
nIndex
,
aSpecialPos
,
aMoveState
.
pSpecialPos
);
}
else
nPos
=
GetPortionData
().
FillSpecialPos
(
nIndex
,
aSpecialPos
,
aMoveState
.
pSpecialPos
);
// call GetCharRect
// call GetCharRect
SwRect
aCoreRect
;
SwRect
aCoreRect
;
...
...
sw/source/core/access/accportions.cxx
Dosyayı görüntüle @
cbf3bdab
...
@@ -582,7 +582,7 @@ sal_Int32 SwAccessiblePortionData::GetAccessiblePosition( sal_Int32 nPos ) const
...
@@ -582,7 +582,7 @@ sal_Int32 SwAccessiblePortionData::GetAccessiblePosition( sal_Int32 nPos ) const
return
nRet
;
return
nRet
;
}
}
sal_
uInt16
SwAccessiblePortionData
::
FillSpecialPos
(
sal_
Int32
SwAccessiblePortionData
::
FillSpecialPos
(
sal_Int32
nPos
,
sal_Int32
nPos
,
SwSpecialPos
&
rPos
,
SwSpecialPos
&
rPos
,
SwSpecialPos
*&
rpPos
)
const
SwSpecialPos
*&
rpPos
)
const
...
@@ -674,7 +674,7 @@ sal_uInt16 SwAccessiblePortionData::FillSpecialPos(
...
@@ -674,7 +674,7 @@ sal_uInt16 SwAccessiblePortionData::FillSpecialPos(
rPos
.
nLineOfst
=
nLineOffset
;
rPos
.
nLineOfst
=
nLineOffset
;
}
}
return
static_cast
<
sal_uInt16
>
(
nModelPos
)
;
return
nModelPos
;
}
}
bool
SwAccessiblePortionData
::
FillBoundaryIFDateField
(
com
::
sun
::
star
::
i18n
::
Boundary
&
rBound
,
const
sal_Int32
nPos
)
bool
SwAccessiblePortionData
::
FillBoundaryIFDateField
(
com
::
sun
::
star
::
i18n
::
Boundary
&
rBound
,
const
sal_Int32
nPos
)
...
...
sw/source/core/access/accportions.hxx
Dosyayı görüntüle @
cbf3bdab
...
@@ -147,9 +147,9 @@ public:
...
@@ -147,9 +147,9 @@ public:
/// fill a SwSpecialPos structure, suitable for calling
/// fill a SwSpecialPos structure, suitable for calling
/// SwTxtFrm->GetCharRect
/// SwTxtFrm->GetCharRect
/// Returns the core position, and fills
thr
rpPos either with NULL or
/// Returns the core position, and fills rpPos either with NULL or
/// with the &rPos, after putting the appropriate data into it.
/// with the &rPos, after putting the appropriate data into it.
sal_
uInt16
FillSpecialPos
(
sal_Int32
nPos
,
sal_
Int32
FillSpecialPos
(
sal_Int32
nPos
,
SwSpecialPos
&
rPos
,
SwSpecialPos
&
rPos
,
SwSpecialPos
*&
rpPos
)
const
;
SwSpecialPos
*&
rpPos
)
const
;
...
...
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