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
d2a1da36
Kaydet (Commit)
d2a1da36
authored
Tem 08, 2011
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
ByteString->rtl::OString
üst
0d122ff1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
26 deletions
+26
-26
editdbg.cxx
editeng/source/editeng/editdbg.cxx
+25
-25
editdbg.hxx
editeng/source/editeng/editdbg.hxx
+1
-1
No files found.
editeng/source/editeng/editdbg.cxx
Dosyayı görüntüle @
d2a1da36
...
@@ -492,50 +492,50 @@ void EditDbg::ShowEditEngineData( EditEngine* pEE, sal_Bool bInfoBox )
...
@@ -492,50 +492,50 @@ void EditDbg::ShowEditEngineData( EditEngine* pEE, sal_Bool bInfoBox )
InfoBox
(
0
,
String
(
RTL_CONSTASCII_USTRINGPARAM
(
"D:
\\
DEBUG.LOG !"
)
)
).
Execute
();
InfoBox
(
0
,
String
(
RTL_CONSTASCII_USTRINGPARAM
(
"D:
\\
DEBUG.LOG !"
)
)
).
Execute
();
}
}
Byte
String
EditDbg
::
GetPortionInfo
(
ParaPortion
*
pPPortion
)
rtl
::
O
String
EditDbg
::
GetPortionInfo
(
ParaPortion
*
pPPortion
)
{
{
sal_uInt16
z
;
sal_uInt16
z
;
ByteString
aDebStr
(
"Paragraph Length = "
);
rtl
::
OStringBuffer
aDebStr
(
RTL_CONSTASCII_STRINGPARAM
(
"Paragraph Length = "
)
);
aDebStr
+=
ByteString
::
CreateFromInt32
(
pPPortion
->
GetNode
()
->
Len
()
);
aDebStr
.
append
(
static_cast
<
sal_Int32
>
(
pPPortion
->
GetNode
()
->
Len
())
);
aDebStr
+=
"
\n
Character attribute:"
;
aDebStr
.
append
(
RTL_CONSTASCII_STRINGPARAM
(
"
\n
Character attribute:"
))
;
for
(
z
=
0
;
z
<
pPPortion
->
GetNode
()
->
GetCharAttribs
().
Count
();
z
++
)
for
(
z
=
0
;
z
<
pPPortion
->
GetNode
()
->
GetCharAttribs
().
Count
();
z
++
)
{
{
EditCharAttrib
*
pAttr
=
pPPortion
->
GetNode
()
->
GetCharAttribs
().
GetAttribs
().
GetObject
(
z
);
EditCharAttrib
*
pAttr
=
pPPortion
->
GetNode
()
->
GetCharAttribs
().
GetAttribs
().
GetObject
(
z
);
aDebStr
+=
"
\n
"
;
aDebStr
.
append
(
RTL_CONSTASCII_STRINGPARAM
(
"
\n
"
))
;
aDebStr
+=
ByteString
::
CreateFromInt32
(
pAttr
->
GetItem
()
->
Which
()
);
aDebStr
.
append
(
static_cast
<
sal_Int32
>
(
pAttr
->
GetItem
()
->
Which
())
);
aDebStr
+=
'\t'
;
aDebStr
.
append
(
'\t'
)
;
aDebStr
+=
ByteString
::
CreateFromInt32
(
pAttr
->
GetStart
()
);
aDebStr
.
append
(
static_cast
<
sal_Int32
>
(
pAttr
->
GetStart
())
);
aDebStr
+=
'\t'
;
aDebStr
.
append
(
'\t'
)
;
aDebStr
+=
ByteString
::
CreateFromInt32
(
pAttr
->
GetEnd
()
);
aDebStr
.
append
(
static_cast
<
sal_Int32
>
(
pAttr
->
GetEnd
())
);
}
}
aDebStr
+=
"
\n
Text portions:"
;
aDebStr
.
append
(
RTL_CONSTASCII_STRINGPARAM
(
"
\n
Text portions:"
))
;
sal_uInt16
n
=
0
;
sal_uInt16
n
=
0
;
for
(
z
=
0
;
z
<
pPPortion
->
GetTextPortions
().
Count
();
z
++
)
for
(
z
=
0
;
z
<
pPPortion
->
GetTextPortions
().
Count
();
z
++
)
{
{
TextPortion
*
pPortion
=
pPPortion
->
GetTextPortions
().
GetObject
(
z
);
TextPortion
*
pPortion
=
pPPortion
->
GetTextPortions
().
GetObject
(
z
);
aDebStr
+=
" "
;
aDebStr
.
append
(
' '
)
;
aDebStr
+=
ByteString
::
CreateFromInt32
(
pPortion
->
GetLen
()
);
aDebStr
.
append
(
static_cast
<
sal_Int32
>
(
pPortion
->
GetLen
())
);
aDebStr
+=
"("
;
aDebStr
.
append
(
'('
)
;
aDebStr
+=
ByteString
::
CreateFromInt32
(
pPortion
->
GetSize
().
Width
()
);
aDebStr
.
append
(
static_cast
<
sal_Int32
>
(
pPortion
->
GetSize
().
Width
())
);
aDebStr
+=
")"
;
aDebStr
.
append
(
')'
)
;
aDebStr
+=
";"
;
aDebStr
.
append
(
';'
)
;
n
=
n
+
pPortion
->
GetLen
();
n
=
n
+
pPortion
->
GetLen
();
}
}
aDebStr
+=
"
\n
Total length: "
;
aDebStr
.
append
(
RTL_CONSTASCII_STRINGPARAM
(
"
\n
Total length: "
))
;
aDebStr
+=
ByteString
::
CreateFromInt32
(
n
);
aDebStr
.
append
(
static_cast
<
sal_Int32
>
(
n
)
);
aDebStr
+=
"
\n
Sorted after Start:"
;
aDebStr
.
append
(
RTL_CONSTASCII_STRINGPARAM
(
"
\n
Sorted after Start:"
))
;
for
(
sal_uInt16
x
=
0
;
x
<
pPPortion
->
GetNode
()
->
GetCharAttribs
().
Count
();
x
++
)
for
(
sal_uInt16
x
=
0
;
x
<
pPPortion
->
GetNode
()
->
GetCharAttribs
().
Count
();
x
++
)
{
{
EditCharAttrib
*
pCurAttrib
=
pPPortion
->
GetNode
()
->
GetCharAttribs
().
GetAttribs
().
GetObject
(
x
);
EditCharAttrib
*
pCurAttrib
=
pPPortion
->
GetNode
()
->
GetCharAttribs
().
GetAttribs
().
GetObject
(
x
);
aDebStr
+=
"
\n
Start: "
;
aDebStr
.
append
(
RTL_CONSTASCII_STRINGPARAM
(
"
\n
Start: "
))
;
aDebStr
+=
ByteString
::
CreateFromInt32
(
pCurAttrib
->
GetStart
()
);
aDebStr
.
append
(
static_cast
<
sal_Int32
>
(
pCurAttrib
->
GetStart
())
);
aDebStr
+=
"
\t
End: "
;
aDebStr
.
append
(
RTL_CONSTASCII_STRINGPARAM
(
"
\t
End: "
))
;
aDebStr
+=
ByteString
::
CreateFromInt32
(
pCurAttrib
->
GetEnd
()
);
aDebStr
.
append
(
static_cast
<
sal_Int32
>
(
pCurAttrib
->
GetEnd
())
);
}
}
return
aDebStr
;
return
aDebStr
.
makeStringAndClear
()
;
}
}
rtl
::
OString
EditDbg
::
GetTextPortionInfo
(
TextPortionList
&
rPortions
)
rtl
::
OString
EditDbg
::
GetTextPortionInfo
(
TextPortionList
&
rPortions
)
...
...
editeng/source/editeng/editdbg.hxx
Dosyayı görüntüle @
d2a1da36
...
@@ -49,7 +49,7 @@ class EditDbg
...
@@ -49,7 +49,7 @@ class EditDbg
public
:
public
:
static
void
ShowEditEngineData
(
EditEngine
*
pEditEngine
,
sal_Bool
bInfoBox
=
sal_True
);
static
void
ShowEditEngineData
(
EditEngine
*
pEditEngine
,
sal_Bool
bInfoBox
=
sal_True
);
static
void
ShowPortionData
(
ParaPortion
*
pPortion
);
static
void
ShowPortionData
(
ParaPortion
*
pPortion
);
static
ByteString
GetPortionInfo
(
ParaPortion
*
pPPortion
);
static
rtl
::
OString
GetPortionInfo
(
ParaPortion
*
pPPortion
);
static
rtl
::
OString
GetTextPortionInfo
(
TextPortionList
&
rPortions
);
static
rtl
::
OString
GetTextPortionInfo
(
TextPortionList
&
rPortions
);
static
ByteString
GetUndoDebStr
(
EditUndoList
*
pUndoList
);
static
ByteString
GetUndoDebStr
(
EditUndoList
*
pUndoList
);
};
};
...
...
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