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
2a57ea7a
Kaydet (Commit)
2a57ea7a
authored
Tem 27, 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: I723d7c187ec186ccc68f061ba2357712a5f31869
üst
69a4c662
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
13 deletions
+12
-13
baside2.cxx
basctl/source/basicide/baside2.cxx
+1
-2
textdata.hxx
include/vcl/textdata.hxx
+5
-5
mmaddressblockpage.cxx
sw/source/ui/dbui/mmaddressblockpage.cxx
+2
-2
textdoc.cxx
vcl/source/edit/textdoc.cxx
+1
-1
texteng.cxx
vcl/source/edit/texteng.cxx
+3
-3
No files found.
basctl/source/basicide/baside2.cxx
Dosyayı görüntüle @
2a57ea7a
...
@@ -703,8 +703,7 @@ void ModulWindow::BasicAddWatch()
...
@@ -703,8 +703,7 @@ void ModulWindow::BasicAddWatch()
if
(
!
aWord
.
isEmpty
()
)
if
(
!
aWord
.
isEmpty
()
)
{
{
TextSelection
aSel
(
aWordStart
);
TextSelection
aSel
(
aWordStart
);
sal_uInt16
&
rIndex
=
aSel
.
GetEnd
().
GetIndex
();
aSel
.
GetEnd
().
GetIndex
()
+=
aWord
.
getLength
();
rIndex
=
rIndex
+
aWord
.
getLength
();
GetEditView
()
->
SetSelection
(
aSel
);
GetEditView
()
->
SetSelection
(
aSel
);
bAdd
=
true
;
bAdd
=
true
;
}
}
...
...
include/vcl/textdata.hxx
Dosyayı görüntüle @
2a57ea7a
...
@@ -31,17 +31,17 @@ class TextPaM
...
@@ -31,17 +31,17 @@ class TextPaM
{
{
private
:
private
:
sal_uLong
mnPara
;
sal_uLong
mnPara
;
sal_
uInt16
mnIndex
;
sal_
Int32
mnIndex
;
public
:
public
:
TextPaM
()
{
mnPara
=
0
,
mnIndex
=
0
;
}
TextPaM
()
:
mnPara
(
0
),
mnIndex
(
0
)
{
}
TextPaM
(
sal_uLong
nPara
,
sal_
uInt16
nIndex
)
{
mnPara
=
nPara
,
mnIndex
=
nIndex
;
}
TextPaM
(
sal_uLong
nPara
,
sal_
Int32
nIndex
)
:
mnPara
(
nPara
),
mnIndex
(
nIndex
)
{
}
sal_uLong
GetPara
()
const
{
return
mnPara
;
}
sal_uLong
GetPara
()
const
{
return
mnPara
;
}
sal_uLong
&
GetPara
()
{
return
mnPara
;
}
sal_uLong
&
GetPara
()
{
return
mnPara
;
}
sal_
uInt16
GetIndex
()
const
{
return
mnIndex
;
}
sal_
Int32
GetIndex
()
const
{
return
mnIndex
;
}
sal_
uInt16
&
GetIndex
()
{
return
mnIndex
;
}
sal_
Int32
&
GetIndex
()
{
return
mnIndex
;
}
inline
bool
operator
==
(
const
TextPaM
&
rPaM
)
const
;
inline
bool
operator
==
(
const
TextPaM
&
rPaM
)
const
;
inline
bool
operator
!=
(
const
TextPaM
&
rPaM
)
const
;
inline
bool
operator
!=
(
const
TextPaM
&
rPaM
)
const
;
...
...
sw/source/ui/dbui/mmaddressblockpage.cxx
Dosyayı görüntüle @
2a57ea7a
...
@@ -1443,7 +1443,7 @@ void AddressMultiLineEdit::InsertNewEntry( const OUString& rStr )
...
@@ -1443,7 +1443,7 @@ void AddressMultiLineEdit::InsertNewEntry( const OUString& rStr )
ExtTextView
*
pTextView
=
GetTextView
();
ExtTextView
*
pTextView
=
GetTextView
();
const
TextSelection
&
rSelection
=
pTextView
->
GetSelection
();
const
TextSelection
&
rSelection
=
pTextView
->
GetSelection
();
sal_uLong
nPara
=
rSelection
.
GetStart
().
GetPara
();
sal_uLong
nPara
=
rSelection
.
GetStart
().
GetPara
();
sal_
uInt16
nIndex
=
rSelection
.
GetEnd
().
GetIndex
();
sal_
Int32
nIndex
=
rSelection
.
GetEnd
().
GetIndex
();
ExtTextEngine
*
pTextEngine
=
GetTextEngine
();
ExtTextEngine
*
pTextEngine
=
GetTextEngine
();
const
TextCharAttrib
*
pAttrib
;
const
TextCharAttrib
*
pAttrib
;
if
(
0
!=
(
pAttrib
=
pTextEngine
->
FindCharAttrib
(
rSelection
.
GetStart
(),
TEXTATTR_PROTECTED
)))
if
(
0
!=
(
pAttrib
=
pTextEngine
->
FindCharAttrib
(
rSelection
.
GetStart
(),
TEXTATTR_PROTECTED
)))
...
@@ -1452,7 +1452,7 @@ void AddressMultiLineEdit::InsertNewEntry( const OUString& rStr )
...
@@ -1452,7 +1452,7 @@ void AddressMultiLineEdit::InsertNewEntry( const OUString& rStr )
// select the new entry
// select the new entry
pAttrib
=
pTextEngine
->
FindCharAttrib
(
TextPaM
(
nPara
,
nIndex
),
TEXTATTR_PROTECTED
);
pAttrib
=
pTextEngine
->
FindCharAttrib
(
TextPaM
(
nPara
,
nIndex
),
TEXTATTR_PROTECTED
);
const
sal_
uInt16
nEnd
=
pAttrib
?
pAttrib
->
GetEnd
()
:
nIndex
;
const
sal_
Int32
nEnd
=
pAttrib
?
pAttrib
->
GetEnd
()
:
nIndex
;
TextSelection
aEntrySel
(
TextPaM
(
nPara
,
nIndex
),
TextPaM
(
nPara
,
nEnd
));
TextSelection
aEntrySel
(
TextPaM
(
nPara
,
nIndex
),
TextPaM
(
nPara
,
nEnd
));
pTextView
->
SetSelection
(
aEntrySel
);
pTextView
->
SetSelection
(
aEntrySel
);
Invalidate
();
Invalidate
();
...
...
vcl/source/edit/textdoc.cxx
Dosyayı görüntüle @
2a57ea7a
...
@@ -474,7 +474,7 @@ sal_uLong TextDoc::GetTextLen( const sal_Unicode* pSep, const TextSelection* pSe
...
@@ -474,7 +474,7 @@ sal_uLong TextDoc::GetTextLen( const sal_Unicode* pSep, const TextSelection* pSe
{
{
TextNode
*
pNode
=
maTextNodes
[
nNode
];
TextNode
*
pNode
=
maTextNodes
[
nNode
];
sal_
uInt16
nS
=
0
;
sal_
Int32
nS
=
0
;
sal_Int32
nE
=
pNode
->
GetText
().
getLength
();
sal_Int32
nE
=
pNode
->
GetText
().
getLength
();
if
(
pSel
&&
(
nNode
==
pSel
->
GetStart
().
GetPara
()
)
)
if
(
pSel
&&
(
nNode
==
pSel
->
GetStart
().
GetPara
()
)
)
nS
=
pSel
->
GetStart
().
GetIndex
();
nS
=
pSel
->
GetStart
().
GetIndex
();
...
...
vcl/source/edit/texteng.cxx
Dosyayı görüntüle @
2a57ea7a
...
@@ -490,8 +490,8 @@ void TextEngine::ImpRemoveChars( const TextPaM& rPaM, sal_uInt16 nChars, SfxUndo
...
@@ -490,8 +490,8 @@ void TextEngine::ImpRemoveChars( const TextPaM& rPaM, sal_uInt16 nChars, SfxUndo
OUString
aStr
(
pNode
->
GetText
().
copy
(
rPaM
.
GetIndex
(),
nChars
)
);
OUString
aStr
(
pNode
->
GetText
().
copy
(
rPaM
.
GetIndex
(),
nChars
)
);
// check if attributes are being deleted or changed
// check if attributes are being deleted or changed
sal_uInt16
nStart
=
rPaM
.
GetIndex
();
const
sal_Int32
nStart
=
rPaM
.
GetIndex
();
sal_uInt16
nEnd
=
nStart
+
nChars
;
const
sal_Int32
nEnd
=
nStart
+
nChars
;
for
(
sal_uInt16
nAttr
=
pNode
->
GetCharAttribs
().
Count
();
nAttr
;
)
for
(
sal_uInt16
nAttr
=
pNode
->
GetCharAttribs
().
Count
();
nAttr
;
)
{
{
TextCharAttrib
&
rAttr
=
pNode
->
GetCharAttribs
().
GetAttrib
(
--
nAttr
);
TextCharAttrib
&
rAttr
=
pNode
->
GetCharAttribs
().
GetAttrib
(
--
nAttr
);
...
@@ -2542,7 +2542,7 @@ bool TextEngine::Write( SvStream& rOutput, const TextSelection* pSel, bool bHTML
...
@@ -2542,7 +2542,7 @@ bool TextEngine::Write( SvStream& rOutput, const TextSelection* pSel, bool bHTML
{
{
TextNode
*
pNode
=
mpDoc
->
GetNodes
()[
nPara
];
TextNode
*
pNode
=
mpDoc
->
GetNodes
()[
nPara
];
sal_
uInt16
nStartPos
=
0
;
sal_
Int32
nStartPos
=
0
;
sal_Int32
nEndPos
=
pNode
->
GetText
().
getLength
();
sal_Int32
nEndPos
=
pNode
->
GetText
().
getLength
();
if
(
nPara
==
aSel
.
GetStart
().
GetPara
()
)
if
(
nPara
==
aSel
.
GetStart
().
GetPara
()
)
nStartPos
=
aSel
.
GetStart
().
GetIndex
();
nStartPos
=
aSel
.
GetStart
().
GetIndex
();
...
...
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