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
31a42483
Kaydet (Commit)
31a42483
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: I0ffe29145fb56f284300d40dfea323a8b16c26de
üst
b6639b0e
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
41 additions
and
42 deletions
+41
-42
app.hxx
include/sfx2/app.hxx
+2
-2
module.hxx
include/sfx2/module.hxx
+2
-2
stbitem.hxx
include/sfx2/stbitem.hxx
+2
-2
tbxctrl.hxx
include/sfx2/tbxctrl.hxx
+3
-3
appreg.cxx
sfx2/source/appl/appreg.cxx
+10
-10
module.cxx
sfx2/source/appl/module.cxx
+8
-8
ctrlfactoryimpl.cxx
sfx2/source/control/ctrlfactoryimpl.cxx
+2
-2
ctrlfactoryimpl.hxx
sfx2/source/inc/ctrlfactoryimpl.hxx
+4
-5
stbitem.cxx
sfx2/source/statbar/stbitem.cxx
+2
-2
tbxitem.cxx
sfx2/source/toolbox/tbxitem.cxx
+2
-2
tbcontrl.cxx
svx/source/tbxctrls/tbcontrl.cxx
+4
-4
No files found.
include/sfx2/app.hxx
Dosyayı görüntüle @
31a42483
...
...
@@ -198,9 +198,9 @@ public:
// Object-Factories/global arrays
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
RegisterStatusBarControl_Impl
(
SfxModule
*
,
const
SfxStbCtrlFactory
&
);
SAL_DLLPRIVATE
void
RegisterMenuControl_Impl
(
SfxModule
*
,
const
SfxMenuCtrlFactory
&
);
SAL_DLLPRIVATE
void
RegisterToolBoxControl_Impl
(
SfxModule
*
,
SfxTbxCtrlFactory
*
);
SAL_DLLPRIVATE
void
RegisterToolBoxControl_Impl
(
SfxModule
*
,
const
SfxTbxCtrlFactory
&
);
SAL_DLLPRIVATE
SfxTbxCtrlFactArr_Impl
&
GetTbxCtrlFactories_Impl
()
const
;
SAL_DLLPRIVATE
SfxStbCtrlFactArr_Impl
&
GetStbCtrlFactories_Impl
()
const
;
SAL_DLLPRIVATE
SfxMenuCtrlFactArr_Impl
&
GetMenuCtrlFactories_Impl
()
const
;
...
...
include/sfx2/module.hxx
Dosyayı görüntüle @
31a42483
...
...
@@ -77,9 +77,9 @@ public:
ResMgr
*
GetResMgr
();
SfxSlotPool
*
GetSlotPool
()
const
;
void
RegisterToolBoxControl
(
SfxTbxCtrlFactory
*
);
void
RegisterToolBoxControl
(
const
SfxTbxCtrlFactory
&
);
void
RegisterChildWindow
(
SfxChildWinFactory
*
);
void
RegisterStatusBarControl
(
SfxStbCtrlFactory
*
);
void
RegisterStatusBarControl
(
const
SfxStbCtrlFactory
&
);
void
RegisterMenuControl
(
const
SfxMenuCtrlFactory
&
);
virtual
VclPtr
<
SfxTabPage
>
CreateTabPage
(
sal_uInt16
nId
,
...
...
include/sfx2/stbitem.hxx
Dosyayı görüntüle @
31a42483
...
...
@@ -115,7 +115,7 @@ public:
StatusBar
&
GetStatusBar
()
const
{
return
*
pBar
;
}
static
SfxStatusBarControl
*
CreateControl
(
sal_uInt16
nSlotID
,
sal_uInt16
nId
,
StatusBar
*
pBar
,
SfxModule
*
);
static
void
RegisterStatusBarControl
(
SfxModule
*
,
SfxStbCtrlFactory
*
);
static
void
RegisterStatusBarControl
(
SfxModule
*
,
const
SfxStbCtrlFactory
&
);
};
...
...
@@ -129,7 +129,7 @@ public:
SfxStatusBarControl* Class::CreateImpl( sal_uInt16 nSlotId, sal_uInt16 nId, StatusBar &rStb ) \
{ return new Class( nSlotId, nId, rStb ); } \
void Class::RegisterControl(sal_uInt16 nSlotId, SfxModule *pMod) \
{ SfxStatusBarControl::RegisterStatusBarControl( pMod,
new
SfxStbCtrlFactory( \
{ SfxStatusBarControl::RegisterStatusBarControl( pMod, SfxStbCtrlFactory( \
Class::CreateImpl, typeid(nItemClass), nSlotId ) ); }
...
...
include/sfx2/tbxctrl.hxx
Dosyayı görüntüle @
31a42483
...
...
@@ -224,21 +224,21 @@ public:
static
SfxItemState
GetItemState
(
const
SfxPoolItem
*
pState
);
static
SfxToolBoxControl
*
CreateControl
(
sal_uInt16
nSlotId
,
sal_uInt16
nTbxId
,
ToolBox
*
pBox
,
SfxModule
*
pMod
);
static
void
RegisterToolBoxControl
(
SfxModule
*
,
SfxTbxCtrlFactory
*
);
static
void
RegisterToolBoxControl
(
SfxModule
*
,
const
SfxTbxCtrlFactory
&
);
};
#define SFX_IMPL_TOOLBOX_CONTROL(Class, nItemClass) \
SfxToolBoxControl* Class::CreateImpl( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox &rTbx ) \
{ return new Class( nSlotId, nId, rTbx ); } \
void Class::RegisterControl(sal_uInt16 nSlotId, SfxModule *pMod) \
{ SfxToolBoxControl::RegisterToolBoxControl( pMod,
new
SfxTbxCtrlFactory( \
{ SfxToolBoxControl::RegisterToolBoxControl( pMod, SfxTbxCtrlFactory( \
Class::CreateImpl, typeid(nItemClass), nSlotId ) ); }
#define SFX_IMPL_TOOLBOX_CONTROL_ARG(Class, nItemClass, Arg) \
SfxToolBoxControl* Class::CreateImpl( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox &rTbx ) \
{ return new Class( nSlotId, nId, rTbx, Arg); } \
void Class::RegisterControl(sal_uInt16 nSlotId, SfxModule *pMod) \
{ SfxToolBoxControl::RegisterToolBoxControl( pMod,
new
SfxTbxCtrlFactory( \
{ SfxToolBoxControl::RegisterToolBoxControl( pMod, SfxTbxCtrlFactory( \
Class::CreateImpl, typeid(nItemClass), nSlotId ) ); }
...
...
sfx2/source/appl/appreg.cxx
Dosyayı görüntüle @
31a42483
...
...
@@ -66,11 +66,11 @@ void SfxApplication::Registrations_Impl()
void
SfxApplication
::
RegisterToolBoxControl_Impl
(
SfxModule
*
pMod
,
SfxTbxCtrlFactory
*
p
Fact
)
void
SfxApplication
::
RegisterToolBoxControl_Impl
(
SfxModule
*
pMod
,
const
SfxTbxCtrlFactory
&
r
Fact
)
{
if
(
pMod
)
{
pMod
->
RegisterToolBoxControl
(
p
Fact
);
pMod
->
RegisterToolBoxControl
(
r
Fact
);
return
;
}
...
...
@@ -78,24 +78,24 @@ void SfxApplication::RegisterToolBoxControl_Impl( SfxModule *pMod, SfxTbxCtrlFac
for
(
size_t
n
=
0
;
n
<
pAppData_Impl
->
pTbxCtrlFac
->
size
();
n
++
)
{
SfxTbxCtrlFactory
*
pF
=
&
(
*
pAppData_Impl
->
pTbxCtrlFac
)[
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"
,
"TbxController registration is not clearly defined!"
);
}
}
#endif
pAppData_Impl
->
pTbxCtrlFac
->
push_back
(
p
Fact
);
pAppData_Impl
->
pTbxCtrlFac
->
push_back
(
r
Fact
);
}
void
SfxApplication
::
RegisterStatusBarControl_Impl
(
SfxModule
*
pMod
,
SfxStbCtrlFactory
*
p
Fact
)
void
SfxApplication
::
RegisterStatusBarControl_Impl
(
SfxModule
*
pMod
,
const
SfxStbCtrlFactory
&
r
Fact
)
{
if
(
pMod
)
{
pMod
->
RegisterStatusBarControl
(
p
Fact
);
pMod
->
RegisterStatusBarControl
(
r
Fact
);
return
;
}
...
...
@@ -103,15 +103,15 @@ void SfxApplication::RegisterStatusBarControl_Impl( SfxModule *pMod, SfxStbCtrlF
for
(
size_t
n
=
0
;
n
<
pAppData_Impl
->
pStbCtrlFac
->
size
();
n
++
)
{
SfxStbCtrlFactory
*
pF
=
&
(
*
pAppData_Impl
->
pStbCtrlFac
)[
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"
,
"StbController registration is not clearly defined!"
);
}
}
#endif
pAppData_Impl
->
pStbCtrlFac
->
push_back
(
p
Fact
);
pAppData_Impl
->
pStbCtrlFac
->
push_back
(
r
Fact
);
}
...
...
sfx2/source/appl/module.cxx
Dosyayı görüntüle @
31a42483
...
...
@@ -233,7 +233,7 @@ void SfxModule::RegisterChildWindow(SfxChildWinFactory *pFact)
void
SfxModule
::
RegisterToolBoxControl
(
SfxTbxCtrlFactory
*
p
Fact
)
void
SfxModule
::
RegisterToolBoxControl
(
const
SfxTbxCtrlFactory
&
r
Fact
)
{
if
(
!
pImpl
->
pTbxCtrlFac
)
pImpl
->
pTbxCtrlFac
=
new
SfxTbxCtrlFactArr_Impl
;
...
...
@@ -242,20 +242,20 @@ void SfxModule::RegisterToolBoxControl( SfxTbxCtrlFactory *pFact )
for
(
size_t
n
=
0
;
n
<
pImpl
->
pTbxCtrlFac
->
size
();
n
++
)
{
SfxTbxCtrlFactory
*
pF
=
&
(
*
pImpl
->
pTbxCtrlFac
)[
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"
,
"TbxController-Registering is not clearly defined!"
);
}
}
#endif
pImpl
->
pTbxCtrlFac
->
push_back
(
p
Fact
);
pImpl
->
pTbxCtrlFac
->
push_back
(
r
Fact
);
}
void
SfxModule
::
RegisterStatusBarControl
(
SfxStbCtrlFactory
*
p
Fact
)
void
SfxModule
::
RegisterStatusBarControl
(
const
SfxStbCtrlFactory
&
r
Fact
)
{
if
(
!
pImpl
->
pStbCtrlFac
)
pImpl
->
pStbCtrlFac
=
new
SfxStbCtrlFactArr_Impl
;
...
...
@@ -264,15 +264,15 @@ void SfxModule::RegisterStatusBarControl( SfxStbCtrlFactory *pFact )
for
(
size_t
n
=
0
;
n
<
pImpl
->
pStbCtrlFac
->
size
();
n
++
)
{
SfxStbCtrlFactory
*
pF
=
&
(
*
pImpl
->
pStbCtrlFac
)[
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"
,
"TbxController-Registering is not clearly defined!"
);
}
}
#endif
pImpl
->
pStbCtrlFac
->
push_back
(
p
Fact
);
pImpl
->
pStbCtrlFac
->
push_back
(
r
Fact
);
}
...
...
sfx2/source/control/ctrlfactoryimpl.cxx
Dosyayı görüntüle @
31a42483
...
...
@@ -49,7 +49,7 @@ SfxStbCtrlFactory& SfxStbCtrlFactArr_Impl::operator []( size_t i )
return
maData
[
i
];
}
void
SfxStbCtrlFactArr_Impl
::
push_back
(
SfxStbCtrlFactory
*
p
)
void
SfxStbCtrlFactArr_Impl
::
push_back
(
const
SfxStbCtrlFactory
&
p
)
{
maData
.
push_back
(
p
);
}
...
...
@@ -69,7 +69,7 @@ SfxTbxCtrlFactory& SfxTbxCtrlFactArr_Impl::operator []( size_t i )
return
maData
[
i
];
}
void
SfxTbxCtrlFactArr_Impl
::
push_back
(
SfxTbxCtrlFactory
*
p
)
void
SfxTbxCtrlFactArr_Impl
::
push_back
(
const
SfxTbxCtrlFactory
&
p
)
{
maData
.
push_back
(
p
);
}
...
...
sfx2/source/inc/ctrlfactoryimpl.hxx
Dosyayı görüntüle @
31a42483
...
...
@@ -24,7 +24,6 @@
#include <sfx2/stbitem.hxx>
#include <sfx2/tbxctrl.hxx>
#include <boost/ptr_container/ptr_vector.hpp>
#include <vector>
class
SfxMenuCtrlFactArr_Impl
...
...
@@ -43,28 +42,28 @@ public:
class
SfxStbCtrlFactArr_Impl
{
typedef
boost
::
ptr_
vector
<
SfxStbCtrlFactory
>
DataType
;
typedef
std
::
vector
<
SfxStbCtrlFactory
>
DataType
;
DataType
maData
;
public
:
const
SfxStbCtrlFactory
&
operator
[](
size_t
i
)
const
;
SfxStbCtrlFactory
&
operator
[](
size_t
i
);
void
push_back
(
SfxStbCtrlFactory
*
p
);
void
push_back
(
const
SfxStbCtrlFactory
&
);
size_t
size
()
const
;
};
class
SfxTbxCtrlFactArr_Impl
{
typedef
boost
::
ptr_
vector
<
SfxTbxCtrlFactory
>
DataType
;
typedef
std
::
vector
<
SfxTbxCtrlFactory
>
DataType
;
DataType
maData
;
public
:
const
SfxTbxCtrlFactory
&
operator
[](
size_t
i
)
const
;
SfxTbxCtrlFactory
&
operator
[](
size_t
i
);
void
push_back
(
SfxTbxCtrlFactory
*
p
);
void
push_back
(
const
SfxTbxCtrlFactory
&
);
size_t
size
()
const
;
};
...
...
sfx2/source/statbar/stbitem.cxx
Dosyayı görüntüle @
31a42483
...
...
@@ -633,9 +633,9 @@ SfxStatusBarControl* SfxStatusBarControl::CreateControl
}
void
SfxStatusBarControl
::
RegisterStatusBarControl
(
SfxModule
*
pMod
,
SfxStbCtrlFactory
*
p
Fact
)
void
SfxStatusBarControl
::
RegisterStatusBarControl
(
SfxModule
*
pMod
,
const
SfxStbCtrlFactory
&
r
Fact
)
{
SfxGetpApp
()
->
RegisterStatusBarControl_Impl
(
pMod
,
p
Fact
);
SfxGetpApp
()
->
RegisterStatusBarControl_Impl
(
pMod
,
r
Fact
);
}
...
...
sfx2/source/toolbox/tbxitem.cxx
Dosyayı görüntüle @
31a42483
...
...
@@ -272,9 +272,9 @@ void SAL_CALL SfxToolBoxControl::dispose() throw (css::uno::RuntimeException, st
}
void
SfxToolBoxControl
::
RegisterToolBoxControl
(
SfxModule
*
pMod
,
SfxTbxCtrlFactory
*
p
Fact
)
void
SfxToolBoxControl
::
RegisterToolBoxControl
(
SfxModule
*
pMod
,
const
SfxTbxCtrlFactory
&
r
Fact
)
{
SfxGetpApp
()
->
RegisterToolBoxControl_Impl
(
pMod
,
p
Fact
);
SfxGetpApp
()
->
RegisterToolBoxControl_Impl
(
pMod
,
r
Fact
);
}
SfxToolBoxControl
*
SfxToolBoxControl
::
CreateControl
(
sal_uInt16
nSlotId
,
sal_uInt16
nTbxId
,
ToolBox
*
pBox
,
SfxModule
*
pMod
)
...
...
svx/source/tbxctrls/tbcontrl.cxx
Dosyayı görüntüle @
31a42483
...
...
@@ -2799,13 +2799,13 @@ SfxToolBoxControl* SvxColorToolBoxControl::CreateImpl( sal_uInt16 nSlotId, sal_u
void
SvxColorToolBoxControl
::
RegisterControl
(
sal_uInt16
nSlotId
,
SfxModule
*
pMod
)
{
if
(
nSlotId
==
SID_ATTR_LINE_COLOR
)
SfxToolBoxControl
::
RegisterToolBoxControl
(
pMod
,
new
SfxTbxCtrlFactory
(
SvxColorToolBoxControl
::
CreateImpl
,
typeid
(
XLineColorItem
),
nSlotId
)
);
SfxToolBoxControl
::
RegisterToolBoxControl
(
pMod
,
SfxTbxCtrlFactory
(
SvxColorToolBoxControl
::
CreateImpl
,
typeid
(
XLineColorItem
),
nSlotId
)
);
else
if
(
nSlotId
==
SID_ATTR_FILL_COLOR
)
SfxToolBoxControl
::
RegisterToolBoxControl
(
pMod
,
new
SfxTbxCtrlFactory
(
SvxColorToolBoxControl
::
CreateImpl
,
typeid
(
XFillColorItem
),
nSlotId
)
);
SfxToolBoxControl
::
RegisterToolBoxControl
(
pMod
,
SfxTbxCtrlFactory
(
SvxColorToolBoxControl
::
CreateImpl
,
typeid
(
XFillColorItem
),
nSlotId
)
);
else
if
(
nSlotId
==
SID_ATTR_CHAR_BACK_COLOR
)
SfxToolBoxControl
::
RegisterToolBoxControl
(
pMod
,
new
SfxTbxCtrlFactory
(
SvxColorToolBoxControl
::
CreateImpl
,
typeid
(
SvxBackgroundColorItem
),
nSlotId
)
);
SfxToolBoxControl
::
RegisterToolBoxControl
(
pMod
,
SfxTbxCtrlFactory
(
SvxColorToolBoxControl
::
CreateImpl
,
typeid
(
SvxBackgroundColorItem
),
nSlotId
)
);
else
SfxToolBoxControl
::
RegisterToolBoxControl
(
pMod
,
new
SfxTbxCtrlFactory
(
SvxColorToolBoxControl
::
CreateImpl
,
typeid
(
SvxColorItem
),
nSlotId
)
);
SfxToolBoxControl
::
RegisterToolBoxControl
(
pMod
,
SfxTbxCtrlFactory
(
SvxColorToolBoxControl
::
CreateImpl
,
typeid
(
SvxColorItem
),
nSlotId
)
);
}
// class SvxFrameToolBoxControl --------------------------------------------
...
...
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