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
69a4c662
Kaydet (Commit)
69a4c662
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: I19785cc516daf03aee8783a23399929785d30c5f
üst
7c7124a5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
13 deletions
+13
-13
textdoc.cxx
vcl/source/edit/textdoc.cxx
+7
-7
textdoc.hxx
vcl/source/edit/textdoc.hxx
+6
-6
No files found.
vcl/source/edit/textdoc.cxx
Dosyayı görüntüle @
69a4c662
...
@@ -163,7 +163,7 @@ TextNode::TextNode( const OUString& rText ) :
...
@@ -163,7 +163,7 @@ TextNode::TextNode( const OUString& rText ) :
{
{
}
}
void
TextNode
::
ExpandAttribs
(
sal_
uInt16
nIndex
,
sal_uInt16
nNew
)
void
TextNode
::
ExpandAttribs
(
sal_
Int32
nIndex
,
sal_Int32
nNew
)
{
{
if
(
!
nNew
)
if
(
!
nNew
)
return
;
return
;
...
@@ -227,13 +227,13 @@ void TextNode::ExpandAttribs( sal_uInt16 nIndex, sal_uInt16 nNew )
...
@@ -227,13 +227,13 @@ void TextNode::ExpandAttribs( sal_uInt16 nIndex, sal_uInt16 nNew )
maCharAttribs
.
ResortAttribs
();
maCharAttribs
.
ResortAttribs
();
}
}
void
TextNode
::
CollapsAttribs
(
sal_
uInt16
nIndex
,
sal_uInt16
nDeleted
)
void
TextNode
::
CollapsAttribs
(
sal_
Int32
nIndex
,
sal_Int32
nDeleted
)
{
{
if
(
!
nDeleted
)
if
(
!
nDeleted
)
return
;
return
;
bool
bResort
=
false
;
bool
bResort
=
false
;
sal_uInt16
nEndChanges
=
nIndex
+
nDeleted
;
const
sal_Int32
nEndChanges
=
nIndex
+
nDeleted
;
for
(
sal_uInt16
nAttr
=
0
;
nAttr
<
maCharAttribs
.
Count
();
nAttr
++
)
for
(
sal_uInt16
nAttr
=
0
;
nAttr
<
maCharAttribs
.
Count
();
nAttr
++
)
{
{
...
@@ -289,25 +289,25 @@ void TextNode::CollapsAttribs( sal_uInt16 nIndex, sal_uInt16 nDeleted )
...
@@ -289,25 +289,25 @@ void TextNode::CollapsAttribs( sal_uInt16 nIndex, sal_uInt16 nDeleted )
maCharAttribs
.
ResortAttribs
();
maCharAttribs
.
ResortAttribs
();
}
}
void
TextNode
::
InsertText
(
sal_
uInt16
nPos
,
const
OUString
&
rText
)
void
TextNode
::
InsertText
(
sal_
Int32
nPos
,
const
OUString
&
rText
)
{
{
maText
=
maText
.
replaceAt
(
nPos
,
0
,
rText
);
maText
=
maText
.
replaceAt
(
nPos
,
0
,
rText
);
ExpandAttribs
(
nPos
,
rText
.
getLength
()
);
ExpandAttribs
(
nPos
,
rText
.
getLength
()
);
}
}
void
TextNode
::
InsertText
(
sal_
uInt16
nPos
,
sal_Unicode
c
)
void
TextNode
::
InsertText
(
sal_
Int32
nPos
,
sal_Unicode
c
)
{
{
maText
=
maText
.
replaceAt
(
nPos
,
0
,
OUString
(
c
)
);
maText
=
maText
.
replaceAt
(
nPos
,
0
,
OUString
(
c
)
);
ExpandAttribs
(
nPos
,
1
);
ExpandAttribs
(
nPos
,
1
);
}
}
void
TextNode
::
RemoveText
(
sal_
uInt16
nPos
,
sal_uInt16
nChars
)
void
TextNode
::
RemoveText
(
sal_
Int32
nPos
,
sal_Int32
nChars
)
{
{
maText
=
maText
.
replaceAt
(
nPos
,
nChars
,
""
);
maText
=
maText
.
replaceAt
(
nPos
,
nChars
,
""
);
CollapsAttribs
(
nPos
,
nChars
);
CollapsAttribs
(
nPos
,
nChars
);
}
}
TextNode
*
TextNode
::
Split
(
sal_
uInt16
nPos
,
bool
bKeepEndingAttribs
)
TextNode
*
TextNode
::
Split
(
sal_
Int32
nPos
,
bool
bKeepEndingAttribs
)
{
{
OUString
aNewText
;
OUString
aNewText
;
if
(
nPos
<
maText
.
getLength
()
)
if
(
nPos
<
maText
.
getLength
()
)
...
...
vcl/source/edit/textdoc.hxx
Dosyayı görüntüle @
69a4c662
...
@@ -69,8 +69,8 @@ private:
...
@@ -69,8 +69,8 @@ private:
TextNode
(
const
TextNode
&
)
{;}
TextNode
(
const
TextNode
&
)
{;}
protected
:
protected
:
void
ExpandAttribs
(
sal_
uInt16
nIndex
,
sal_uInt16
nNewChars
);
void
ExpandAttribs
(
sal_
Int32
nIndex
,
sal_Int32
nNewChars
);
void
CollapsAttribs
(
sal_
uInt16
nIndex
,
sal_uInt16
nDelChars
);
void
CollapsAttribs
(
sal_
Int32
nIndex
,
sal_Int32
nDelChars
);
public
:
public
:
TextNode
(
const
OUString
&
rText
);
TextNode
(
const
OUString
&
rText
);
...
@@ -81,11 +81,11 @@ public:
...
@@ -81,11 +81,11 @@ public:
const
TextCharAttribList
&
GetCharAttribs
()
const
{
return
maCharAttribs
;
}
const
TextCharAttribList
&
GetCharAttribs
()
const
{
return
maCharAttribs
;
}
TextCharAttribList
&
GetCharAttribs
()
{
return
maCharAttribs
;
}
TextCharAttribList
&
GetCharAttribs
()
{
return
maCharAttribs
;
}
void
InsertText
(
sal_
uInt16
nPos
,
const
OUString
&
rText
);
void
InsertText
(
sal_
Int32
nPos
,
const
OUString
&
rText
);
void
InsertText
(
sal_
uInt16
nPos
,
sal_Unicode
c
);
void
InsertText
(
sal_
Int32
nPos
,
sal_Unicode
c
);
void
RemoveText
(
sal_
uInt16
nPos
,
sal_uInt16
nChars
);
void
RemoveText
(
sal_
Int32
nPos
,
sal_Int32
nChars
);
TextNode
*
Split
(
sal_
uInt16
nPos
,
bool
bKeepEndigAttribs
);
TextNode
*
Split
(
sal_
Int32
nPos
,
bool
bKeepEndigAttribs
);
void
Append
(
const
TextNode
&
rNode
);
void
Append
(
const
TextNode
&
rNode
);
};
};
...
...
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