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
077cc9fb
Kaydet (Commit)
077cc9fb
authored
Ock 08, 2016
tarafından
Eike Rathke
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
prepare for hidden flag in function description for Function Wizard
Change-Id: Ic018ea5b962a66b6543e57d9cc1d44711e51de6e
üst
31bc9a22
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
40 additions
and
7 deletions
+40
-7
FormulaHelper.cxx
formula/source/ui/dlg/FormulaHelper.cxx
+1
-0
IFunctionDescription.hxx
include/formula/IFunctionDescription.hxx
+1
-0
FunctionHelper.hxx
reportdesign/source/ui/inc/FunctionHelper.hxx
+1
-0
FunctionHelper.cxx
reportdesign/source/ui/misc/FunctionHelper.cxx
+5
-0
funcdesc.hxx
sc/inc/funcdesc.hxx
+8
-0
funcdesc.cxx
sc/source/core/data/funcdesc.cxx
+13
-2
scfuncs.src
sc/source/ui/src/scfuncs.src
+11
-5
No files found.
formula/source/ui/dlg/FormulaHelper.cxx
Dosyayı görüntüle @
077cc9fb
...
@@ -44,6 +44,7 @@ namespace formula
...
@@ -44,6 +44,7 @@ namespace formula
virtual
void
initArgumentInfo
()
const
override
{}
virtual
void
initArgumentInfo
()
const
override
{}
virtual
OUString
getSignature
()
const
override
{
return
OUString
();
}
virtual
OUString
getSignature
()
const
override
{
return
OUString
();
}
virtual
OString
getHelpId
()
const
override
{
return
""
;
}
virtual
OString
getHelpId
()
const
override
{
return
""
;
}
virtual
bool
isHidden
()
const
override
{
return
false
;
}
virtual
sal_uInt32
getParameterCount
()
const
override
{
return
0
;
}
virtual
sal_uInt32
getParameterCount
()
const
override
{
return
0
;
}
virtual
sal_uInt32
getVarArgsStart
()
const
override
{
return
0
;
}
virtual
sal_uInt32
getVarArgsStart
()
const
override
{
return
0
;
}
virtual
OUString
getParameterName
(
sal_uInt32
)
const
override
{
return
OUString
();
}
virtual
OUString
getParameterName
(
sal_uInt32
)
const
override
{
return
OUString
();
}
...
...
include/formula/IFunctionDescription.hxx
Dosyayı görüntüle @
077cc9fb
...
@@ -88,6 +88,7 @@ namespace formula
...
@@ -88,6 +88,7 @@ namespace formula
virtual
void
initArgumentInfo
()
const
=
0
;
virtual
void
initArgumentInfo
()
const
=
0
;
virtual
OUString
getSignature
()
const
=
0
;
virtual
OUString
getSignature
()
const
=
0
;
virtual
OString
getHelpId
()
const
=
0
;
virtual
OString
getHelpId
()
const
=
0
;
virtual
bool
isHidden
()
const
=
0
;
// parameter
// parameter
virtual
sal_uInt32
getParameterCount
()
const
=
0
;
virtual
sal_uInt32
getParameterCount
()
const
=
0
;
...
...
reportdesign/source/ui/inc/FunctionHelper.hxx
Dosyayı görüntüle @
077cc9fb
...
@@ -71,6 +71,7 @@ public:
...
@@ -71,6 +71,7 @@ public:
virtual
void
initArgumentInfo
()
const
override
;
virtual
void
initArgumentInfo
()
const
override
;
virtual
OUString
getSignature
()
const
override
;
virtual
OUString
getSignature
()
const
override
;
virtual
OString
getHelpId
()
const
override
;
virtual
OString
getHelpId
()
const
override
;
virtual
bool
isHidden
()
const
override
;
virtual
sal_uInt32
getParameterCount
()
const
override
;
virtual
sal_uInt32
getParameterCount
()
const
override
;
virtual
sal_uInt32
getVarArgsStart
()
const
override
;
virtual
sal_uInt32
getVarArgsStart
()
const
override
;
virtual
OUString
getParameterName
(
sal_uInt32
_nPos
)
const
override
;
virtual
OUString
getParameterName
(
sal_uInt32
_nPos
)
const
override
;
...
...
reportdesign/source/ui/misc/FunctionHelper.cxx
Dosyayı görüntüle @
077cc9fb
...
@@ -193,6 +193,11 @@ OString FunctionDescription::getHelpId() const
...
@@ -193,6 +193,11 @@ OString FunctionDescription::getHelpId() const
return
OString
();
return
OString
();
}
}
bool
FunctionDescription
::
isHidden
()
const
{
return
false
;
}
sal_uInt32
FunctionDescription
::
getParameterCount
()
const
sal_uInt32
FunctionDescription
::
getParameterCount
()
const
{
{
return
m_aParameter
.
getLength
();
return
m_aParameter
.
getLength
();
...
...
sc/inc/funcdesc.hxx
Dosyayı görüntüle @
077cc9fb
...
@@ -102,6 +102,13 @@ public:
...
@@ -102,6 +102,13 @@ public:
*/
*/
virtual
OString
getHelpId
()
const
override
;
virtual
OString
getHelpId
()
const
override
;
/** Returns whether function is hidden and not offered in the Function
Wizard unless used in an expression.
@return flag whether function is hidden
*/
virtual
bool
isHidden
()
const
override
;
/**
/**
Returns number of arguments
Returns number of arguments
...
@@ -216,6 +223,7 @@ public:
...
@@ -216,6 +223,7 @@ public:
OString
sHelpId
;
/**< HelpId of function */
OString
sHelpId
;
/**< HelpId of function */
bool
bIncomplete
:
1
;
/**< Incomplete argument info (set for add-in info from configuration) */
bool
bIncomplete
:
1
;
/**< Incomplete argument info (set for add-in info from configuration) */
bool
bHasSuppressedArgs
:
1
;
/**< Whether there is any suppressed parameter. */
bool
bHasSuppressedArgs
:
1
;
/**< Whether there is any suppressed parameter. */
bool
mbHidden
:
1
;
/**< Whether function is hidden */
};
};
/**
/**
...
...
sc/source/core/data/funcdesc.cxx
Dosyayı görüntüle @
077cc9fb
...
@@ -69,7 +69,8 @@ ScFuncDesc::ScFuncDesc() :
...
@@ -69,7 +69,8 @@ ScFuncDesc::ScFuncDesc() :
nArgCount
(
0
),
nArgCount
(
0
),
nVarArgsStart
(
0
),
nVarArgsStart
(
0
),
bIncomplete
(
false
),
bIncomplete
(
false
),
bHasSuppressedArgs
(
false
)
bHasSuppressedArgs
(
false
),
mbHidden
(
false
)
{}
{}
ScFuncDesc
::~
ScFuncDesc
()
ScFuncDesc
::~
ScFuncDesc
()
...
@@ -105,6 +106,7 @@ void ScFuncDesc::Clear()
...
@@ -105,6 +106,7 @@ void ScFuncDesc::Clear()
sHelpId
.
clear
();
sHelpId
.
clear
();
bIncomplete
=
false
;
bIncomplete
=
false
;
bHasSuppressedArgs
=
false
;
bHasSuppressedArgs
=
false
;
mbHidden
=
false
;
}
}
OUString
ScFuncDesc
::
GetParamList
()
const
OUString
ScFuncDesc
::
GetParamList
()
const
...
@@ -354,6 +356,11 @@ OString ScFuncDesc::getHelpId() const
...
@@ -354,6 +356,11 @@ OString ScFuncDesc::getHelpId() const
return
sHelpId
;
return
sHelpId
;
}
}
bool
ScFuncDesc
::
isHidden
()
const
{
return
mbHidden
;
}
sal_uInt32
ScFuncDesc
::
getParameterCount
()
const
sal_uInt32
ScFuncDesc
::
getParameterCount
()
const
{
{
return
nArgCount
;
return
nArgCount
;
...
@@ -799,7 +806,11 @@ sal_Unicode ScFunctionMgr::getSingleToken(const formula::IFunctionManager::EToke
...
@@ -799,7 +806,11 @@ sal_Unicode ScFunctionMgr::getSingleToken(const formula::IFunctionManager::EToke
ScFuncRes
::
ScFuncRes
(
ResId
&
aRes
,
ScFuncDesc
*
pDesc
,
bool
&
rbSuppressed
)
ScFuncRes
::
ScFuncRes
(
ResId
&
aRes
,
ScFuncDesc
*
pDesc
,
bool
&
rbSuppressed
)
:
Resource
(
aRes
)
:
Resource
(
aRes
)
{
{
rbSuppressed
=
(
bool
)
GetNum
();
sal_uInt16
nFunctionFlags
=
GetNum
();
// Bit 1: entirely suppressed
// Bit 2: hidden unless used
rbSuppressed
=
((
nFunctionFlags
&
1
)
!=
0
);
pDesc
->
mbHidden
=
((
nFunctionFlags
&
2
)
!=
0
);
pDesc
->
nCategory
=
GetNum
();
pDesc
->
nCategory
=
GetNum
();
pDesc
->
sHelpId
=
ReadByteStringRes
();
pDesc
->
sHelpId
=
ReadByteStringRes
();
pDesc
->
nArgCount
=
GetNum
();
pDesc
->
nArgCount
=
GetNum
();
...
...
sc/source/ui/src/scfuncs.src
Dosyayı görüntüle @
077cc9fb
...
@@ -31,11 +31,17 @@
...
@@ -31,11 +31,17 @@
*
*
* ExtraData block with:
* ExtraData block with:
*
*
* Boolean flag whether function is suppressed. Usually 0. This may be
* 16-bit value:
* used to add UI string resources before UI freeze if implementation
*
* isn't ready yet without displaying them in the function wizard,
* Bit 1: boolean flag whether function is suppressed. Usually 0. This
* most recent used list and other UI elements. Also not available via
* may be used to add UI string resources before UI freeze if
* API then.
* implementation isn't ready yet without displaying them in the
* function wizard, most recent used list and other UI elements. Also
* not available via API then.
*
* Bit 2: boolean flag whether function is hidden in the Function
* Wizard unless used in an expression.
*
*
*
* Function group (text, math, ...), one of ID_FUNCTION_GRP_...
* Function group (text, math, ...), one of ID_FUNCTION_GRP_...
*
*
...
...
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