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
fb1f3db0
Kaydet (Commit)
fb1f3db0
authored
Şub 12, 2013
tarafından
Andras Timar
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
String to OUString
Change-Id: Ibb0b1808532622ffb2dfc55d533428f6d72b890c
üst
d25486b5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
13 deletions
+13
-13
baside2b.cxx
basctl/source/basicide/baside2b.cxx
+2
-2
syntaxhighlight.hxx
svtools/inc/svtools/syntaxhighlight.hxx
+4
-4
editsyntaxhighlighter.cxx
svtools/source/edit/editsyntaxhighlighter.cxx
+1
-1
syntaxhighlight.cxx
svtools/source/edit/syntaxhighlight.cxx
+6
-6
No files found.
basctl/source/basicide/baside2b.cxx
Dosyayı görüntüle @
fb1f3db0
...
@@ -787,7 +787,7 @@ void EditorWindow::ImpDoHighlight( sal_uLong nLine )
...
@@ -787,7 +787,7 @@ void EditorWindow::ImpDoHighlight( sal_uLong nLine )
{
{
if
(
bDoSyntaxHighlight
)
if
(
bDoSyntaxHighlight
)
{
{
String
aLine
(
pEditEngine
->
GetText
(
nLine
)
);
OU
String
aLine
(
pEditEngine
->
GetText
(
nLine
)
);
Range
aChanges
=
aHighlighter
.
notifyChange
(
nLine
,
0
,
&
aLine
,
1
);
Range
aChanges
=
aHighlighter
.
notifyChange
(
nLine
,
0
,
&
aLine
,
1
);
if
(
aChanges
.
Len
()
)
if
(
aChanges
.
Len
()
)
{
{
...
@@ -935,7 +935,7 @@ void EditorWindow::ParagraphInsertedDeleted( sal_uLong nPara, bool bInserted )
...
@@ -935,7 +935,7 @@ void EditorWindow::ParagraphInsertedDeleted( sal_uLong nPara, bool bInserted )
if
(
bDoSyntaxHighlight
)
if
(
bDoSyntaxHighlight
)
{
{
String
aDummy
;
OU
String
aDummy
;
aHighlighter
.
notifyChange
(
nPara
,
bInserted
?
1
:
(
-
1
),
&
aDummy
,
1
);
aHighlighter
.
notifyChange
(
nPara
,
bInserted
?
1
:
(
-
1
),
&
aDummy
,
1
);
}
}
}
}
...
...
svtools/inc/svtools/syntaxhighlight.hxx
Dosyayı görüntüle @
fb1f3db0
...
@@ -131,8 +131,8 @@ public:
...
@@ -131,8 +131,8 @@ public:
SimpleTokenizer_Impl
(
HighlighterLanguage
aLang
=
HIGHLIGHT_BASIC
);
SimpleTokenizer_Impl
(
HighlighterLanguage
aLang
=
HIGHLIGHT_BASIC
);
~
SimpleTokenizer_Impl
(
void
);
~
SimpleTokenizer_Impl
(
void
);
sal_uInt16
parseLine
(
sal_uInt32
nLine
,
const
String
*
aSource
);
sal_uInt16
parseLine
(
sal_uInt32
nLine
,
const
OU
String
*
aSource
);
void
getHighlightPortions
(
sal_uInt32
nParseLine
,
const
String
&
rLine
,
void
getHighlightPortions
(
sal_uInt32
nParseLine
,
const
OU
String
&
rLine
,
/*out*/
HighlightPortions
&
portions
);
/*out*/
HighlightPortions
&
portions
);
void
setKeyWords
(
const
char
**
ppKeyWords
,
sal_uInt16
nCount
);
void
setKeyWords
(
const
char
**
ppKeyWords
,
sal_uInt16
nCount
);
};
};
...
@@ -165,9 +165,9 @@ public:
...
@@ -165,9 +165,9 @@ public:
void
initialize
(
HighlighterLanguage
eLanguage_
);
void
initialize
(
HighlighterLanguage
eLanguage_
);
const
Range
notifyChange
(
sal_uInt32
nLine
,
sal_Int32
nLineCountDifference
,
const
Range
notifyChange
(
sal_uInt32
nLine
,
sal_Int32
nLineCountDifference
,
const
String
*
pChangedLines
,
sal_uInt32
nArrayLength
);
const
OU
String
*
pChangedLines
,
sal_uInt32
nArrayLength
);
void
getHighlightPortions
(
sal_uInt32
nLine
,
const
String
&
rLine
,
void
getHighlightPortions
(
sal_uInt32
nLine
,
const
OU
String
&
rLine
,
HighlightPortions
&
pPortions
);
HighlightPortions
&
pPortions
);
HighlighterLanguage
GetLanguage
()
{
return
eLanguage
;}
HighlighterLanguage
GetLanguage
()
{
return
eLanguage
;}
...
...
svtools/source/edit/editsyntaxhighlighter.cxx
Dosyayı görüntüle @
fb1f3db0
...
@@ -167,7 +167,7 @@ void MultiLineEditSyntaxHighlight::UpdateData()
...
@@ -167,7 +167,7 @@ void MultiLineEditSyntaxHighlight::UpdateData()
sal_Bool
bTempModified
=
GetTextEngine
()
->
IsModified
();
sal_Bool
bTempModified
=
GetTextEngine
()
->
IsModified
();
for
(
unsigned
int
nLine
=
0
;
nLine
<
GetTextEngine
()
->
GetParagraphCount
();
nLine
++
)
for
(
unsigned
int
nLine
=
0
;
nLine
<
GetTextEngine
()
->
GetParagraphCount
();
nLine
++
)
{
{
String
aLine
(
GetTextEngine
()
->
GetText
(
nLine
)
);
OU
String
aLine
(
GetTextEngine
()
->
GetText
(
nLine
)
);
aHighlighter
.
notifyChange
(
nLine
,
0
,
&
aLine
,
1
);
aHighlighter
.
notifyChange
(
nLine
,
0
,
&
aLine
,
1
);
GetTextEngine
()
->
RemoveAttribs
(
nLine
,
sal_True
);
GetTextEngine
()
->
RemoveAttribs
(
nLine
,
sal_True
);
...
...
svtools/source/edit/syntaxhighlight.cxx
Dosyayı görüntüle @
fb1f3db0
...
@@ -636,10 +636,10 @@ SimpleTokenizer_Impl* getSimpleTokenizer( void )
...
@@ -636,10 +636,10 @@ SimpleTokenizer_Impl* getSimpleTokenizer( void )
return
pSimpleTokenizer
;
return
pSimpleTokenizer
;
}
}
sal_uInt16
SimpleTokenizer_Impl
::
parseLine
(
sal_uInt32
nParseLine
,
const
String
*
aSource
)
sal_uInt16
SimpleTokenizer_Impl
::
parseLine
(
sal_uInt32
nParseLine
,
const
OU
String
*
aSource
)
{
{
// Set the position to the beginning of the source string
// Set the position to the beginning of the source string
mpStringBegin
=
mpActualPos
=
aSource
->
GetBuffe
r
();
mpStringBegin
=
mpActualPos
=
aSource
->
getSt
r
();
// Initialize row and column
// Initialize row and column
nLine
=
nParseLine
;
nLine
=
nParseLine
;
...
@@ -658,11 +658,11 @@ sal_uInt16 SimpleTokenizer_Impl::parseLine( sal_uInt32 nParseLine, const String*
...
@@ -658,11 +658,11 @@ sal_uInt16 SimpleTokenizer_Impl::parseLine( sal_uInt32 nParseLine, const String*
return
nTokenCount
;
return
nTokenCount
;
}
}
void
SimpleTokenizer_Impl
::
getHighlightPortions
(
sal_uInt32
nParseLine
,
const
String
&
rLine
,
void
SimpleTokenizer_Impl
::
getHighlightPortions
(
sal_uInt32
nParseLine
,
const
OU
String
&
rLine
,
/*out*/
HighlightPortions
&
portions
)
/*out*/
HighlightPortions
&
portions
)
{
{
// Set the position to the beginning of the source string
// Set the position to the beginning of the source string
mpStringBegin
=
mpActualPos
=
rLine
.
GetBuffe
r
();
mpStringBegin
=
mpActualPos
=
rLine
.
getSt
r
();
// Initialize row and column
// Initialize row and column
nLine
=
nParseLine
;
nLine
=
nParseLine
;
...
@@ -722,7 +722,7 @@ void SyntaxHighlighter::initialize( HighlighterLanguage eLanguage_ )
...
@@ -722,7 +722,7 @@ void SyntaxHighlighter::initialize( HighlighterLanguage eLanguage_ )
}
}
const
Range
SyntaxHighlighter
::
notifyChange
(
sal_uInt32
nLine
,
sal_Int32
nLineCountDifference
,
const
Range
SyntaxHighlighter
::
notifyChange
(
sal_uInt32
nLine
,
sal_Int32
nLineCountDifference
,
const
String
*
pChangedLines
,
sal_uInt32
nArrayLength
)
const
OU
String
*
pChangedLines
,
sal_uInt32
nArrayLength
)
{
{
(
void
)
nLineCountDifference
;
(
void
)
nLineCountDifference
;
...
@@ -732,7 +732,7 @@ const Range SyntaxHighlighter::notifyChange( sal_uInt32 nLine, sal_Int32 nLineCo
...
@@ -732,7 +732,7 @@ const Range SyntaxHighlighter::notifyChange( sal_uInt32 nLine, sal_Int32 nLineCo
return
Range
(
nLine
,
nLine
+
nArrayLength
-
1
);
return
Range
(
nLine
,
nLine
+
nArrayLength
-
1
);
}
}
void
SyntaxHighlighter
::
getHighlightPortions
(
sal_uInt32
nLine
,
const
String
&
rLine
,
void
SyntaxHighlighter
::
getHighlightPortions
(
sal_uInt32
nLine
,
const
OU
String
&
rLine
,
/*out*/
HighlightPortions
&
portions
)
/*out*/
HighlightPortions
&
portions
)
{
{
m_pSimpleTokenizer
->
getHighlightPortions
(
nLine
,
rLine
,
portions
);
m_pSimpleTokenizer
->
getHighlightPortions
(
nLine
,
rLine
,
portions
);
...
...
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