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
9ef0b8e3
Kaydet (Commit)
9ef0b8e3
authored
Nis 02, 2012
tarafından
Noel Grandin
Kaydeden (comit)
Michael Stahl
Nis 02, 2012
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Convert tools/table.hxx to std::set in EditorWindow class in basctl module
üst
e5a916ee
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
baside2.hxx
basctl/source/basicide/baside2.hxx
+4
-2
baside2b.cxx
basctl/source/basicide/baside2b.cxx
+7
-9
No files found.
basctl/source/basicide/baside2.hxx
Dosyayı görüntüle @
9ef0b8e3
...
...
@@ -51,11 +51,11 @@ class SvxSearchItem;
#include <sfx2/progress.hxx>
#include <svtools/syntaxhighlight.hxx>
#include <unotools/options.hxx>
#include <tools/table.hxx>
#include "breakpoint.hxx"
#include "linenumberwindow.hxx"
#include "objdlg.hxx"
#include <set>
#include <tools/table.hxx>
...
...
@@ -95,6 +95,8 @@ inline void ProgressInfo::StepProgress()
SetState
(
++
nCurState
);
}
typedef
std
::
set
<
sal_uInt16
>
SyntaxLineSet
;
class
EditorWindow
:
public
Window
,
public
SfxListener
{
private
:
...
...
@@ -113,7 +115,7 @@ private:
SyntaxHighlighter
aHighlighter
;
Timer
aSyntaxIdleTimer
;
Table
aSyntaxLineTable
;
SyntaxLineSet
aSyntaxLineTable
;
DECL_LINK
(
SyntaxTimerHdl
,
void
*
);
ProgressInfo
*
pProgress
;
ModulWindow
*
pModulWindow
;
...
...
basctl/source/basicide/baside2b.cxx
Dosyayı görüntüle @
9ef0b8e3
...
...
@@ -628,7 +628,7 @@ void EditorWindow::CreateEditEngine()
for
(
sal_uInt16
nLine
=
0
;
nLine
<
nLines
;
nLine
++
)
aSyntaxLineTable
.
Insert
(
nLine
,
(
void
*
)(
sal_uInt16
)
1
);
aSyntaxLineTable
.
insert
(
nLine
);
ForceSyntaxTimeout
();
DELETEZ
(
pProgress
);
...
...
@@ -793,7 +793,7 @@ void EditorWindow::ImpDoHighlight( sal_uLong nLine )
if
(
aChanges
.
Len
()
)
{
for
(
long
n
=
aChanges
.
Min
()
+
1
;
n
<=
aChanges
.
Max
();
n
++
)
aSyntaxLineTable
.
Insert
(
n
,
(
void
*
)(
sal_uLong
)
1
);
aSyntaxLineTable
.
insert
(
n
);
aSyntaxIdleTimer
.
Start
();
}
...
...
@@ -868,7 +868,7 @@ void EditorWindow::DoDelayedSyntaxHighlight( sal_uLong nPara )
{
if
(
bDelayHighlight
)
{
aSyntaxLineTable
.
Insert
(
nPara
,
(
void
*
)(
sal_uLong
)
1
);
aSyntaxLineTable
.
insert
(
nPara
);
aSyntaxIdleTimer
.
Start
();
}
else
...
...
@@ -884,13 +884,11 @@ IMPL_LINK_NOARG(EditorWindow, SyntaxTimerHdl)
// pEditEngine->SetUpdateMode( sal_False );
bHighlightning
=
sal_True
;
sal_uInt16
nLine
;
void
*
p
=
aSyntaxLineTable
.
First
();
while
(
p
)
for
(
SyntaxLineSet
::
const_iterator
it
=
aSyntaxLineTable
.
begin
();
it
!=
aSyntaxLineTable
.
end
();
++
it
)
{
nLine
=
(
sal_uInt16
)
aSyntaxLineTable
.
GetCurKey
()
;
sal_uInt16
nLine
=
*
it
;
DoSyntaxHighlight
(
nLine
);
p
=
aSyntaxLineTable
.
Next
();
}
// #i45572#
...
...
@@ -899,7 +897,7 @@ IMPL_LINK_NOARG(EditorWindow, SyntaxTimerHdl)
pEditEngine
->
SetModified
(
bWasModified
);
aSyntaxLineTable
.
C
lear
();
aSyntaxLineTable
.
c
lear
();
bHighlightning
=
sal_False
;
return
0
;
...
...
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