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
2cf50102
Kaydet (Commit)
2cf50102
authored
Nis 01, 2014
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sfx2/objface.xx: sal_Bool->bool
Change-Id: I1227c958d58903dc114a4e4173fb2714b2ec33f2
üst
a1c57dd8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
28 deletions
+28
-28
objface.hxx
include/sfx2/objface.hxx
+5
-5
shell.hxx
include/sfx2/shell.hxx
+3
-3
objface.cxx
sfx2/source/control/objface.cxx
+20
-20
No files found.
include/sfx2/objface.hxx
Dosyayı görüntüle @
2cf50102
...
...
@@ -38,7 +38,7 @@ friend class SfxSlotPool;
const
char
*
pName
;
// Sfx-internal name of interface
const
SfxInterface
*
pGenoType
;
// base interface
SfxSlot
*
pSlots
;
// SlotMap
sal_uInt16
nCount
;
// number of slots in SlotMap
sal_uInt16
nCount
;
// number of slots in SlotMap
SfxInterfaceId
nClassId
;
// Id of interface
ResId
aNameResId
;
// ResId of external interface name
SfxInterface_Impl
*
pImpData
;
...
...
@@ -63,7 +63,7 @@ public:
const
char
*
GetClassName
()
const
{
return
pName
;
}
bool
HasName
()
const
{
return
0
!=
aNameResId
.
GetId
();
}
OUString
GetName
()
const
OUString
GetName
()
const
{
return
HasName
()
?
aNameResId
.
toString
()
:
OUString
();
}
ResMgr
*
GetResMgr
()
const
{
return
aNameResId
.
GetResMgr
();
}
...
...
@@ -73,8 +73,8 @@ public:
void
RegisterObjectBar
(
sal_uInt16
,
const
ResId
&
,
const
OUString
*
pST
=
0
);
void
RegisterObjectBar
(
sal_uInt16
,
const
ResId
&
,
sal_uInt32
nFeature
,
const
OUString
*
pST
=
0
);
void
RegisterChildWindow
(
sal_uInt16
,
sal_B
ool
bContext
,
const
OUString
*
pST
=
0
);
void
RegisterChildWindow
(
sal_uInt16
,
sal_B
ool
bContext
,
sal_uInt32
nFeature
,
const
OUString
*
pST
=
0
);
void
RegisterChildWindow
(
sal_uInt16
,
b
ool
bContext
,
const
OUString
*
pST
=
0
);
void
RegisterChildWindow
(
sal_uInt16
,
b
ool
bContext
,
sal_uInt32
nFeature
,
const
OUString
*
pST
=
0
);
void
RegisterStatusBar
(
const
ResId
&
);
const
ResId
&
GetObjectBarResId
(
sal_uInt16
nNo
)
const
;
sal_uInt16
GetObjectBarPos
(
sal_uInt16
nNo
)
const
;
...
...
@@ -82,7 +82,7 @@ public:
sal_uInt16
GetObjectBarCount
()
const
;
void
SetObjectBarPos
(
sal_uInt16
nPos
,
sal_uInt16
nId
);
const
OUString
*
GetObjectBarName
(
sal_uInt16
nNo
)
const
;
sal_Bool
IsObjectBarVisible
(
sal_uInt16
nNo
)
const
;
bool
IsObjectBarVisible
(
sal_uInt16
nNo
)
const
;
sal_uInt32
GetChildWindowFeature
(
sal_uInt16
nNo
)
const
;
sal_uInt32
GetChildWindowId
(
sal_uInt16
nNo
)
const
;
sal_uInt16
GetChildWindowCount
()
const
;
...
...
include/sfx2/shell.hxx
Dosyayı görüntüle @
2cf50102
...
...
@@ -365,13 +365,13 @@ inline void SfxShell::SetPool
GetStaticInterface()->RegisterObjectBar( nPos, rResId, nFeature )
#define SFX_CHILDWINDOW_REGISTRATION(nId) \
GetStaticInterface()->RegisterChildWindow( nId,
(sal_Bool) sal_F
alse )
GetStaticInterface()->RegisterChildWindow( nId,
f
alse )
#define SFX_FEATURED_CHILDWINDOW_REGISTRATION(nId,nFeature) \
GetStaticInterface()->RegisterChildWindow( nId,
(sal_Bool) sal_F
alse, nFeature )
GetStaticInterface()->RegisterChildWindow( nId,
f
alse, nFeature )
#define SFX_CHILDWINDOW_CONTEXT_REGISTRATION(nId) \
GetStaticInterface()->RegisterChildWindow( nId,
(sal_Bool) sal_T
rue )
GetStaticInterface()->RegisterChildWindow( nId,
t
rue )
#define SFX_POPUPMENU_REGISTRATION(rResId) \
GetStaticInterface()->RegisterPopupMenu( rResId )
...
...
sfx2/source/control/objface.cxx
Dosyayı görüntüle @
2cf50102
...
...
@@ -53,17 +53,17 @@ SfxCompareSlots_Impl( const void* pSmaller, const void* pBigger )
struct
SfxObjectUI_Impl
{
sal_uInt16
nPos
;
ResId
aResId
;
sal_Bool
bVisible
;
sal_Bool
bContext
;
OUString
*
pName
;
ResId
aResId
;
bool
bVisible
;
bool
bContext
;
OUString
*
pName
;
sal_uInt32
nFeature
;
SfxObjectUI_Impl
(
sal_uInt16
n
,
const
ResId
&
rResId
,
sal_B
ool
bVis
,
sal_uInt32
nFeat
)
:
SfxObjectUI_Impl
(
sal_uInt16
n
,
const
ResId
&
rResId
,
b
ool
bVis
,
sal_uInt32
nFeat
)
:
nPos
(
n
),
aResId
(
rResId
.
GetId
(),
*
rResId
.
GetResMgr
()),
bVisible
(
bVis
),
bContext
(
sal_F
alse
),
bContext
(
f
alse
),
pName
(
0
),
nFeature
(
nFeat
)
{
...
...
@@ -85,13 +85,13 @@ struct SfxInterface_Impl
ResId
aPopupRes
;
// registered PopupMenu
ResId
aStatBarRes
;
// registered StatusBar
SfxModule
*
pModule
;
sal_Bool
bRegistered
;
bool
bRegistered
;
SfxInterface_Impl
()
:
aPopupRes
(
0
,
*
SfxApplication
::
GetOrCreate
()
->
GetSfxResManager
()),
aStatBarRes
(
0
,
*
SfxApplication
::
GetOrCreate
()
->
GetSfxResManager
())
,
pModule
(
NULL
)
,
bRegistered
(
sal_F
alse
)
,
bRegistered
(
f
alse
)
{
}
...
...
@@ -129,7 +129,7 @@ SfxInterface::SfxInterface( const char *pClassName,
void
SfxInterface
::
Register
(
SfxModule
*
pMod
)
{
pImpData
->
bRegistered
=
sal_T
rue
;
pImpData
->
bRegistered
=
t
rue
;
pImpData
->
pModule
=
pMod
;
if
(
pMod
)
pMod
->
GetSlotPool
()
->
RegisterInterface
(
*
this
);
...
...
@@ -287,7 +287,7 @@ void SfxInterface::SetSlotMap( SfxSlot& rSlotMap, sal_uInt16 nSlotCount )
SfxInterface
::~
SfxInterface
()
{
SfxModule
*
pMod
=
pImpData
->
pModule
;
sal_B
ool
bRegistered
=
pImpData
->
bRegistered
;
b
ool
bRegistered
=
pImpData
->
bRegistered
;
delete
pImpData
;
assert
(
bRegistered
);
if
(
bRegistered
)
...
...
@@ -404,7 +404,7 @@ SfxObjectUI_Impl* CreateObjectBarUI_Impl( sal_uInt16 nPos, const ResId& rResId,
if
((
nPos
&
SFX_VISIBILITY_MASK
)
==
0
)
nPos
|=
SFX_VISIBILITY_STANDARD
;
SfxObjectUI_Impl
*
pUI
=
new
SfxObjectUI_Impl
(
nPos
,
rResId
,
sal_T
rue
,
nFeature
);
SfxObjectUI_Impl
*
pUI
=
new
SfxObjectUI_Impl
(
nPos
,
rResId
,
t
rue
,
nFeature
);
if
(
pStr
==
0
)
{
...
...
@@ -426,7 +426,7 @@ SfxObjectUI_Impl* CreateObjectBarUI_Impl( sal_uInt16 nPos, const ResId& rResId,
const
ResId
&
SfxInterface
::
GetObjectBarResId
(
sal_uInt16
nNo
)
const
{
sal_B
ool
bGenoType
=
(
pGenoType
!=
0
&&
!
pGenoType
->
HasName
());
b
ool
bGenoType
=
(
pGenoType
!=
0
&&
!
pGenoType
->
HasName
());
if
(
bGenoType
)
{
// Are there toolbars in the super class?
...
...
@@ -448,7 +448,7 @@ const ResId& SfxInterface::GetObjectBarResId( sal_uInt16 nNo ) const
sal_uInt16
SfxInterface
::
GetObjectBarPos
(
sal_uInt16
nNo
)
const
{
sal_B
ool
bGenoType
=
(
pGenoType
!=
0
&&
!
pGenoType
->
HasName
());
b
ool
bGenoType
=
(
pGenoType
!=
0
&&
!
pGenoType
->
HasName
());
if
(
bGenoType
)
{
// Are there toolbars in the super class?
...
...
@@ -477,14 +477,14 @@ sal_uInt16 SfxInterface::GetObjectBarCount() const
}
void
SfxInterface
::
RegisterChildWindow
(
sal_uInt16
nId
,
sal_B
ool
bContext
,
const
OUString
*
pChildWinName
)
void
SfxInterface
::
RegisterChildWindow
(
sal_uInt16
nId
,
b
ool
bContext
,
const
OUString
*
pChildWinName
)
{
RegisterChildWindow
(
nId
,
bContext
,
0UL
,
pChildWinName
);
}
void
SfxInterface
::
RegisterChildWindow
(
sal_uInt16
nId
,
sal_B
ool
bContext
,
sal_uInt32
nFeature
,
const
OUString
*
)
void
SfxInterface
::
RegisterChildWindow
(
sal_uInt16
nId
,
b
ool
bContext
,
sal_uInt32
nFeature
,
const
OUString
*
)
{
SfxObjectUI_Impl
*
pUI
=
new
SfxObjectUI_Impl
(
0
,
ResId
(
nId
,
*
SfxApplication
::
GetOrCreate
()
->
GetOffResManager_Impl
()),
sal_T
rue
,
nFeature
);
SfxObjectUI_Impl
*
pUI
=
new
SfxObjectUI_Impl
(
0
,
ResId
(
nId
,
*
SfxApplication
::
GetOrCreate
()
->
GetOffResManager_Impl
()),
t
rue
,
nFeature
);
pUI
->
bContext
=
bContext
;
pImpData
->
aChildWindows
.
push_back
(
pUI
);
}
...
...
@@ -564,7 +564,7 @@ const ResId& SfxInterface::GetStatusBarResId() const
const
OUString
*
SfxInterface
::
GetObjectBarName
(
sal_uInt16
nNo
)
const
{
sal_B
ool
bGenoType
=
(
pGenoType
!=
0
&&
!
pGenoType
->
HasName
());
b
ool
bGenoType
=
(
pGenoType
!=
0
&&
!
pGenoType
->
HasName
());
if
(
bGenoType
)
{
// Are there toolbars in the super class?
...
...
@@ -583,7 +583,7 @@ const OUString* SfxInterface::GetObjectBarName ( sal_uInt16 nNo ) const
sal_uInt32
SfxInterface
::
GetObjectBarFeature
(
sal_uInt16
nNo
)
const
{
sal_B
ool
bGenoType
=
(
pGenoType
!=
0
&&
!
pGenoType
->
HasName
());
b
ool
bGenoType
=
(
pGenoType
!=
0
&&
!
pGenoType
->
HasName
());
if
(
bGenoType
)
{
// Are there toolbars in the super class?
...
...
@@ -600,9 +600,9 @@ sal_uInt32 SfxInterface::GetObjectBarFeature ( sal_uInt16 nNo ) const
return
pImpData
->
aObjectBars
[
nNo
]
->
nFeature
;
}
sal_B
ool
SfxInterface
::
IsObjectBarVisible
(
sal_uInt16
nNo
)
const
b
ool
SfxInterface
::
IsObjectBarVisible
(
sal_uInt16
nNo
)
const
{
sal_B
ool
bGenoType
=
(
pGenoType
!=
0
&&
!
pGenoType
->
HasName
());
b
ool
bGenoType
=
(
pGenoType
!=
0
&&
!
pGenoType
->
HasName
());
if
(
bGenoType
)
{
// Are there toolbars in the super class?
...
...
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