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
d3816ab9
Kaydet (Commit)
d3816ab9
authored
Mar 09, 2017
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Use o3tl::typed_flags
Change-Id: I02b88e60a03441c3c4df6ed32616bb618089539c
üst
dfad3e87
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
23 deletions
+3
-23
bindings.hxx
include/sfx2/bindings.hxx
+3
-23
No files found.
include/sfx2/bindings.hxx
Dosyayı görüntüle @
d3816ab9
...
@@ -23,6 +23,7 @@
...
@@ -23,6 +23,7 @@
#include <memory>
#include <memory>
#include <o3tl/typed_flags_set.hxx>
#include <sfx2/dllapi.h>
#include <sfx2/dllapi.h>
#include <sal/types.h>
#include <sal/types.h>
#include <rtl/strbuf.hxx>
#include <rtl/strbuf.hxx>
...
@@ -61,30 +62,9 @@ enum class SfxCallMode : sal_uInt16
...
@@ -61,30 +62,9 @@ enum class SfxCallMode : sal_uInt16
API
=
0x08
,
// API call (silent)
API
=
0x08
,
// API call (silent)
MODAL
=
0x10
// despite ModalMode
MODAL
=
0x10
// despite ModalMode
};
};
// make combining these type-safe
inline
SfxCallMode
operator
|
(
SfxCallMode
lhs
,
SfxCallMode
rhs
)
{
return
static_cast
<
SfxCallMode
>
(
static_cast
<
sal_uInt16
>
(
lhs
)
|
static_cast
<
sal_uInt16
>
(
rhs
));
}
inline
SfxCallMode
operator
&
(
SfxCallMode
lhs
,
SfxCallMode
rhs
)
{
return
static_cast
<
SfxCallMode
>
(
static_cast
<
sal_uInt16
>
(
lhs
)
&
static_cast
<
sal_uInt16
>
(
rhs
));
}
inline
SfxCallMode
operator
~
(
SfxCallMode
rhs
)
{
return
static_cast
<
SfxCallMode
>
(
0x1f
&
~
(
static_cast
<
sal_uInt16
>
(
rhs
)));
}
inline
SfxCallMode
&
operator
|=
(
SfxCallMode
&
lhs
,
SfxCallMode
rhs
)
{
lhs
=
static_cast
<
SfxCallMode
>
(
static_cast
<
sal_uInt16
>
(
lhs
)
|
static_cast
<
sal_uInt16
>
(
rhs
));
return
lhs
;
}
inline
SfxCallMode
&
operator
&=
(
SfxCallMode
&
lhs
,
SfxCallMode
rhs
)
{
lhs
=
static_cast
<
SfxCallMode
>
(
static_cast
<
sal_uInt16
>
(
lhs
)
&
static_cast
<
sal_uInt16
>
(
rhs
));
return
lhs
;
}
template
<>
struct
o3tl
::
typed_flags
<
SfxCallMode
>:
o3tl
::
is_typed_flags
<
SfxCallMode
,
0x1F
>
{};
class
SFX2_DLLPUBLIC
SfxBindings
:
public
SfxBroadcaster
class
SFX2_DLLPUBLIC
SfxBindings
:
public
SfxBroadcaster
...
...
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