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
58a15227
Kaydet (Commit)
58a15227
authored
Nis 23, 2015
tarafından
Eike Rathke
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
add css::sheet::DatabaseRange property TotalsRow
Change-Id: Ica3b93ff25c936c0109ab3259c8a8015fcfb99eb
üst
4d7b194d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
0 deletions
+17
-0
DatabaseRange.idl
offapi/com/sun/star/sheet/DatabaseRange.idl
+7
-0
unonames.hxx
sc/inc/unonames.hxx
+1
-0
datauno.cxx
sc/source/ui/unoobj/datauno.cxx
+9
-0
No files found.
offapi/com/sun/star/sheet/DatabaseRange.idl
Dosyayı görüntüle @
58a15227
...
...
@@ -111,6 +111,13 @@ published service DatabaseRange
@
since
OOo
3.0
*/
[
optional
,
readonly
,
property
]
long
TokenIndex
;
/**
specifies
whether
this
range
includes
a
bottom
row
of
totals
.
@
since
LibreOffice
5.0
*/
[
optional
,
property
]
boolean
TotalsRow
;
}
;
...
...
sc/inc/unonames.hxx
Dosyayı görüntüle @
58a15227
...
...
@@ -309,6 +309,7 @@
#define SC_UNONAME_CONRES "ConnectionResource"
#define SC_UNONAME_TOKENINDEX "TokenIndex"
#define SC_UNONAME_ISSHAREDFMLA "IsSharedFormula"
#define SC_UNONAME_TOTALSROW "TotalsRow"
// text fields
#define SC_UNONAME_ANCTYPE "AnchorType"
...
...
sc/source/ui/unoobj/datauno.cxx
Dosyayı görüntüle @
58a15227
...
...
@@ -122,6 +122,7 @@ static const SfxItemPropertyMapEntry* lcl_GetDBRangePropertyMap()
{
OUString
(
SC_UNONAME_STRIPDAT
),
0
,
cppu
::
UnoType
<
bool
>::
get
(),
0
,
0
},
{
OUString
(
SC_UNONAME_TOKENINDEX
),
0
,
cppu
::
UnoType
<
sal_Int32
>::
get
(),
beans
::
PropertyAttribute
::
READONLY
,
0
},
{
OUString
(
SC_UNONAME_USEFLTCRT
),
0
,
cppu
::
UnoType
<
bool
>::
get
(),
0
,
0
},
{
OUString
(
SC_UNONAME_TOTALSROW
),
0
,
cppu
::
UnoType
<
bool
>::
get
(),
0
,
0
},
{
OUString
(),
0
,
css
::
uno
::
Type
(),
0
,
0
}
};
return
aDBRangePropertyMap_Impl
;
...
...
@@ -2082,6 +2083,8 @@ void SAL_CALL ScDatabaseRangeObj::setPropertyValue(
else
if
(
aString
==
SC_UNONAME_CONRES
)
{
}
else
if
(
aString
==
SC_UNONAME_TOTALSROW
)
aNewData
.
SetTotals
(
ScUnoHelpFunctions
::
GetBoolFromAny
(
aValue
)
);
else
bDo
=
false
;
...
...
@@ -2161,6 +2164,12 @@ uno::Any SAL_CALL ScDatabaseRangeObj::getPropertyValue( const OUString& aPropert
// get index for use in formula tokens (read-only)
aRet
<<=
static_cast
<
sal_Int32
>
(
GetDBData_Impl
()
->
GetIndex
());
}
else
if
(
aString
==
SC_UNONAME_TOTALSROW
)
{
bool
bTotals
(
GetDBData_Impl
()
->
HasTotals
());
ScUnoHelpFunctions
::
SetBoolInAny
(
aRet
,
bTotals
);
}
}
return
aRet
;
}
...
...
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