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
2a2b9920
Kaydet (Commit)
2a2b9920
authored
Kas 10, 2015
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
extensions: boost::ptr_vector->std::vector<std::unique_ptr>
Change-Id: Ia6987c9566af0b79bf44c4793d4ca325ea921cb7
üst
d1bda375
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
8 deletions
+10
-8
framectr.cxx
extensions/source/bibliography/framectr.cxx
+7
-6
framectr.hxx
extensions/source/bibliography/framectr.hxx
+3
-2
No files found.
extensions/source/bibliography/framectr.cxx
Dosyayı görüntüle @
2a2b9920
...
...
@@ -51,6 +51,7 @@
#include <sot/formats.hxx>
#include <vcl/edit.hxx>
#include <osl/mutex.hxx>
#include <o3tl/make_unique.hxx>
#include <unordered_map>
...
...
@@ -447,7 +448,7 @@ void BibFrameController_Impl::dispatch(const util::URL& _rURL, const uno::Sequen
sal_uInt16
nCount
=
aStatusListeners
.
size
();
for
(
sal_uInt16
n
=
0
;
n
<
nCount
;
n
++
)
{
BibStatusDispatch
*
pObj
=
&
aStatusListeners
[
n
]
;
BibStatusDispatch
*
pObj
=
aStatusListeners
[
n
].
get
()
;
if
(
pObj
->
aURL
.
Path
==
"Bib/removeFilter"
)
{
FeatureStateEvent
aEvent
;
...
...
@@ -498,7 +499,7 @@ void BibFrameController_Impl::dispatch(const util::URL& _rURL, const uno::Sequen
sal_uInt16
nCount
=
aStatusListeners
.
size
();
for
(
sal_uInt16
n
=
0
;
n
<
nCount
;
n
++
)
{
BibStatusDispatch
*
pObj
=
&
aStatusListeners
[
n
]
;
BibStatusDispatch
*
pObj
=
aStatusListeners
[
n
].
get
()
;
if
(
pObj
->
aURL
.
Path
==
"Bib/removeFilter"
&&
pDatMan
->
getParser
().
is
())
{
FeatureStateEvent
aEvent
;
...
...
@@ -643,7 +644,7 @@ void BibFrameController_Impl::addStatusListener(
{
BibConfig
*
pConfig
=
BibModul
::
GetConfig
();
// create a new Reference and insert into listener array
aStatusListeners
.
push_back
(
new
BibStatusDispatch
(
aURL
,
aListener
)
);
aStatusListeners
.
push_back
(
o3tl
::
make_unique
<
BibStatusDispatch
>
(
aURL
,
aListener
)
);
// send first status synchronously
FeatureStateEvent
aEvent
;
...
...
@@ -780,7 +781,7 @@ void BibFrameController_Impl::removeStatusListener(
sal_uInt16
nCount
=
aStatusListeners
.
size
();
for
(
sal_uInt16
n
=
0
;
n
<
nCount
;
n
++
)
{
BibStatusDispatch
*
pObj
=
&
aStatusListeners
[
n
]
;
BibStatusDispatch
*
pObj
=
aStatusListeners
[
n
].
get
()
;
bool
bFlag
=
pObj
->
xListener
.
is
();
if
(
!
bFlag
||
(
pObj
->
xListener
==
aObject
&&
(
aURL
.
Complete
.
isEmpty
()
||
pObj
->
aURL
.
Path
==
aURL
.
Path
)))
...
...
@@ -804,7 +805,7 @@ void BibFrameController_Impl::RemoveFilter()
for
(
sal_uInt16
n
=
0
;
n
<
nCount
;
n
++
)
{
BibStatusDispatch
*
pObj
=
&
aStatusListeners
[
n
]
;
BibStatusDispatch
*
pObj
=
aStatusListeners
[
n
].
get
()
;
if
(
pObj
->
aURL
.
Path
==
"Bib/removeFilter"
)
{
FeatureStateEvent
aEvent
;
...
...
@@ -864,7 +865,7 @@ void BibFrameController_Impl::ChangeDataSource(const uno::Sequence< beans::Prope
bool
bQueryText
=
false
;
for
(
sal_uInt16
n
=
0
;
n
<
nCount
;
n
++
)
{
BibStatusDispatch
*
pObj
=
&
aStatusListeners
[
n
]
;
BibStatusDispatch
*
pObj
=
aStatusListeners
[
n
].
get
()
;
if
(
pObj
->
aURL
.
Path
==
"Bib/MenuFilter"
)
{
FeatureStateEvent
aEvent
;
...
...
extensions/source/bibliography/framectr.hxx
Dosyayı görüntüle @
2a2b9920
...
...
@@ -27,7 +27,8 @@
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/frame/XDispatchInformationProvider.hpp>
#include <cppuhelper/implbase.hxx>
#include <boost/ptr_container/ptr_vector.hpp>
#include <vector>
#include <memory>
#include "bibmod.hxx"
class
BibDataManager
;
...
...
@@ -48,7 +49,7 @@ public:
{}
};
typedef
boost
::
ptr_vector
<
BibStatusDispatch
>
BibStatusDispatchArr
;
typedef
std
::
vector
<
std
::
unique_ptr
<
BibStatusDispatch
>
>
BibStatusDispatchArr
;
class
BibFrameController_Impl
:
public
cppu
::
WeakImplHelper
<
css
::
lang
::
XServiceInfo
,
...
...
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