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
b6639b0e
Kaydet (Commit)
b6639b0e
authored
Kas 11, 2015
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sfx2: boost::ptr_vector->std::vector
Change-Id: Icb9c44a6c251817a66276af32f0c2d1b26fb923a
üst
51f9d14a
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
20 additions
and
19 deletions
+20
-19
app.hxx
include/sfx2/app.hxx
+1
-1
mnuitem.hxx
include/sfx2/mnuitem.hxx
+2
-2
module.hxx
include/sfx2/module.hxx
+1
-1
appreg.cxx
sfx2/source/appl/appreg.cxx
+5
-5
module.cxx
sfx2/source/appl/module.cxx
+4
-4
ctrlfactoryimpl.cxx
sfx2/source/control/ctrlfactoryimpl.cxx
+1
-1
ctrlfactoryimpl.hxx
sfx2/source/inc/ctrlfactoryimpl.hxx
+3
-2
mnuitem.cxx
sfx2/source/menu/mnuitem.cxx
+3
-3
No files found.
include/sfx2/app.hxx
Dosyayı görüntüle @
b6639b0e
...
...
@@ -199,7 +199,7 @@ public:
SAL_DLLPRIVATE
void
RegisterChildWindow_Impl
(
SfxModule
*
,
SfxChildWinFactory
*
);
SAL_DLLPRIVATE
void
RegisterChildWindowContext_Impl
(
SfxModule
*
,
sal_uInt16
,
SfxChildWinContextFactory
*
);
SAL_DLLPRIVATE
void
RegisterStatusBarControl_Impl
(
SfxModule
*
,
SfxStbCtrlFactory
*
);
SAL_DLLPRIVATE
void
RegisterMenuControl_Impl
(
SfxModule
*
,
SfxMenuCtrlFactory
*
);
SAL_DLLPRIVATE
void
RegisterMenuControl_Impl
(
SfxModule
*
,
const
SfxMenuCtrlFactory
&
);
SAL_DLLPRIVATE
void
RegisterToolBoxControl_Impl
(
SfxModule
*
,
SfxTbxCtrlFactory
*
);
SAL_DLLPRIVATE
SfxTbxCtrlFactArr_Impl
&
GetTbxCtrlFactories_Impl
()
const
;
SAL_DLLPRIVATE
SfxStbCtrlFactArr_Impl
&
GetStbCtrlFactories_Impl
()
const
;
...
...
include/sfx2/mnuitem.hxx
Dosyayı görüntüle @
b6639b0e
...
...
@@ -68,7 +68,7 @@ public:
static
SfxMenuControl
*
CreateControl
(
sal_uInt16
nId
,
Menu
&
,
SfxBindings
&
);
static
SfxUnoMenuControl
*
CreateControl
(
const
OUString
&
,
sal_uInt16
,
Menu
&
,
const
OUString
&
sItemText
,
SfxBindings
&
,
SfxVirtualMenu
*
);
static
void
RegisterMenuControl
(
SfxModule
*
,
SfxMenuCtrlFactory
*
);
static
void
RegisterMenuControl
(
SfxModule
*
,
const
SfxMenuCtrlFactory
&
);
};
...
...
@@ -116,7 +116,7 @@ inline SfxVirtualMenu* SfxMenuControl::GetPopupMenu() const
SfxMenuControl* Class::CreateImpl( sal_uInt16 nId, Menu &rMenu, SfxBindings &rBindings ) \
{ return new Class(nId, rMenu, rBindings); } \
void Class::RegisterControl(sal_uInt16 nSlotId, SfxModule *pMod) \
{ SfxMenuControl::RegisterMenuControl( pMod,
new
SfxMenuCtrlFactory( \
{ SfxMenuControl::RegisterMenuControl( pMod, SfxMenuCtrlFactory( \
Class::CreateImpl, typeid(nItemClass), nSlotId ) ); }
#endif
...
...
include/sfx2/module.hxx
Dosyayı görüntüle @
b6639b0e
...
...
@@ -80,7 +80,7 @@ public:
void
RegisterToolBoxControl
(
SfxTbxCtrlFactory
*
);
void
RegisterChildWindow
(
SfxChildWinFactory
*
);
void
RegisterStatusBarControl
(
SfxStbCtrlFactory
*
);
void
RegisterMenuControl
(
SfxMenuCtrlFactory
*
);
void
RegisterMenuControl
(
const
SfxMenuCtrlFactory
&
);
virtual
VclPtr
<
SfxTabPage
>
CreateTabPage
(
sal_uInt16
nId
,
vcl
::
Window
*
pParent
,
...
...
sfx2/source/appl/appreg.cxx
Dosyayı görüntüle @
b6639b0e
...
...
@@ -116,11 +116,11 @@ void SfxApplication::RegisterStatusBarControl_Impl( SfxModule *pMod, SfxStbCtrlF
void
SfxApplication
::
RegisterMenuControl_Impl
(
SfxModule
*
pMod
,
SfxMenuCtrlFactory
*
p
Fact
)
void
SfxApplication
::
RegisterMenuControl_Impl
(
SfxModule
*
pMod
,
const
SfxMenuCtrlFactory
&
r
Fact
)
{
if
(
pMod
)
{
pMod
->
RegisterMenuControl
(
p
Fact
);
pMod
->
RegisterMenuControl
(
r
Fact
);
return
;
}
...
...
@@ -128,15 +128,15 @@ void SfxApplication::RegisterMenuControl_Impl( SfxModule *pMod, SfxMenuCtrlFacto
for
(
size_t
n
=
0
;
n
<
pAppData_Impl
->
pMenuCtrlFac
->
size
();
n
++
)
{
SfxMenuCtrlFactory
*
pF
=
&
(
*
pAppData_Impl
->
pMenuCtrlFac
)[
n
];
if
(
pF
->
nTypeId
==
pFact
->
nTypeId
&&
(
pF
->
nSlotId
==
pFact
->
nSlotId
||
pF
->
nSlotId
==
0
)
)
if
(
pF
->
nTypeId
==
rFact
.
nTypeId
&&
(
pF
->
nSlotId
==
rFact
.
nSlotId
||
pF
->
nSlotId
==
0
)
)
{
SAL_INFO
(
"sfx"
,
"MenuController register is not clearly defined!"
);
}
}
#endif
pAppData_Impl
->
pMenuCtrlFac
->
push_back
(
p
Fact
);
pAppData_Impl
->
pMenuCtrlFac
->
push_back
(
r
Fact
);
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
sfx2/source/appl/module.cxx
Dosyayı görüntüle @
b6639b0e
...
...
@@ -277,7 +277,7 @@ void SfxModule::RegisterStatusBarControl( SfxStbCtrlFactory *pFact )
void
SfxModule
::
RegisterMenuControl
(
SfxMenuCtrlFactory
*
p
Fact
)
void
SfxModule
::
RegisterMenuControl
(
const
SfxMenuCtrlFactory
&
r
Fact
)
{
if
(
!
pImpl
->
pMenuCtrlFac
)
pImpl
->
pMenuCtrlFac
=
new
SfxMenuCtrlFactArr_Impl
;
...
...
@@ -286,15 +286,15 @@ void SfxModule::RegisterMenuControl( SfxMenuCtrlFactory *pFact )
for
(
size_t
n
=
0
;
n
<
pImpl
->
pMenuCtrlFac
->
size
();
n
++
)
{
SfxMenuCtrlFactory
*
pF
=
&
(
*
pImpl
->
pMenuCtrlFac
)[
n
];
if
(
pF
->
nTypeId
==
pFact
->
nTypeId
&&
(
pF
->
nSlotId
==
pFact
->
nSlotId
||
pF
->
nSlotId
==
0
)
)
if
(
pF
->
nTypeId
==
rFact
.
nTypeId
&&
(
pF
->
nSlotId
==
rFact
.
nSlotId
||
pF
->
nSlotId
==
0
)
)
{
SAL_INFO
(
"sfx2.appl"
,
"MenuController-Registering is not clearly defined!"
);
}
}
#endif
pImpl
->
pMenuCtrlFac
->
push_back
(
p
Fact
);
pImpl
->
pMenuCtrlFac
->
push_back
(
r
Fact
);
}
...
...
sfx2/source/control/ctrlfactoryimpl.cxx
Dosyayı görüntüle @
b6639b0e
...
...
@@ -29,7 +29,7 @@ SfxMenuCtrlFactory& SfxMenuCtrlFactArr_Impl::operator []( size_t i )
return
maData
[
i
];
}
void
SfxMenuCtrlFactArr_Impl
::
push_back
(
SfxMenuCtrlFactory
*
p
)
void
SfxMenuCtrlFactArr_Impl
::
push_back
(
const
SfxMenuCtrlFactory
&
p
)
{
maData
.
push_back
(
p
);
}
...
...
sfx2/source/inc/ctrlfactoryimpl.hxx
Dosyayı görüntüle @
b6639b0e
...
...
@@ -25,17 +25,18 @@
#include <sfx2/tbxctrl.hxx>
#include <boost/ptr_container/ptr_vector.hpp>
#include <vector>
class
SfxMenuCtrlFactArr_Impl
{
typedef
boost
::
ptr_
vector
<
SfxMenuCtrlFactory
>
DataType
;
typedef
std
::
vector
<
SfxMenuCtrlFactory
>
DataType
;
DataType
maData
;
public
:
const
SfxMenuCtrlFactory
&
operator
[](
size_t
i
)
const
;
SfxMenuCtrlFactory
&
operator
[](
size_t
i
);
void
push_back
(
SfxMenuCtrlFactory
*
p
);
void
push_back
(
const
SfxMenuCtrlFactory
&
);
size_t
size
()
const
;
};
...
...
sfx2/source/menu/mnuitem.cxx
Dosyayı görüntüle @
b6639b0e
...
...
@@ -246,14 +246,14 @@ SfxMenuControl* SfxMenuControl::CreateImpl( sal_uInt16 /*nId*/, Menu& /*rMenu*/,
void
SfxMenuControl
::
RegisterControl
(
sal_uInt16
nSlotId
,
SfxModule
*
pMod
)
{
RegisterMenuControl
(
pMod
,
new
SfxMenuCtrlFactory
(
RegisterMenuControl
(
pMod
,
SfxMenuCtrlFactory
(
SfxMenuControl
::
CreateImpl
,
typeid
(
SfxStringItem
),
nSlotId
)
);
}
void
SfxMenuControl
::
RegisterMenuControl
(
SfxModule
*
pMod
,
SfxMenuCtrlFactory
*
p
Fact
)
void
SfxMenuControl
::
RegisterMenuControl
(
SfxModule
*
pMod
,
const
SfxMenuCtrlFactory
&
r
Fact
)
{
SfxGetpApp
()
->
RegisterMenuControl_Impl
(
pMod
,
p
Fact
);
SfxGetpApp
()
->
RegisterMenuControl_Impl
(
pMod
,
r
Fact
);
}
SfxMenuControl
*
SfxMenuControl
::
CreateControl
(
sal_uInt16
nId
,
Menu
&
rMenu
,
SfxBindings
&
rBindings
)
...
...
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