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
9df180a0
Kaydet (Commit)
9df180a0
authored
Ara 11, 2010
tarafından
Joseph Powers
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Remove DECLARE_LIST( MacroList, SbMethod* ) & Cleanup previous patch
üst
2b70fbec
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
26 deletions
+25
-26
progressmonitor.cxx
UnoControls/source/controls/progressmonitor.cxx
+10
-8
macrodlg.cxx
basctl/source/basicide/macrodlg.cxx
+15
-18
No files found.
UnoControls/source/controls/progressmonitor.cxx
Dosyayı görüntüle @
9df180a0
...
@@ -43,7 +43,7 @@
...
@@ -43,7 +43,7 @@
#include <cppuhelper/typeprovider.hxx>
#include <cppuhelper/typeprovider.hxx>
#include <tools/debug.hxx>
#include <tools/debug.hxx>
#include <tools/solar.h>
#include <tools/solar.h>
#include <algorithm>
//____________________________________________________________________________________________________________
//____________________________________________________________________________________________________________
// includes of my project
// includes of my project
//____________________________________________________________________________________________________________
//____________________________________________________________________________________________________________
...
@@ -61,7 +61,7 @@ using namespace ::com::sun::star::lang ;
...
@@ -61,7 +61,7 @@ using namespace ::com::sun::star::lang ;
using
namespace
::
com
::
sun
::
star
::
awt
;
using
namespace
::
com
::
sun
::
star
::
awt
;
using
::
std
::
vector
;
using
::
std
::
vector
;
using
::
std
::
find
;
namespace
unocontrols
{
namespace
unocontrols
{
...
@@ -308,15 +308,17 @@ void SAL_CALL ProgressMonitor::removeText ( const OUString& rTopic, sal_Bool bbe
...
@@ -308,15 +308,17 @@ void SAL_CALL ProgressMonitor::removeText ( const OUString& rTopic, sal_Bool bbe
// ... delete item from right list ...
// ... delete item from right list ...
if
(
bbeforeProgress
==
sal_True
)
if
(
bbeforeProgress
==
sal_True
)
{
{
vector
<
IMPL_TextlistItem
*
>::
iterator
itr
=
maTextlist_Top
.
begin
();
vector
<
IMPL_TextlistItem
*
>::
iterator
while
(
(
itr
<
maTextlist_Top
.
end
())
&&
(
*
itr
!=
pSearchItem
)
)
++
itr
;
itr
=
find
(
maTextlist_Top
.
begin
(),
maTextlist_Top
.
end
(),
pSearchItem
);
maTextlist_Top
.
erase
(
itr
);
if
(
itr
!=
maTextlist_Top
.
end
())
maTextlist_Top
.
erase
(
itr
);
}
}
else
else
{
{
vector
<
IMPL_TextlistItem
*
>::
iterator
itr
=
maTextlist_Bottom
.
begin
();
vector
<
IMPL_TextlistItem
*
>::
iterator
while
(
(
itr
<
maTextlist_Bottom
.
end
())
&&
(
*
itr
!=
pSearchItem
)
)
++
itr
;
itr
=
find
(
maTextlist_Bottom
.
begin
(),
maTextlist_Bottom
.
end
(),
pSearchItem
);
maTextlist_Bottom
.
erase
(
itr
);
if
(
itr
!=
maTextlist_Bottom
.
end
())
maTextlist_Bottom
.
erase
(
itr
);
}
}
delete
pSearchItem
;
delete
pSearchItem
;
...
...
basctl/source/basicide/macrodlg.cxx
Dosyayı görüntüle @
9df180a0
...
@@ -56,12 +56,12 @@
...
@@ -56,12 +56,12 @@
#include <com/sun/star/script/XLibraryContainer2.hpp>
#include <com/sun/star/script/XLibraryContainer2.hpp>
#include <com/sun/star/document/MacroExecMode.hpp>
#include <com/sun/star/document/MacroExecMode.hpp>
#include <list>
using
::
std
::
list
;
using
namespace
::
com
::
sun
::
star
;
using
namespace
::
com
::
sun
::
star
;
using
namespace
::
com
::
sun
::
star
::
uno
;
using
namespace
::
com
::
sun
::
star
::
uno
;
DECLARE_LIST
(
MacroList
,
SbMethod
*
)
MacroChooser
::
MacroChooser
(
Window
*
pParnt
,
BOOL
bCreateEntries
)
:
MacroChooser
::
MacroChooser
(
Window
*
pParnt
,
BOOL
bCreateEntries
)
:
SfxModalDialog
(
pParnt
,
IDEResId
(
RID_MACROCHOOSER
)
),
SfxModalDialog
(
pParnt
,
IDEResId
(
RID_MACROCHOOSER
)
),
aMacroNameTxt
(
this
,
IDEResId
(
RID_TXT_MACRONAME
)
),
aMacroNameTxt
(
this
,
IDEResId
(
RID_TXT_MACRONAME
)
),
...
@@ -552,39 +552,36 @@ IMPL_LINK( MacroChooser, BasicSelectHdl, SvTreeListBox *, pBox )
...
@@ -552,39 +552,36 @@ IMPL_LINK( MacroChooser, BasicSelectHdl, SvTreeListBox *, pBox )
// Die Macros sollen in der Reihenfolge angezeigt werden,
// Die Macros sollen in der Reihenfolge angezeigt werden,
// wie sie im Modul stehen.
// wie sie im Modul stehen.
MacroList
aMacros
;
USHORT
nMacroCount
=
pModule
->
GetMethods
()
->
Count
();
list
<
SbMethod
*
>
aMacros
;
USHORT
nRealMacroCount
=
0
;
size_t
nMacroCount
=
pModule
->
GetMethods
()
->
Count
();
USHORT
iMeth
;
for
(
size_t
iMeth
=
0
;
iMeth
<
nMacroCount
;
iMeth
++
)
for
(
iMeth
=
0
;
iMeth
<
nMacroCount
;
iMeth
++
)
{
{
SbMethod
*
pMethod
=
(
SbMethod
*
)
pModule
->
GetMethods
()
->
Get
(
iMeth
);
SbMethod
*
pMethod
=
(
SbMethod
*
)
pModule
->
GetMethods
()
->
Get
(
iMeth
);
if
(
pMethod
->
IsHidden
()
)
if
(
pMethod
->
IsHidden
()
)
continue
;
continue
;
++
nRealMacroCount
;
DBG_ASSERT
(
pMethod
,
"Methode nicht gefunden! (NULL)"
);
DBG_ASSERT
(
pMethod
,
"Methode nicht gefunden! (NULL)"
);
ULONG
nPos
=
LIST_APPEND
;
// Eventuell weiter vorne ?
// Eventuell weiter vorne ?
USHORT
nStart
,
nEnd
;
USHORT
nStart
,
nEnd
;
pMethod
->
GetLineRange
(
nStart
,
nEnd
);
pMethod
->
GetLineRange
(
nStart
,
nEnd
);
for
(
ULONG
n
=
0
;
n
<
aMacros
.
Count
();
n
++
)
list
<
SbMethod
*
>::
iterator
itr
;
for
(
itr
=
aMacros
.
begin
();
itr
!=
aMacros
.
end
();
++
itr
)
{
{
USHORT
nS
,
nE
;
USHORT
nS
,
nE
;
SbMethod
*
pM
=
aMacros
.
GetObject
(
n
)
;
SbMethod
*
pM
=
*
itr
;
DBG_ASSERT
(
pM
,
"Macro nicht in Liste ?!"
);
DBG_ASSERT
(
pM
,
"Macro nicht in Liste ?!"
);
pM
->
GetLineRange
(
nS
,
nE
);
pM
->
GetLineRange
(
nS
,
nE
);
if
(
nS
>
nStart
)
if
(
nS
>
nStart
)
{
{
nPos
=
n
;
break
;
break
;
}
}
}
}
aMacros
.
Insert
(
pMethod
,
nPos
);
if
(
itr
!=
aMacros
.
end
()
)
++
itr
;
aMacros
.
insert
(
itr
,
pMethod
);
}
}
aMacroBox
.
SetUpdateMode
(
FALSE
);
aMacroBox
.
SetUpdateMode
(
FALSE
);
for
(
iMeth
=
0
;
iMeth
<
nRealMacroCount
;
iMeth
++
)
for
(
list
<
SbMethod
*
>::
iterator
itr
=
aMacros
.
begin
();
itr
!=
aMacros
.
end
();
++
itr
)
aMacroBox
.
InsertEntry
(
aMacros
.
GetObject
(
iMeth
)
->
GetName
()
);
aMacroBox
.
InsertEntry
(
(
*
itr
)
->
GetName
()
);
aMacroBox
.
SetUpdateMode
(
TRUE
);
aMacroBox
.
SetUpdateMode
(
TRUE
);
if
(
aMacroBox
.
GetEntryCount
()
)
if
(
aMacroBox
.
GetEntryCount
()
)
...
...
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