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
1688a9d9
Kaydet (Commit)
1688a9d9
authored
Ara 10, 2011
tarafından
Olivier Hallot
Kaydeden (comit)
Ivan Timofeev
Ara 10, 2011
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix for fdo43460 Part II getLength to isEmpty
Part II Module basctl
üst
79a8567b
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
12 additions
and
12 deletions
+12
-12
basicrenderable.cxx
basctl/source/basicide/basicrenderable.cxx
+2
-2
baside2.cxx
basctl/source/basicide/baside2.cxx
+1
-1
bastype2.cxx
basctl/source/basicide/bastype2.cxx
+1
-1
localizationmgr.cxx
basctl/source/basicide/localizationmgr.cxx
+3
-3
moduldl2.cxx
basctl/source/basicide/moduldl2.cxx
+1
-1
scriptdocument.cxx
basctl/source/basicide/scriptdocument.cxx
+3
-3
dlgedobj.cxx
basctl/source/dlged/dlgedobj.cxx
+1
-1
No files found.
basctl/source/basicide/basicrenderable.cxx
Dosyayı görüntüle @
1688a9d9
...
@@ -120,7 +120,7 @@ sal_Int32 SAL_CALL BasicRenderable::getRendererCount (
...
@@ -120,7 +120,7 @@ sal_Int32 SAL_CALL BasicRenderable::getRendererCount (
if
(
nContent
==
1
)
if
(
nContent
==
1
)
{
{
rtl
::
OUString
aPageRange
(
getStringValue
(
"PageRange"
)
);
rtl
::
OUString
aPageRange
(
getStringValue
(
"PageRange"
)
);
if
(
aPageRange
.
getLength
()
)
if
(
!
aPageRange
.
isEmpty
()
)
{
{
StringRangeEnumerator
aRangeEnum
(
aPageRange
,
0
,
nCount
-
1
);
StringRangeEnumerator
aRangeEnum
(
aPageRange
,
0
,
nCount
-
1
);
sal_Int32
nSelCount
=
aRangeEnum
.
size
();
sal_Int32
nSelCount
=
aRangeEnum
.
size
();
...
@@ -179,7 +179,7 @@ void SAL_CALL BasicRenderable::render (
...
@@ -179,7 +179,7 @@ void SAL_CALL BasicRenderable::render (
if
(
nContent
==
1
)
if
(
nContent
==
1
)
{
{
rtl
::
OUString
aPageRange
(
getStringValue
(
"PageRange"
)
);
rtl
::
OUString
aPageRange
(
getStringValue
(
"PageRange"
)
);
if
(
aPageRange
.
getLength
()
)
if
(
!
aPageRange
.
isEmpty
()
)
{
{
sal_Int32
nPageCount
=
mpWindow
->
countPages
(
pPrinter
);
sal_Int32
nPageCount
=
mpWindow
->
countPages
(
pPrinter
);
StringRangeEnumerator
aRangeEnum
(
aPageRange
,
0
,
nPageCount
-
1
);
StringRangeEnumerator
aRangeEnum
(
aPageRange
,
0
,
nPageCount
-
1
);
...
...
basctl/source/basicide/baside2.cxx
Dosyayı görüntüle @
1688a9d9
...
@@ -341,7 +341,7 @@ sal_Bool ModulWindow::BasicExecute()
...
@@ -341,7 +341,7 @@ sal_Bool ModulWindow::BasicExecute()
if
(
!
pMethod
)
if
(
!
pMethod
)
{
{
// If not in a method then prompt the user
// If not in a method then prompt the user
return
(
BasicIDE
::
ChooseMacro
(
uno
::
Reference
<
frame
::
XModel
>
(),
sal_False
,
rtl
::
OUString
()
).
getLength
()
>
0
)
?
sal_True
:
sal_False
;
return
(
!
BasicIDE
::
ChooseMacro
(
uno
::
Reference
<
frame
::
XModel
>
(),
sal_False
,
rtl
::
OUString
()
).
isEmpty
()
)
;
}
}
if
(
pMethod
)
if
(
pMethod
)
{
{
...
...
basctl/source/basicide/bastype2.cxx
Dosyayı görüntüle @
1688a9d9
...
@@ -773,7 +773,7 @@ void BasicTreeListBox::GetRootEntryBitmaps( const ScriptDocument& rDocument, Ima
...
@@ -773,7 +773,7 @@ void BasicTreeListBox::GetRootEntryBitmaps( const ScriptDocument& rDocument, Ima
}
}
}
}
if
(
sFactoryURL
.
getLength
()
)
if
(
!
sFactoryURL
.
isEmpty
()
)
{
{
rImage
=
SvFileInformationManager
::
GetFileImage
(
INetURLObject
(
sFactoryURL
),
sal_False
);
rImage
=
SvFileInformationManager
::
GetFileImage
(
INetURLObject
(
sFactoryURL
),
sal_False
);
}
}
...
...
basctl/source/basicide/localizationmgr.cxx
Dosyayı görüntüle @
1688a9d9
...
@@ -185,7 +185,7 @@ void LocalizationMgr::implEnableDisableResourceForAllLibraryDialogs( HandleResou
...
@@ -185,7 +185,7 @@ void LocalizationMgr::implEnableDisableResourceForAllLibraryDialogs( HandleResou
aPureIdStr
+=
aDot
;
aPureIdStr
+=
aDot
;
aPureIdStr
+=
aDialogName
;
aPureIdStr
+=
aDialogName
;
aPureIdStr
+=
aDot
;
aPureIdStr
+=
aDot
;
if
(
aCtrlName
.
getLength
()
)
if
(
!
aCtrlName
.
isEmpty
()
)
{
{
aPureIdStr
+=
aCtrlName
;
aPureIdStr
+=
aCtrlName
;
aPureIdStr
+=
aDot
;
aPureIdStr
+=
aDot
;
...
@@ -245,7 +245,7 @@ sal_Int32 LocalizationMgr::implHandleControlResourceProperties
...
@@ -245,7 +245,7 @@ sal_Int32 LocalizationMgr::implHandleControlResourceProperties
// Replace string by id, add id+string to StringResource
// Replace string by id, add id+string to StringResource
if
(
eMode
==
SET_IDS
)
if
(
eMode
==
SET_IDS
)
{
{
bool
bEscAlreadyExisting
=
(
aPropStr
.
getLength
()
&&
aPropStr
.
getStr
()[
0
]
==
'&'
);
bool
bEscAlreadyExisting
=
(
!
aPropStr
.
isEmpty
()
&&
aPropStr
.
getStr
()[
0
]
==
'&'
);
if
(
bEscAlreadyExisting
)
if
(
bEscAlreadyExisting
)
continue
;
continue
;
...
@@ -435,7 +435,7 @@ sal_Int32 LocalizationMgr::implHandleControlResourceProperties
...
@@ -435,7 +435,7 @@ sal_Int32 LocalizationMgr::implHandleControlResourceProperties
for
(
i
=
0
;
i
<
nPropStringCount
;
++
i
)
for
(
i
=
0
;
i
<
nPropStringCount
;
++
i
)
{
{
::
rtl
::
OUString
aPropStr
=
pPropStrings
[
i
];
::
rtl
::
OUString
aPropStr
=
pPropStrings
[
i
];
bool
bEscAlreadyExisting
=
(
aPropStr
.
getLength
()
&&
aPropStr
.
getStr
()[
0
]
==
'&'
);
bool
bEscAlreadyExisting
=
(
!
aPropStr
.
isEmpty
()
&&
aPropStr
.
getStr
()[
0
]
==
'&'
);
if
(
bEscAlreadyExisting
)
if
(
bEscAlreadyExisting
)
{
{
pIdStrings
[
i
]
=
aPropStr
;
pIdStrings
[
i
]
=
aPropStr
;
...
...
basctl/source/basicide/moduldl2.cxx
Dosyayı görüntüle @
1688a9d9
...
@@ -1332,7 +1332,7 @@ void LibPage::ExportAsPackage( const String& aLibName )
...
@@ -1332,7 +1332,7 @@ void LibPage::ExportAsPackage( const String& aLibName )
Sequence
<
::
rtl
::
OUString
>
aFiles
=
xFP
->
getFiles
();
Sequence
<
::
rtl
::
OUString
>
aFiles
=
xFP
->
getFiles
();
INetURLObject
aURL
(
aFiles
[
0
]
);
INetURLObject
aURL
(
aFiles
[
0
]
);
if
(
!
aURL
.
getExtension
().
getLength
()
)
if
(
aURL
.
getExtension
().
isEmpty
()
)
aURL
.
setExtension
(
::
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"oxt"
)
)
);
aURL
.
setExtension
(
::
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"oxt"
)
)
);
::
rtl
::
OUString
aPackageURL
(
aURL
.
GetMainURL
(
INetURLObject
::
NO_DECODE
)
);
::
rtl
::
OUString
aPackageURL
(
aURL
.
GetMainURL
(
INetURLObject
::
NO_DECODE
)
);
...
...
basctl/source/basicide/scriptdocument.cxx
Dosyayı görüntüle @
1688a9d9
...
@@ -975,7 +975,7 @@ namespace basctl
...
@@ -975,7 +975,7 @@ namespace basctl
}
}
}
}
if
(
aFileURL
.
getLength
()
)
if
(
!
aFileURL
.
isEmpty
()
)
{
{
::
osl
::
DirectoryItem
aFileItem
;
::
osl
::
DirectoryItem
aFileItem
;
::
osl
::
FileStatus
aFileStatus
(
osl_FileStatus_Mask_FileURL
);
::
osl
::
FileStatus
aFileStatus
(
osl_FileStatus_Mask_FileURL
);
...
@@ -1129,7 +1129,7 @@ namespace basctl
...
@@ -1129,7 +1129,7 @@ namespace basctl
ScriptDocument
ScriptDocument
::
getDocumentWithURLOrCaption
(
const
::
rtl
::
OUString
&
_rUrlOrCaption
)
ScriptDocument
ScriptDocument
::
getDocumentWithURLOrCaption
(
const
::
rtl
::
OUString
&
_rUrlOrCaption
)
{
{
ScriptDocument
aDocument
(
getApplicationScriptDocument
()
);
ScriptDocument
aDocument
(
getApplicationScriptDocument
()
);
if
(
_rUrlOrCaption
.
getLength
()
==
0
)
if
(
_rUrlOrCaption
.
isEmpty
()
)
return
aDocument
;
return
aDocument
;
docs
::
Documents
aDocuments
;
docs
::
Documents
aDocuments
;
...
@@ -1486,7 +1486,7 @@ namespace basctl
...
@@ -1486,7 +1486,7 @@ namespace basctl
LibraryLocation
ScriptDocument
::
getLibraryLocation
(
const
::
rtl
::
OUString
&
_rLibName
)
const
LibraryLocation
ScriptDocument
::
getLibraryLocation
(
const
::
rtl
::
OUString
&
_rLibName
)
const
{
{
LibraryLocation
eLocation
=
LIBRARY_LOCATION_UNKNOWN
;
LibraryLocation
eLocation
=
LIBRARY_LOCATION_UNKNOWN
;
if
(
_rLibName
.
getLength
()
)
if
(
!
_rLibName
.
isEmpty
()
)
{
{
if
(
isDocument
()
)
if
(
isDocument
()
)
{
{
...
...
basctl/source/dlged/dlgedobj.cxx
Dosyayı görüntüle @
1688a9d9
...
@@ -509,7 +509,7 @@ void SAL_CALL DlgEdObj::NameChange( const ::com::sun::star::beans::PropertyChan
...
@@ -509,7 +509,7 @@ void SAL_CALL DlgEdObj::NameChange( const ::com::sun::star::beans::PropertyChan
Reference
<
container
::
XNameAccess
>
xNameAcc
((
GetDlgEdForm
()
->
GetUnoControlModel
()),
UNO_QUERY
);
Reference
<
container
::
XNameAccess
>
xNameAcc
((
GetDlgEdForm
()
->
GetUnoControlModel
()),
UNO_QUERY
);
if
(
xNameAcc
.
is
()
&&
xNameAcc
->
hasByName
(
aOldName
)
)
if
(
xNameAcc
.
is
()
&&
xNameAcc
->
hasByName
(
aOldName
)
)
{
{
if
(
!
xNameAcc
->
hasByName
(
aNewName
)
&&
aNewName
.
getLength
()
!=
0
)
if
(
!
xNameAcc
->
hasByName
(
aNewName
)
&&
!
aNewName
.
isEmpty
()
)
{
{
// remove the control by the old name and insert the control by the new name in the container
// remove the control by the old name and insert the control by the new name in the container
Reference
<
container
::
XNameContainer
>
xCont
(
xNameAcc
,
UNO_QUERY
);
Reference
<
container
::
XNameContainer
>
xCont
(
xNameAcc
,
UNO_QUERY
);
...
...
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