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
75ebd3bd
Kaydet (Commit)
75ebd3bd
authored
Mar 26, 2014
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
basic: sal_Bool->bool
Change-Id: Icd78d21495f305c8f00280eee76e7262e542317d
üst
f288d7dc
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
23 deletions
+23
-23
vbahelper.cxx
basic/source/basmgr/vbahelper.cxx
+6
-6
sbxmod.cxx
basic/source/classes/sbxmod.cxx
+2
-2
sbxform.cxx
basic/source/sbx/sbxform.cxx
+0
-0
sbxform.hxx
include/basic/sbxform.hxx
+13
-13
vbahelper.hxx
include/basic/vbahelper.hxx
+2
-2
No files found.
basic/source/basmgr/vbahelper.cxx
Dosyayı görüntüle @
75ebd3bd
...
...
@@ -102,7 +102,7 @@ uno::Any SAL_CALL DocumentsEnumeration::nextElement() throw (container::NoSuchEl
/** Locks or unlocks the controllers of the specified document model.
*/
void
lclLockControllers
(
const
uno
::
Reference
<
frame
::
XModel
>&
rxModel
,
sal_B
ool
bLockControllers
)
void
lclLockControllers
(
const
uno
::
Reference
<
frame
::
XModel
>&
rxModel
,
b
ool
bLockControllers
)
{
if
(
rxModel
.
is
()
)
try
{
...
...
@@ -121,7 +121,7 @@ void lclLockControllers( const uno::Reference< frame::XModel >& rxModel, sal_Boo
/** Enables or disables the container windows of all controllers of the
specified document model.
*/
void
lclEnableContainerWindows
(
const
uno
::
Reference
<
frame
::
XModel
>&
rxModel
,
sal_B
ool
bEnableWindows
)
void
lclEnableContainerWindows
(
const
uno
::
Reference
<
frame
::
XModel
>&
rxModel
,
b
ool
bEnableWindows
)
{
try
{
...
...
@@ -149,12 +149,12 @@ void lclEnableContainerWindows( const uno::Reference< frame::XModel >& rxModel,
typedef
void
(
*
ModifyDocumentFunc
)(
const
uno
::
Reference
<
frame
::
XModel
>&
,
sal_B
ool
);
typedef
void
(
*
ModifyDocumentFunc
)(
const
uno
::
Reference
<
frame
::
XModel
>&
,
b
ool
);
/** Implementation iterating over all documents that have the same type as the
specified model, and calling the passed functor.
*/
void
lclIterateDocuments
(
ModifyDocumentFunc
pModifyDocumentFunc
,
const
uno
::
Reference
<
frame
::
XModel
>&
rxModel
,
sal_B
ool
bModificator
)
void
lclIterateDocuments
(
ModifyDocumentFunc
pModifyDocumentFunc
,
const
uno
::
Reference
<
frame
::
XModel
>&
rxModel
,
b
ool
bModificator
)
{
uno
::
Reference
<
container
::
XEnumeration
>
xDocumentsEnum
(
new
DocumentsEnumeration
(
rxModel
)
);
// iterate over all open documents
...
...
@@ -182,14 +182,14 @@ struct StaticCurrDirPool : public ::rtl::Static< CurrDirPool, StaticCurrDirPool
void
lockControllersOfAllDocuments
(
const
uno
::
Reference
<
frame
::
XModel
>&
rxModel
,
sal_B
ool
bLockControllers
)
void
lockControllersOfAllDocuments
(
const
uno
::
Reference
<
frame
::
XModel
>&
rxModel
,
b
ool
bLockControllers
)
{
lclIterateDocuments
(
&
lclLockControllers
,
rxModel
,
bLockControllers
);
}
void
enableContainerWindowsOfAllDocuments
(
const
uno
::
Reference
<
frame
::
XModel
>&
rxModel
,
sal_B
ool
bEnableWindows
)
void
enableContainerWindowsOfAllDocuments
(
const
uno
::
Reference
<
frame
::
XModel
>&
rxModel
,
b
ool
bEnableWindows
)
{
lclIterateDocuments
(
&
lclEnableContainerWindows
,
rxModel
,
bEnableWindows
);
}
...
...
basic/source/classes/sbxmod.cxx
Dosyayı görüntüle @
75ebd3bd
...
...
@@ -1259,8 +1259,8 @@ sal_uInt16 SbModule::Run( SbMethod* pMeth )
{
}
// VBA always ensures screenupdating is enabled after completing
::
basic
::
vba
::
lockControllersOfAllDocuments
(
xModel
,
sal_F
alse
);
::
basic
::
vba
::
enableContainerWindowsOfAllDocuments
(
xModel
,
sal_T
rue
);
::
basic
::
vba
::
lockControllersOfAllDocuments
(
xModel
,
f
alse
);
::
basic
::
vba
::
enableContainerWindowsOfAllDocuments
(
xModel
,
t
rue
);
}
#ifdef DBG_TRACE_BASIC
...
...
basic/source/sbx/sbxform.cxx
Dosyayı görüntüle @
75ebd3bd
This diff is collapsed.
Click to expand it.
include/basic/sbxform.hxx
Dosyayı görüntüle @
75ebd3bd
...
...
@@ -105,13 +105,13 @@ class BASIC_DLLPUBLIC SbxBasicFormater {
OUString
BasicFormat
(
double
dNumber
,
const
OUString
&
sFormatStrg
);
OUString
BasicFormatNull
(
const
OUString
&
sFormatStrg
);
static
sal_B
ool
isBasicFormat
(
const
OUString
&
sFormatStrg
);
static
b
ool
isBasicFormat
(
const
OUString
&
sFormatStrg
);
private
:
BASIC_DLLPRIVATE
inline
void
ShiftString
(
OUStringBuffer
&
sStrg
,
sal_uInt16
nStartPos
);
BASIC_DLLPRIVATE
void
AppendDigit
(
OUStringBuffer
&
sStrg
,
short
nDigit
);
BASIC_DLLPRIVATE
void
LeftShiftDecimalPoint
(
OUStringBuffer
&
sStrg
);
BASIC_DLLPRIVATE
void
StrRoundDigit
(
OUStringBuffer
&
sStrg
,
short
nPos
,
sal_B
ool
&
bOverflow
);
BASIC_DLLPRIVATE
void
StrRoundDigit
(
OUStringBuffer
&
sStrg
,
short
nPos
,
b
ool
&
bOverflow
);
BASIC_DLLPRIVATE
void
StrRoundDigit
(
OUStringBuffer
&
sStrg
,
short
nPos
);
BASIC_DLLPRIVATE
void
ParseBack
(
OUStringBuffer
&
sStrg
,
const
OUString
&
sFormatStrg
,
short
nFormatPos
);
...
...
@@ -119,30 +119,30 @@ class BASIC_DLLPUBLIC SbxBasicFormater {
// Methods for string conversion with sprintf():
BASIC_DLLPRIVATE
void
InitScan
(
double
_dNum
);
BASIC_DLLPRIVATE
void
InitExp
(
double
_dNewExp
);
BASIC_DLLPRIVATE
short
GetDigitAtPosScan
(
short
nPos
,
sal_B
ool
&
bFoundFirstDigit
);
BASIC_DLLPRIVATE
short
GetDigitAtPosScan
(
short
nPos
,
b
ool
&
bFoundFirstDigit
);
BASIC_DLLPRIVATE
short
GetDigitAtPosExpScan
(
double
dNewExponent
,
short
nPos
,
sal_B
ool
&
bFoundFirstDigit
);
BASIC_DLLPRIVATE
short
GetDigitAtPosExpScan
(
short
nPos
,
sal_B
ool
&
bFoundFirstDigit
);
b
ool
&
bFoundFirstDigit
);
BASIC_DLLPRIVATE
short
GetDigitAtPosExpScan
(
short
nPos
,
b
ool
&
bFoundFirstDigit
);
#else
// Methods for direct 'calculation' with log10() and pow():
BASIC_DLLPRIVATE
short
GetDigitAtPos
(
double
dNumber
,
short
nPos
,
double
&
dNextNumber
,
sal_B
ool
&
bFoundFirstDigit
);
b
ool
&
bFoundFirstDigit
);
BASIC_DLLPRIVATE
short
RoundDigit
(
double
dNumber
);
#endif
BASIC_DLLPRIVATE
OUString
GetPosFormatString
(
const
OUString
&
sFormatStrg
,
sal_B
ool
&
bFound
);
BASIC_DLLPRIVATE
OUString
GetNegFormatString
(
const
OUString
&
sFormatStrg
,
sal_B
ool
&
bFound
);
BASIC_DLLPRIVATE
OUString
Get0FormatString
(
const
OUString
&
sFormatStrg
,
sal_B
ool
&
bFound
);
BASIC_DLLPRIVATE
OUString
GetNullFormatString
(
const
OUString
&
sFormatStrg
,
sal_B
ool
&
bFound
);
BASIC_DLLPRIVATE
OUString
GetPosFormatString
(
const
OUString
&
sFormatStrg
,
b
ool
&
bFound
);
BASIC_DLLPRIVATE
OUString
GetNegFormatString
(
const
OUString
&
sFormatStrg
,
b
ool
&
bFound
);
BASIC_DLLPRIVATE
OUString
Get0FormatString
(
const
OUString
&
sFormatStrg
,
b
ool
&
bFound
);
BASIC_DLLPRIVATE
OUString
GetNullFormatString
(
const
OUString
&
sFormatStrg
,
b
ool
&
bFound
);
BASIC_DLLPRIVATE
short
AnalyseFormatString
(
const
OUString
&
sFormatStrg
,
short
&
nNoOfDigitsLeft
,
short
&
nNoOfDigitsRight
,
short
&
nNoOfOptionalDigitsLeft
,
short
&
nNoOfExponentDigits
,
short
&
nNoOfOptionalExponentDigits
,
sal_Bool
&
bPercent
,
sal_Bool
&
bCurrency
,
sal_B
ool
&
bScientific
,
sal_B
ool
&
bGenerateThousandSeparator
,
bool
&
bPercent
,
bool
&
bCurrency
,
b
ool
&
bScientific
,
b
ool
&
bGenerateThousandSeparator
,
short
&
nMultipleThousandSeparators
);
BASIC_DLLPRIVATE
void
ScanFormatString
(
double
dNumber
,
const
OUString
&
sFormatStrg
,
OUString
&
sReturnStrg
,
sal_B
ool
bCreateSign
);
OUString
&
sReturnStrg
,
b
ool
bCreateSign
);
//*** Data ***
sal_Unicode
cDecPoint
;
// sign for the decimal point
...
...
include/basic/vbahelper.hxx
Dosyayı görüntüle @
75ebd3bd
...
...
@@ -50,7 +50,7 @@ namespace vba {
*/
BASIC_DLLPUBLIC
void
lockControllersOfAllDocuments
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
frame
::
XModel
>&
rxModel
,
sal_B
ool
bLockControllers
);
b
ool
bLockControllers
);
...
...
@@ -71,7 +71,7 @@ BASIC_DLLPUBLIC void lockControllersOfAllDocuments(
*/
BASIC_DLLPUBLIC
void
enableContainerWindowsOfAllDocuments
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
frame
::
XModel
>&
rxModel
,
sal_B
ool
bEnableWindows
);
b
ool
bEnableWindows
);
...
...
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