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
2e658321
Kaydet (Commit)
2e658321
authored
Eki 06, 2015
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
loplugin:mergeclasses
Change-Id: I84dee96b7a1f72db46e3330ec5195367dfce894a
üst
4281599a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
34 deletions
+9
-34
mergeclasses.results
compilerplugins/clang/mergeclasses.results
+0
-1
propertystorage.hxx
dbaccess/source/ui/inc/propertystorage.hxx
+8
-26
propertystorage.cxx
dbaccess/source/ui/misc/propertystorage.cxx
+1
-7
No files found.
compilerplugins/clang/mergeclasses.results
Dosyayı görüntüle @
2e658321
...
@@ -155,7 +155,6 @@ merge dbaui::(anonymous namespace)::ILabelProvider with dbaui::(anonymous namesp
...
@@ -155,7 +155,6 @@ merge dbaui::(anonymous namespace)::ILabelProvider with dbaui::(anonymous namesp
merge dbaui::IApplicationController with dbaui::OApplicationController
merge dbaui::IApplicationController with dbaui::OApplicationController
merge dbaui::IEntryFilter with dbaui::(anonymous namespace)::FilterByEntryDataId
merge dbaui::IEntryFilter with dbaui::(anonymous namespace)::FilterByEntryDataId
merge dbaui::OOdbcLibWrapper with dbaui::OOdbcEnumeration
merge dbaui::OOdbcLibWrapper with dbaui::OOdbcEnumeration
merge dbaui::PropertyStorage with dbaui::SetItemPropertyStorage
merge dbaui::SbaGridListener with dbaui::SbaXDataBrowserController
merge dbaui::SbaGridListener with dbaui::SbaXDataBrowserController
merge dbmm::IMigrationProgress with dbmm::ProgressPage
merge dbmm::IMigrationProgress with dbmm::ProgressPage
merge dbmm::IProgressConsumer with dbmm::ProgressDelegator
merge dbmm::IProgressConsumer with dbmm::ProgressDelegator
...
...
dbaccess/source/ui/inc/propertystorage.hxx
Dosyayı görüntüle @
2e658321
...
@@ -29,45 +29,27 @@ class SfxItemSet;
...
@@ -29,45 +29,27 @@ class SfxItemSet;
namespace
dbaui
namespace
dbaui
{
{
// PropertyStorage
class
SAL_NO_VTABLE
PropertyStorage
{
public
:
virtual
void
getPropertyValue
(
css
::
uno
::
Any
&
_out_rValue
)
const
=
0
;
virtual
void
setPropertyValue
(
const
css
::
uno
::
Any
&
_rValue
)
=
0
;
virtual
~
PropertyStorage
();
};
typedef
std
::
shared_ptr
<
PropertyStorage
>
PPropertyStorage
;
typedef
::
std
::
map
<
sal_Int32
,
PPropertyStorage
>
PropertyValues
;
// SetItemPropertyStorage
typedef
sal_uInt16
ItemId
;
/** a PropertyStorage implementation which stores the value in an item set
/** a PropertyStorage implementation which stores the value in an item set
*/
*/
class
SetItemPropertyStorage
:
public
PropertyStorage
class
SetItemPropertyStorage
{
{
public
:
public
:
SetItemPropertyStorage
(
SfxItemSet
&
_rItemSet
,
const
ItemId
_nItemID
)
SetItemPropertyStorage
(
SfxItemSet
&
_rItemSet
,
const
sal_uInt16
_nItemID
)
:
m_rItemSet
(
_rItemSet
)
:
m_rItemSet
(
_rItemSet
)
,
m_nItemID
(
_nItemID
)
,
m_nItemID
(
_nItemID
)
{
{
}
}
virtual
~
SetItemPropertyStorage
()
void
getPropertyValue
(
css
::
uno
::
Any
&
_out_rValue
)
const
;
{
void
setPropertyValue
(
const
css
::
uno
::
Any
&
_rValue
);
}
virtual
void
getPropertyValue
(
css
::
uno
::
Any
&
_out_rValue
)
const
SAL_OVERRIDE
;
virtual
void
setPropertyValue
(
const
css
::
uno
::
Any
&
_rValue
)
SAL_OVERRIDE
;
private
:
private
:
SfxItemSet
&
m_rItemSet
;
SfxItemSet
&
m_rItemSet
;
const
ItemId
m_nItemID
;
const
sal_uInt16
m_nItemID
;
};
};
typedef
::
std
::
map
<
sal_Int32
,
std
::
shared_ptr
<
SetItemPropertyStorage
>
>
PropertyValues
;
}
// namespace dbaui
}
// namespace dbaui
#endif // INCLUDED_DBACCESS_SOURCE_UI_INC_PROPERTYSTORAGE_HXX
#endif // INCLUDED_DBACCESS_SOURCE_UI_INC_PROPERTYSTORAGE_HXX
...
...
dbaccess/source/ui/misc/propertystorage.cxx
Dosyayı görüntüle @
2e658321
...
@@ -39,20 +39,14 @@ namespace dbaui
...
@@ -39,20 +39,14 @@ namespace dbaui
using
::
com
::
sun
::
star
::
uno
::
Any
;
using
::
com
::
sun
::
star
::
uno
::
Any
;
using
::
com
::
sun
::
star
::
uno
::
makeAny
;
using
::
com
::
sun
::
star
::
uno
::
makeAny
;
// PropertyStorage
PropertyStorage
::~
PropertyStorage
()
{
}
// helper
// helper
namespace
namespace
{
{
#undef UNOTYPE
template
<
class
ITEMTYPE
,
class
UNOTYPE
>
template
<
class
ITEMTYPE
,
class
UNOTYPE
>
class
ItemAdapter
class
ItemAdapter
{
{
public
:
public
:
static
bool
trySet
(
SfxItemSet
&
_rSet
,
ItemId
_nItemId
,
const
Any
&
_rValue
)
static
bool
trySet
(
SfxItemSet
&
_rSet
,
sal_uInt16
_nItemId
,
const
Any
&
_rValue
)
{
{
const
SfxPoolItem
&
rItem
(
_rSet
.
Get
(
_nItemId
)
);
const
SfxPoolItem
&
rItem
(
_rSet
.
Get
(
_nItemId
)
);
const
ITEMTYPE
*
pTypedItem
=
dynamic_cast
<
const
ITEMTYPE
*
>
(
&
rItem
);
const
ITEMTYPE
*
pTypedItem
=
dynamic_cast
<
const
ITEMTYPE
*
>
(
&
rItem
);
...
...
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