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
73c1ac01
Kaydet (Commit)
73c1ac01
authored
Mar 31, 2014
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
connectivity: sal_Bool->bool
Change-Id: Ia45f9776e0b27720647c664541a41b5f46eedc37
üst
3194d22a
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
22 additions
and
22 deletions
+22
-22
filtermanager.cxx
connectivity/source/commontools/filtermanager.cxx
+1
-1
predicateinput.cxx
connectivity/source/commontools/predicateinput.cxx
+9
-9
SingleSelectQueryComposer.cxx
dbaccess/source/core/api/SingleSelectQueryComposer.cxx
+2
-2
paramdialog.cxx
dbaccess/source/ui/dlg/paramdialog.cxx
+1
-1
queryfilter.cxx
dbaccess/source/ui/dlg/queryfilter.cxx
+1
-1
filtermanager.hxx
include/connectivity/filtermanager.hxx
+3
-3
predicateinput.hxx
include/connectivity/predicateinput.hxx
+5
-5
No files found.
connectivity/source/commontools/filtermanager.cxx
Dosyayı görüntüle @
73c1ac01
...
@@ -86,7 +86,7 @@ namespace dbtools
...
@@ -86,7 +86,7 @@ namespace dbtools
}
}
void
FilterManager
::
setApplyPublicFilter
(
sal_B
ool
_bApply
)
void
FilterManager
::
setApplyPublicFilter
(
b
ool
_bApply
)
{
{
if
(
m_bApplyPublicFilter
==
_bApply
)
if
(
m_bApplyPublicFilter
==
_bApply
)
return
;
return
;
...
...
connectivity/source/commontools/predicateinput.cxx
Dosyayı görüntüle @
73c1ac01
...
@@ -76,7 +76,7 @@ namespace dbtools
...
@@ -76,7 +76,7 @@ namespace dbtools
//= OPredicateInputController
//= OPredicateInputController
sal_B
ool
OPredicateInputController
::
getSeparatorChars
(
const
Locale
&
_rLocale
,
sal_Unicode
&
_rDecSep
,
sal_Unicode
&
_rThdSep
)
const
b
ool
OPredicateInputController
::
getSeparatorChars
(
const
Locale
&
_rLocale
,
sal_Unicode
&
_rDecSep
,
sal_Unicode
&
_rThdSep
)
const
{
{
_rDecSep
=
'.'
;
_rDecSep
=
'.'
;
_rThdSep
=
','
;
_rThdSep
=
','
;
...
@@ -88,14 +88,14 @@ namespace dbtools
...
@@ -88,14 +88,14 @@ namespace dbtools
aLocaleData
=
m_xLocaleData
->
getLocaleItem
(
_rLocale
);
aLocaleData
=
m_xLocaleData
->
getLocaleItem
(
_rLocale
);
_rDecSep
=
lcl_getSeparatorChar
(
aLocaleData
.
decimalSeparator
,
_rDecSep
);
_rDecSep
=
lcl_getSeparatorChar
(
aLocaleData
.
decimalSeparator
,
_rDecSep
);
_rThdSep
=
lcl_getSeparatorChar
(
aLocaleData
.
decimalSeparator
,
_rThdSep
);
_rThdSep
=
lcl_getSeparatorChar
(
aLocaleData
.
decimalSeparator
,
_rThdSep
);
return
sal_T
rue
;
return
t
rue
;
}
}
}
}
catch
(
const
Exception
&
)
catch
(
const
Exception
&
)
{
{
OSL_FAIL
(
"OPredicateInputController::getSeparatorChars: caught an exception!"
);
OSL_FAIL
(
"OPredicateInputController::getSeparatorChars: caught an exception!"
);
}
}
return
sal_F
alse
;
return
f
alse
;
}
}
...
@@ -245,13 +245,13 @@ namespace dbtools
...
@@ -245,13 +245,13 @@ namespace dbtools
}
}
sal_B
ool
OPredicateInputController
::
normalizePredicateString
(
b
ool
OPredicateInputController
::
normalizePredicateString
(
OUString
&
_rPredicateValue
,
const
Reference
<
XPropertySet
>
&
_rxField
,
OUString
*
_pErrorMessage
)
const
OUString
&
_rPredicateValue
,
const
Reference
<
XPropertySet
>
&
_rxField
,
OUString
*
_pErrorMessage
)
const
{
{
OSL_ENSURE
(
m_xConnection
.
is
()
&&
m_xFormatter
.
is
()
&&
_rxField
.
is
(),
OSL_ENSURE
(
m_xConnection
.
is
()
&&
m_xFormatter
.
is
()
&&
_rxField
.
is
(),
"OPredicateInputController::normalizePredicateString: invalid state or params!"
);
"OPredicateInputController::normalizePredicateString: invalid state or params!"
);
sal_Bool
bSuccess
=
sal_F
alse
;
bool
bSuccess
=
f
alse
;
if
(
m_xConnection
.
is
()
&&
m_xFormatter
.
is
()
&&
_rxField
.
is
()
)
if
(
m_xConnection
.
is
()
&&
m_xFormatter
.
is
()
&&
_rxField
.
is
()
)
{
{
// parse the string
// parse the string
...
@@ -275,7 +275,7 @@ namespace dbtools
...
@@ -275,7 +275,7 @@ namespace dbtools
_rPredicateValue
=
sTransformedText
;
_rPredicateValue
=
sTransformedText
;
delete
pParseNode
;
delete
pParseNode
;
bSuccess
=
sal_T
rue
;
bSuccess
=
t
rue
;
}
}
}
}
...
@@ -285,7 +285,7 @@ namespace dbtools
...
@@ -285,7 +285,7 @@ namespace dbtools
OUString
OPredicateInputController
::
getPredicateValue
(
OUString
OPredicateInputController
::
getPredicateValue
(
const
OUString
&
_rPredicateValue
,
const
Reference
<
XPropertySet
>
&
_rxField
,
const
OUString
&
_rPredicateValue
,
const
Reference
<
XPropertySet
>
&
_rxField
,
sal_B
ool
_bForStatementUse
,
OUString
*
_pErrorMessage
)
const
b
ool
_bForStatementUse
,
OUString
*
_pErrorMessage
)
const
{
{
OSL_ENSURE
(
_rxField
.
is
(),
"OPredicateInputController::getPredicateValue: invalid params!"
);
OSL_ENSURE
(
_rxField
.
is
(),
"OPredicateInputController::getPredicateValue: invalid params!"
);
OUString
sReturn
;
OUString
sReturn
;
...
@@ -331,7 +331,7 @@ namespace dbtools
...
@@ -331,7 +331,7 @@ namespace dbtools
}
}
OUString
OPredicateInputController
::
getPredicateValue
(
OUString
OPredicateInputController
::
getPredicateValue
(
const
OUString
&
_sField
,
const
OUString
&
_rPredicateValue
,
sal_B
ool
_bForStatementUse
,
OUString
*
_pErrorMessage
)
const
const
OUString
&
_sField
,
const
OUString
&
_rPredicateValue
,
b
ool
_bForStatementUse
,
OUString
*
_pErrorMessage
)
const
{
{
OUString
sReturn
=
_rPredicateValue
;
OUString
sReturn
=
_rPredicateValue
;
OUString
sError
;
OUString
sError
;
...
@@ -381,7 +381,7 @@ namespace dbtools
...
@@ -381,7 +381,7 @@ namespace dbtools
return
pParseNode
?
implParseNode
(
pParseNode
,
_bForStatementUse
)
:
sReturn
;
return
pParseNode
?
implParseNode
(
pParseNode
,
_bForStatementUse
)
:
sReturn
;
}
}
OUString
OPredicateInputController
::
implParseNode
(
OSQLParseNode
*
pParseNode
,
sal_B
ool
_bForStatementUse
)
const
OUString
OPredicateInputController
::
implParseNode
(
OSQLParseNode
*
pParseNode
,
b
ool
_bForStatementUse
)
const
{
{
OUString
sReturn
;
OUString
sReturn
;
if
(
pParseNode
)
if
(
pParseNode
)
...
...
dbaccess/source/core/api/SingleSelectQueryComposer.cxx
Dosyayı görüntüle @
73c1ac01
...
@@ -1513,11 +1513,11 @@ namespace
...
@@ -1513,11 +1513,11 @@ namespace
if
(
i_xSelectColumns
.
is
()
&&
i_xSelectColumns
->
hasByName
(
pAndIter
->
Name
)
)
if
(
i_xSelectColumns
.
is
()
&&
i_xSelectColumns
->
hasByName
(
pAndIter
->
Name
)
)
{
{
Reference
<
XPropertySet
>
xColumn
(
i_xSelectColumns
->
getByName
(
pAndIter
->
Name
),
UNO_QUERY
);
Reference
<
XPropertySet
>
xColumn
(
i_xSelectColumns
->
getByName
(
pAndIter
->
Name
),
UNO_QUERY
);
sValue
=
i_aPredicateInputController
.
getPredicateValue
(
sValue
,
xColumn
,
sal_T
rue
);
sValue
=
i_aPredicateInputController
.
getPredicateValue
(
sValue
,
xColumn
,
t
rue
);
}
}
else
else
{
{
sValue
=
i_aPredicateInputController
.
getPredicateValue
(
pAndIter
->
Name
,
sValue
,
sal_T
rue
);
sValue
=
i_aPredicateInputController
.
getPredicateValue
(
pAndIter
->
Name
,
sValue
,
t
rue
);
}
}
lcl_addFilterCriteria_throw
(
pAndIter
->
Handle
,
sValue
,
sRet
);
lcl_addFilterCriteria_throw
(
pAndIter
->
Handle
,
sValue
,
sRet
);
++
pAndIter
;
++
pAndIter
;
...
...
dbaccess/source/ui/dlg/paramdialog.cxx
Dosyayı görüntüle @
73c1ac01
...
@@ -248,7 +248,7 @@ namespace dbaui
...
@@ -248,7 +248,7 @@ namespace dbaui
OUString
sValue
;
OUString
sValue
;
pValues
->
Value
>>=
sValue
;
pValues
->
Value
>>=
sValue
;
pValues
->
Value
<<=
OUString
(
m_aPredicateInput
.
getPredicateValue
(
sValue
,
xParamAsSet
,
sal_F
alse
)
);
pValues
->
Value
<<=
OUString
(
m_aPredicateInput
.
getPredicateValue
(
sValue
,
xParamAsSet
,
f
alse
)
);
}
}
}
}
catch
(
Exception
&
)
catch
(
Exception
&
)
...
...
dbaccess/source/ui/dlg/queryfilter.cxx
Dosyayı görüntüle @
73c1ac01
...
@@ -346,7 +346,7 @@ sal_Bool DlgFilterCrit::getCondition(const ListBox& _rField,const ListBox& _rCom
...
@@ -346,7 +346,7 @@ sal_Bool DlgFilterCrit::getCondition(const ListBox& _rField,const ListBox& _rCom
_rFilter
.
Handle
=
GetOSQLPredicateType
(
_rComp
.
GetSelectEntry
()
);
_rFilter
.
Handle
=
GetOSQLPredicateType
(
_rComp
.
GetSelectEntry
()
);
if
(
SQLFilterOperator
::
SQLNULL
!=
_rFilter
.
Handle
&&
_rFilter
.
Handle
!=
SQLFilterOperator
::
NOT_SQLNULL
)
if
(
SQLFilterOperator
::
SQLNULL
!=
_rFilter
.
Handle
&&
_rFilter
.
Handle
!=
SQLFilterOperator
::
NOT_SQLNULL
)
{
{
OUString
sPredicateValue
=
m_aPredicateInput
.
getPredicateValue
(
_rValue
.
GetText
(),
getMatchingColumn
(
_rValue
),
sal_F
alse
);
OUString
sPredicateValue
=
m_aPredicateInput
.
getPredicateValue
(
_rValue
.
GetText
(),
getMatchingColumn
(
_rValue
),
f
alse
);
if
(
_rFilter
.
Handle
==
SQLFilterOperator
::
LIKE
||
if
(
_rFilter
.
Handle
==
SQLFilterOperator
::
LIKE
||
_rFilter
.
Handle
==
SQLFilterOperator
::
NOT_LIKE
)
_rFilter
.
Handle
==
SQLFilterOperator
::
NOT_LIKE
)
::
Replace_OS_PlaceHolder
(
sPredicateValue
);
::
Replace_OS_PlaceHolder
(
sPredicateValue
);
...
...
include/connectivity/filtermanager.hxx
Dosyayı görüntüle @
73c1ac01
...
@@ -72,7 +72,7 @@ namespace dbtools
...
@@ -72,7 +72,7 @@ namespace dbtools
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
beans
::
XPropertySet
>
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
beans
::
XPropertySet
>
m_xComponentAggregate
;
m_xComponentAggregate
;
::
std
::
vector
<
OUString
>
m_aFilterComponents
;
::
std
::
vector
<
OUString
>
m_aFilterComponents
;
sal_Bool
m_bApplyPublicFilter
;
bool
m_bApplyPublicFilter
;
public
:
public
:
/// ctor
/// ctor
...
@@ -87,8 +87,8 @@ namespace dbtools
...
@@ -87,8 +87,8 @@ namespace dbtools
const
OUString
&
getFilterComponent
(
FilterComponent
_eWhich
)
const
;
const
OUString
&
getFilterComponent
(
FilterComponent
_eWhich
)
const
;
void
setFilterComponent
(
FilterComponent
_eWhich
,
const
OUString
&
_rComponent
);
void
setFilterComponent
(
FilterComponent
_eWhich
,
const
OUString
&
_rComponent
);
inline
sal_Bool
isApplyPublicFilter
(
)
const
{
return
m_bApplyPublicFilter
;
}
inline
bool
isApplyPublicFilter
(
)
const
{
return
m_bApplyPublicFilter
;
}
void
setApplyPublicFilter
(
sal_B
ool
_bApply
);
void
setApplyPublicFilter
(
b
ool
_bApply
);
private
:
private
:
/** retrieves a filter which is a conjunction of all single filter components
/** retrieves a filter which is a conjunction of all single filter components
...
...
include/connectivity/predicateinput.hxx
Dosyayı görüntüle @
73c1ac01
...
@@ -68,7 +68,7 @@ namespace dbtools
...
@@ -68,7 +68,7 @@ namespace dbtools
If not <NULL/>, and a parsing error occurs, the error message will be copied to the string the argument
If not <NULL/>, and a parsing error occurs, the error message will be copied to the string the argument
points to.
points to.
*/
*/
sal_B
ool
normalizePredicateString
(
b
ool
normalizePredicateString
(
OUString
&
_rPredicateValue
,
OUString
&
_rPredicateValue
,
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
beans
::
XPropertySet
>&
_rxField
,
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
beans
::
XPropertySet
>&
_rxField
,
OUString
*
_pErrorMessage
=
NULL
OUString
*
_pErrorMessage
=
NULL
...
@@ -90,14 +90,14 @@ namespace dbtools
...
@@ -90,14 +90,14 @@ namespace dbtools
OUString
getPredicateValue
(
OUString
getPredicateValue
(
const
OUString
&
_rPredicateValue
,
const
OUString
&
_rPredicateValue
,
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
beans
::
XPropertySet
>
&
_rxField
,
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
beans
::
XPropertySet
>
&
_rxField
,
sal_B
ool
_bForStatementUse
,
b
ool
_bForStatementUse
,
OUString
*
_pErrorMessage
=
NULL
OUString
*
_pErrorMessage
=
NULL
)
const
;
)
const
;
OUString
getPredicateValue
(
OUString
getPredicateValue
(
const
OUString
&
_sField
const
OUString
&
_sField
,
const
OUString
&
_rPredicateValue
,
const
OUString
&
_rPredicateValue
,
sal_B
ool
_bForStatementUse
,
b
ool
_bForStatementUse
,
OUString
*
_pErrorMessage
=
NULL
)
const
;
,
OUString
*
_pErrorMessage
=
NULL
)
const
;
private
:
private
:
...
@@ -107,13 +107,13 @@ namespace dbtools
...
@@ -107,13 +107,13 @@ namespace dbtools
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
beans
::
XPropertySet
>
&
_rxField
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
beans
::
XPropertySet
>
&
_rxField
)
const
;
)
const
;
sal_B
ool
getSeparatorChars
(
b
ool
getSeparatorChars
(
const
::
com
::
sun
::
star
::
lang
::
Locale
&
_rLocale
,
const
::
com
::
sun
::
star
::
lang
::
Locale
&
_rLocale
,
sal_Unicode
&
_rDecSep
,
sal_Unicode
&
_rDecSep
,
sal_Unicode
&
_rThdSep
sal_Unicode
&
_rThdSep
)
const
;
)
const
;
OUString
implParseNode
(
::
connectivity
::
OSQLParseNode
*
pParseNode
,
sal_B
ool
_bForStatementUse
)
const
;
OUString
implParseNode
(
::
connectivity
::
OSQLParseNode
*
pParseNode
,
b
ool
_bForStatementUse
)
const
;
};
};
...
...
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