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
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
24 deletions
+24
-24
objface.hxx
include/sfx2/objface.hxx
+3
-3
shell.hxx
include/sfx2/shell.hxx
+3
-3
objface.cxx
sfx2/source/control/objface.cxx
+18
-18
No files found.
include/sfx2/objface.hxx
Dosyayı görüntüle @
2cf50102
...
@@ -73,8 +73,8 @@ public:
...
@@ -73,8 +73,8 @@ public:
void
RegisterObjectBar
(
sal_uInt16
,
const
ResId
&
,
const
OUString
*
pST
=
0
);
void
RegisterObjectBar
(
sal_uInt16
,
const
ResId
&
,
const
OUString
*
pST
=
0
);
void
RegisterObjectBar
(
sal_uInt16
,
const
ResId
&
,
sal_uInt32
nFeature
,
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
,
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
,
sal_uInt32
nFeature
,
const
OUString
*
pST
=
0
);
void
RegisterStatusBar
(
const
ResId
&
);
void
RegisterStatusBar
(
const
ResId
&
);
const
ResId
&
GetObjectBarResId
(
sal_uInt16
nNo
)
const
;
const
ResId
&
GetObjectBarResId
(
sal_uInt16
nNo
)
const
;
sal_uInt16
GetObjectBarPos
(
sal_uInt16
nNo
)
const
;
sal_uInt16
GetObjectBarPos
(
sal_uInt16
nNo
)
const
;
...
@@ -82,7 +82,7 @@ public:
...
@@ -82,7 +82,7 @@ public:
sal_uInt16
GetObjectBarCount
()
const
;
sal_uInt16
GetObjectBarCount
()
const
;
void
SetObjectBarPos
(
sal_uInt16
nPos
,
sal_uInt16
nId
);
void
SetObjectBarPos
(
sal_uInt16
nPos
,
sal_uInt16
nId
);
const
OUString
*
GetObjectBarName
(
sal_uInt16
nNo
)
const
;
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
GetChildWindowFeature
(
sal_uInt16
nNo
)
const
;
sal_uInt32
GetChildWindowId
(
sal_uInt16
nNo
)
const
;
sal_uInt32
GetChildWindowId
(
sal_uInt16
nNo
)
const
;
sal_uInt16
GetChildWindowCount
()
const
;
sal_uInt16
GetChildWindowCount
()
const
;
...
...
include/sfx2/shell.hxx
Dosyayı görüntüle @
2cf50102
...
@@ -365,13 +365,13 @@ inline void SfxShell::SetPool
...
@@ -365,13 +365,13 @@ inline void SfxShell::SetPool
GetStaticInterface()->RegisterObjectBar( nPos, rResId, nFeature )
GetStaticInterface()->RegisterObjectBar( nPos, rResId, nFeature )
#define SFX_CHILDWINDOW_REGISTRATION(nId) \
#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) \
#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) \
#define SFX_CHILDWINDOW_CONTEXT_REGISTRATION(nId) \
GetStaticInterface()->RegisterChildWindow( nId,
(sal_Bool) sal_T
rue )
GetStaticInterface()->RegisterChildWindow( nId,
t
rue )
#define SFX_POPUPMENU_REGISTRATION(rResId) \
#define SFX_POPUPMENU_REGISTRATION(rResId) \
GetStaticInterface()->RegisterPopupMenu( rResId )
GetStaticInterface()->RegisterPopupMenu( rResId )
...
...
sfx2/source/control/objface.cxx
Dosyayı görüntüle @
2cf50102
...
@@ -54,16 +54,16 @@ struct SfxObjectUI_Impl
...
@@ -54,16 +54,16 @@ struct SfxObjectUI_Impl
{
{
sal_uInt16
nPos
;
sal_uInt16
nPos
;
ResId
aResId
;
ResId
aResId
;
sal_Bool
bVisible
;
bool
bVisible
;
sal_Bool
bContext
;
bool
bContext
;
OUString
*
pName
;
OUString
*
pName
;
sal_uInt32
nFeature
;
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
),
nPos
(
n
),
aResId
(
rResId
.
GetId
(),
*
rResId
.
GetResMgr
()),
aResId
(
rResId
.
GetId
(),
*
rResId
.
GetResMgr
()),
bVisible
(
bVis
),
bVisible
(
bVis
),
bContext
(
sal_F
alse
),
bContext
(
f
alse
),
pName
(
0
),
pName
(
0
),
nFeature
(
nFeat
)
nFeature
(
nFeat
)
{
{
...
@@ -85,13 +85,13 @@ struct SfxInterface_Impl
...
@@ -85,13 +85,13 @@ struct SfxInterface_Impl
ResId
aPopupRes
;
// registered PopupMenu
ResId
aPopupRes
;
// registered PopupMenu
ResId
aStatBarRes
;
// registered StatusBar
ResId
aStatBarRes
;
// registered StatusBar
SfxModule
*
pModule
;
SfxModule
*
pModule
;
sal_Bool
bRegistered
;
bool
bRegistered
;
SfxInterface_Impl
()
:
SfxInterface_Impl
()
:
aPopupRes
(
0
,
*
SfxApplication
::
GetOrCreate
()
->
GetSfxResManager
()),
aPopupRes
(
0
,
*
SfxApplication
::
GetOrCreate
()
->
GetSfxResManager
()),
aStatBarRes
(
0
,
*
SfxApplication
::
GetOrCreate
()
->
GetSfxResManager
())
aStatBarRes
(
0
,
*
SfxApplication
::
GetOrCreate
()
->
GetSfxResManager
())
,
pModule
(
NULL
)
,
pModule
(
NULL
)
,
bRegistered
(
sal_F
alse
)
,
bRegistered
(
f
alse
)
{
{
}
}
...
@@ -129,7 +129,7 @@ SfxInterface::SfxInterface( const char *pClassName,
...
@@ -129,7 +129,7 @@ SfxInterface::SfxInterface( const char *pClassName,
void
SfxInterface
::
Register
(
SfxModule
*
pMod
)
void
SfxInterface
::
Register
(
SfxModule
*
pMod
)
{
{
pImpData
->
bRegistered
=
sal_T
rue
;
pImpData
->
bRegistered
=
t
rue
;
pImpData
->
pModule
=
pMod
;
pImpData
->
pModule
=
pMod
;
if
(
pMod
)
if
(
pMod
)
pMod
->
GetSlotPool
()
->
RegisterInterface
(
*
this
);
pMod
->
GetSlotPool
()
->
RegisterInterface
(
*
this
);
...
@@ -287,7 +287,7 @@ void SfxInterface::SetSlotMap( SfxSlot& rSlotMap, sal_uInt16 nSlotCount )
...
@@ -287,7 +287,7 @@ void SfxInterface::SetSlotMap( SfxSlot& rSlotMap, sal_uInt16 nSlotCount )
SfxInterface
::~
SfxInterface
()
SfxInterface
::~
SfxInterface
()
{
{
SfxModule
*
pMod
=
pImpData
->
pModule
;
SfxModule
*
pMod
=
pImpData
->
pModule
;
sal_B
ool
bRegistered
=
pImpData
->
bRegistered
;
b
ool
bRegistered
=
pImpData
->
bRegistered
;
delete
pImpData
;
delete
pImpData
;
assert
(
bRegistered
);
assert
(
bRegistered
);
if
(
bRegistered
)
if
(
bRegistered
)
...
@@ -404,7 +404,7 @@ SfxObjectUI_Impl* CreateObjectBarUI_Impl( sal_uInt16 nPos, const ResId& rResId,
...
@@ -404,7 +404,7 @@ SfxObjectUI_Impl* CreateObjectBarUI_Impl( sal_uInt16 nPos, const ResId& rResId,
if
((
nPos
&
SFX_VISIBILITY_MASK
)
==
0
)
if
((
nPos
&
SFX_VISIBILITY_MASK
)
==
0
)
nPos
|=
SFX_VISIBILITY_STANDARD
;
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
)
if
(
pStr
==
0
)
{
{
...
@@ -426,7 +426,7 @@ SfxObjectUI_Impl* CreateObjectBarUI_Impl( sal_uInt16 nPos, const ResId& rResId,
...
@@ -426,7 +426,7 @@ SfxObjectUI_Impl* CreateObjectBarUI_Impl( sal_uInt16 nPos, const ResId& rResId,
const
ResId
&
SfxInterface
::
GetObjectBarResId
(
sal_uInt16
nNo
)
const
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
)
if
(
bGenoType
)
{
{
// Are there toolbars in the super class?
// Are there toolbars in the super class?
...
@@ -448,7 +448,7 @@ const ResId& SfxInterface::GetObjectBarResId( sal_uInt16 nNo ) const
...
@@ -448,7 +448,7 @@ const ResId& SfxInterface::GetObjectBarResId( sal_uInt16 nNo ) const
sal_uInt16
SfxInterface
::
GetObjectBarPos
(
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
)
if
(
bGenoType
)
{
{
// Are there toolbars in the super class?
// Are there toolbars in the super class?
...
@@ -477,14 +477,14 @@ sal_uInt16 SfxInterface::GetObjectBarCount() const
...
@@ -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
);
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
;
pUI
->
bContext
=
bContext
;
pImpData
->
aChildWindows
.
push_back
(
pUI
);
pImpData
->
aChildWindows
.
push_back
(
pUI
);
}
}
...
@@ -564,7 +564,7 @@ const ResId& SfxInterface::GetStatusBarResId() const
...
@@ -564,7 +564,7 @@ const ResId& SfxInterface::GetStatusBarResId() const
const
OUString
*
SfxInterface
::
GetObjectBarName
(
sal_uInt16
nNo
)
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
)
if
(
bGenoType
)
{
{
// Are there toolbars in the super class?
// Are there toolbars in the super class?
...
@@ -583,7 +583,7 @@ const OUString* SfxInterface::GetObjectBarName ( sal_uInt16 nNo ) const
...
@@ -583,7 +583,7 @@ const OUString* SfxInterface::GetObjectBarName ( sal_uInt16 nNo ) const
sal_uInt32
SfxInterface
::
GetObjectBarFeature
(
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
)
if
(
bGenoType
)
{
{
// Are there toolbars in the super class?
// Are there toolbars in the super class?
...
@@ -600,9 +600,9 @@ sal_uInt32 SfxInterface::GetObjectBarFeature ( sal_uInt16 nNo ) const
...
@@ -600,9 +600,9 @@ sal_uInt32 SfxInterface::GetObjectBarFeature ( sal_uInt16 nNo ) const
return
pImpData
->
aObjectBars
[
nNo
]
->
nFeature
;
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
)
if
(
bGenoType
)
{
{
// Are there toolbars in the super class?
// 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