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
a01789ec
Kaydet (Commit)
a01789ec
authored
Haz 13, 2012
tarafından
Noel Grandin
Kaydeden (comit)
Michael Stahl
Haz 20, 2012
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Convert SV_DECL_PTRARR_DEL(BibToolBarListenerArr) to boost::ptr_vector
Change-Id: I851a3ef2bda7f427f6562ed946c7889c97ad83a0
üst
c513264f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
9 deletions
+7
-9
toolbar.cxx
extensions/source/bibliography/toolbar.cxx
+4
-6
toolbar.hxx
extensions/source/bibliography/toolbar.hxx
+3
-3
No files found.
extensions/source/bibliography/toolbar.cxx
Dosyayı görüntüle @
a01789ec
...
...
@@ -190,8 +190,6 @@ void BibTBEditListener::statusChanged(const frame::FeatureStateEvent& rEvt)throw
}
}
SV_IMPL_PTRARR
(
BibToolBarListenerArr
,
BibToolBarListenerPtr
);
BibToolBar
::
BibToolBar
(
Window
*
pParent
,
Link
aLink
,
WinBits
nStyle
)
:
ToolBox
(
pParent
,
BibResId
(
RID_BIB_TOOLBAR
)),
aImgLst
(
BibResId
(
RID_TOOLBAR_IMGLIST
)),
...
...
@@ -299,9 +297,9 @@ void BibToolBar::InitListener()
pListener
=
new
BibToolBarListener
(
this
,
aURL
.
Complete
,
nId
);
}
BibToolBarListener
Ptr
pxInsert
=
new
Reference
<
frame
::
XStatusListener
>
;
BibToolBarListener
Ref
*
pxInsert
=
new
Reference
<
frame
::
XStatusListener
>
;
(
*
pxInsert
)
=
pListener
;
aListenerArr
.
Insert
(
pxInsert
,
aListenerArr
.
Count
()
);
aListenerArr
.
push_back
(
pxInsert
);
xDisp
->
addStatusListener
(
uno
::
Reference
<
frame
::
XStatusListener
>
(
pListener
),
aURL
);
}
}
...
...
@@ -529,9 +527,9 @@ IMPL_LINK( BibToolBar, MenuHdl, ToolBox*, /*pToolbox*/)
void
BibToolBar
::
statusChanged
(
const
frame
::
FeatureStateEvent
&
rEvent
)
throw
(
uno
::
RuntimeException
)
{
for
(
sal_uInt16
i
=
0
;
i
<
aListenerArr
.
Count
();
i
++
)
for
(
sal_uInt16
i
=
0
;
i
<
aListenerArr
.
size
();
i
++
)
{
BibToolBarListener
Ptr
pListener
=
aListenerArr
.
GetObject
(
i
)
;
BibToolBarListener
Ref
*
pListener
=
&
aListenerArr
[
i
]
;
(
*
pListener
)
->
statusChanged
(
rEvent
);
}
}
...
...
extensions/source/bibliography/toolbar.hxx
Dosyayı görüntüle @
a01789ec
...
...
@@ -37,9 +37,9 @@
#include <vcl/lstbox.hxx>
#include <vcl/edit.hxx>
#include <vcl/fixed.hxx>
#include <svl/svarray.hxx>
#include <vcl/timer.hxx>
#include <cppuhelper/implbase1.hxx> // helper for implementations
#include <boost/ptr_container/ptr_vector.hpp>
class
BibDataManager
;
class
BibToolBar
;
...
...
@@ -110,8 +110,8 @@ public:
};
typedef
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
frame
::
XStatusListener
>
*
BibToolBarListenerPtr
;
SV_DECL_PTRARR_DEL
(
BibToolBarListenerArr
,
BibToolBarListenerPtr
,
4
)
typedef
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
frame
::
XStatusListener
>
BibToolBarListenerRef
;
typedef
boost
::
ptr_vector
<
BibToolBarListenerRef
>
BibToolBarListenerArr
;
class
BibToolBar
:
public
ToolBox
{
...
...
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