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
2bc792f2
Kaydet (Commit)
2bc792f2
authored
Şub 20, 2012
tarafından
Thomas Arnhold
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
expand and remove macro UNO_NMSPC
üst
97f788ca
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
28 additions
and
29 deletions
+28
-29
swunodef.hxx
sw/inc/swunodef.hxx
+1
-2
toxhlp.cxx
sw/source/core/tox/toxhlp.cxx
+7
-7
swunohelper.cxx
sw/source/core/unocore/swunohelper.cxx
+16
-16
uiregionsw.cxx
sw/source/ui/dialog/uiregionsw.cxx
+2
-2
label1.cxx
sw/source/ui/envelp/label1.cxx
+2
-2
No files found.
sw/inc/swunodef.hxx
Dosyayı görüntüle @
2bc792f2
...
...
@@ -28,10 +28,9 @@
#ifndef _SWUNODEF_HXX
#define _SWUNODEF_HXX
#define UNO_NMSPC ::com::sun::star::uno
#define CLIP_NMSPC ::com::sun::star::datatransfer::clipboard
#define STAR_REFERENCE(aType)
UNO_NMSPC
::Reference< ::com::sun::star::aType >
#define STAR_REFERENCE(aType)
::com::sun::star::uno
::Reference< ::com::sun::star::aType >
#endif
...
...
sw/source/core/tox/toxhlp.cxx
Dosyayı görüntüle @
2bc792f2
...
...
@@ -50,12 +50,12 @@ IndexEntrySupplierWrapper::IndexEntrySupplierWrapper()
"com.sun.star.i18n.IndexEntrySupplier"
))
);
if
(
xI
.
is
()
)
{
UNO_NMSPC
::
Any
x
=
xI
->
queryInterface
(
::
getCppuType
(
::
com
::
sun
::
star
::
uno
::
Any
x
=
xI
->
queryInterface
(
::
getCppuType
(
(
const
uno
::
Reference
<
i18n
::
XExtendedIndexEntrySupplier
>*
)
0
)
);
x
>>=
xIES
;
}
}
catch
(
const
UNO_NMSPC
::
Exception
&
catch
(
const
::
com
::
sun
::
star
::
uno
::
Exception
&
#if OSL_DEBUG_LEVEL > 0
e
#endif
...
...
@@ -81,7 +81,7 @@ String IndexEntrySupplierWrapper::GetIndexKey( const String& rTxt,
try
{
sRet
=
xIES
->
getIndexKey
(
rTxt
,
rTxtReading
,
rLocale
);
}
catch
(
const
UNO_NMSPC
::
Exception
&
catch
(
const
::
com
::
sun
::
star
::
uno
::
Exception
&
#if OSL_DEBUG_LEVEL > 0
e
#endif
...
...
@@ -102,7 +102,7 @@ String IndexEntrySupplierWrapper::GetFollowingText( sal_Bool bMorePages ) const
try
{
sRet
=
xIES
->
getIndexFollowPageWord
(
bMorePages
,
aLcl
);
}
catch
(
const
UNO_NMSPC
::
Exception
&
catch
(
const
::
com
::
sun
::
star
::
uno
::
Exception
&
#if OSL_DEBUG_LEVEL > 0
e
#endif
...
...
@@ -125,7 +125,7 @@ IndexEntrySupplierWrapper::GetAlgorithmList( const ::com::sun::star::lang::Local
try
{
sRet
=
xIES
->
getAlgorithmList
(
rLcl
);
}
catch
(
const
UNO_NMSPC
::
Exception
&
catch
(
const
::
com
::
sun
::
star
::
uno
::
Exception
&
#if OSL_DEBUG_LEVEL > 0
e
#endif
...
...
@@ -148,7 +148,7 @@ sal_Bool IndexEntrySupplierWrapper::LoadAlgorithm(
try
{
bRet
=
xIES
->
loadAlgorithm
(
rLcl
,
sSortAlgorithm
,
nOptions
);
}
catch
(
const
UNO_NMSPC
::
Exception
&
catch
(
const
::
com
::
sun
::
star
::
uno
::
Exception
&
#if OSL_DEBUG_LEVEL > 0
e
#endif
...
...
@@ -174,7 +174,7 @@ sal_Int16 IndexEntrySupplierWrapper::CompareIndexEntry(
nRet
=
xIES
->
compareIndexEntry
(
rTxt1
,
rTxtReading1
,
rLocale1
,
rTxt2
,
rTxtReading2
,
rLocale2
);
}
catch
(
const
UNO_NMSPC
::
Exception
&
catch
(
const
::
com
::
sun
::
star
::
uno
::
Exception
&
#if OSL_DEBUG_LEVEL > 0
e
#endif
...
...
sw/source/core/unocore/swunohelper.cxx
Dosyayı görüntüle @
2bc792f2
...
...
@@ -49,14 +49,14 @@
namespace
SWUnoHelper
{
sal_Int32
GetEnumAsInt32
(
const
UNO_NMSPC
::
Any
&
rVal
)
sal_Int32
GetEnumAsInt32
(
const
::
com
::
sun
::
star
::
uno
::
Any
&
rVal
)
{
sal_Int32
eVal
;
try
{
eVal
=
comphelper
::
getEnumAsINT32
(
rVal
);
}
catch
(
UNO_NMSPC
::
Exception
&
)
catch
(
::
com
::
sun
::
star
::
uno
::
Exception
&
)
{
eVal
=
0
;
OSL_FAIL
(
"can't get EnumAsInt32"
);
...
...
@@ -75,10 +75,10 @@ sal_Bool UCB_DeleteFile( const String& rURL )
STAR_REFERENCE
(
ucb
::
XCommandEnvironment
)());
aTempContent
.
executeCommand
(
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"delete"
)),
UNO_NMSPC
::
makeAny
(
sal_Bool
(
sal_True
)
)
);
::
com
::
sun
::
star
::
uno
::
makeAny
(
sal_Bool
(
sal_True
)
)
);
bRemoved
=
sal_True
;
}
catch
(
UNO_NMSPC
::
Exception
&
)
catch
(
::
com
::
sun
::
star
::
uno
::
Exception
&
)
{
bRemoved
=
sal_False
;
OSL_FAIL
(
"Exeception from executeCommand( delete )"
);
...
...
@@ -99,7 +99,7 @@ sal_Bool UCB_CopyFile( const String& rURL, const String& rNewURL, sal_Bool bCopy
ucbhelper
::
Content
aTempContent
(
sMainURL
,
STAR_REFERENCE
(
ucb
::
XCommandEnvironment
)());
UNO_NMSPC
::
Any
aAny
;
::
com
::
sun
::
star
::
uno
::
Any
aAny
;
::
com
::
sun
::
star
::
ucb
::
TransferInfo
aInfo
;
aInfo
.
NameClash
=
::
com
::
sun
::
star
::
ucb
::
NameClash
::
ERROR
;
aInfo
.
NewTitle
=
sName
;
...
...
@@ -110,7 +110,7 @@ sal_Bool UCB_CopyFile( const String& rURL, const String& rNewURL, sal_Bool bCopy
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"transfer"
)),
aAny
);
}
catch
(
UNO_NMSPC
::
Exception
&
)
catch
(
::
com
::
sun
::
star
::
uno
::
Exception
&
)
{
OSL_FAIL
(
"Exeception from executeCommand( transfer )"
);
bCopyCompleted
=
sal_False
;
...
...
@@ -143,7 +143,7 @@ sal_Bool UCB_IsCaseSensitiveFileName( const String& rURL )
sal_Int32
nCompare
=
xProv
->
compareContentIds
(
xRef1
,
xRef2
);
bCaseSensitive
=
0
!=
nCompare
;
}
catch
(
UNO_NMSPC
::
Exception
&
)
catch
(
::
com
::
sun
::
star
::
uno
::
Exception
&
)
{
bCaseSensitive
=
sal_False
;
OSL_FAIL
(
"Exeception from compareContentIds()"
);
...
...
@@ -157,12 +157,12 @@ sal_Bool UCB_IsReadOnlyFileName( const String& rURL )
try
{
ucbhelper
::
Content
aCnt
(
rURL
,
STAR_REFERENCE
(
ucb
::
XCommandEnvironment
)());
UNO_NMSPC
::
Any
aAny
=
aCnt
.
getPropertyValue
(
::
com
::
sun
::
star
::
uno
::
Any
aAny
=
aCnt
.
getPropertyValue
(
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"IsReadOnly"
)));
if
(
aAny
.
hasValue
())
bIsReadOnly
=
*
(
sal_Bool
*
)
aAny
.
getValue
();
}
catch
(
UNO_NMSPC
::
Exception
&
)
catch
(
::
com
::
sun
::
star
::
uno
::
Exception
&
)
{
bIsReadOnly
=
sal_False
;
}
...
...
@@ -177,7 +177,7 @@ sal_Bool UCB_IsFile( const String& rURL )
::
ucbhelper
::
Content
aContent
(
rURL
,
STAR_REFERENCE
(
ucb
::
XCommandEnvironment
)()
);
bExists
=
aContent
.
isDocument
();
}
catch
(
UNO_NMSPC
::
Exception
&
)
catch
(
::
com
::
sun
::
star
::
uno
::
Exception
&
)
{
}
return
bExists
;
...
...
@@ -191,7 +191,7 @@ sal_Bool UCB_IsDirectory( const String& rURL )
::
ucbhelper
::
Content
aContent
(
rURL
,
STAR_REFERENCE
(
ucb
::
XCommandEnvironment
)()
);
bExists
=
aContent
.
isFolder
();
}
catch
(
UNO_NMSPC
::
Exception
&
)
catch
(
::
com
::
sun
::
star
::
uno
::
Exception
&
)
{
}
return
bExists
;
...
...
@@ -214,7 +214,7 @@ sal_Bool UCB_GetFileListOfFolder( const String& rURL,
STAR_REFERENCE
(
sdbc
::
XResultSet
)
xResultSet
;
sal_uInt16
nSeqSize
=
pDateTimeList
?
2
:
1
;
UNO_NMSPC
::
Sequence
<
rtl
::
OUString
>
aProps
(
nSeqSize
);
::
com
::
sun
::
star
::
uno
::
Sequence
<
rtl
::
OUString
>
aProps
(
nSeqSize
);
rtl
::
OUString
*
pProps
=
aProps
.
getArray
();
pProps
[
0
]
=
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"Title"
));
if
(
pDateTimeList
)
...
...
@@ -224,14 +224,14 @@ sal_Bool UCB_GetFileListOfFolder( const String& rURL,
{
xResultSet
=
aCnt
.
createCursor
(
aProps
,
::
ucbhelper
::
INCLUDE_DOCUMENTS_ONLY
);
}
catch
(
UNO_NMSPC
::
Exception
&
)
catch
(
::
com
::
sun
::
star
::
uno
::
Exception
&
)
{
OSL_FAIL
(
"create cursor failed!"
);
}
if
(
xResultSet
.
is
()
)
{
STAR_REFERENCE
(
sdbc
::
XRow
)
xRow
(
xResultSet
,
UNO_NMSPC
::
UNO_QUERY
);
STAR_REFERENCE
(
sdbc
::
XRow
)
xRow
(
xResultSet
,
::
com
::
sun
::
star
::
uno
::
UNO_QUERY
);
xub_StrLen
nExtLen
=
pExtension
?
pExtension
->
Len
()
:
0
;
try
{
...
...
@@ -267,13 +267,13 @@ sal_Bool UCB_GetFileListOfFolder( const String& rURL,
}
bOk
=
sal_True
;
}
catch
(
UNO_NMSPC
::
Exception
&
)
catch
(
::
com
::
sun
::
star
::
uno
::
Exception
&
)
{
OSL_FAIL
(
"Exception caught!"
);
}
}
}
catch
(
UNO_NMSPC
::
Exception
&
)
catch
(
::
com
::
sun
::
star
::
uno
::
Exception
&
)
{
OSL_FAIL
(
"Exception caught!"
);
bOk
=
sal_False
;
...
...
sw/source/ui/dialog/uiregionsw.cxx
Dosyayı görüntüle @
2bc792f2
...
...
@@ -467,7 +467,7 @@ sal_Bool SwEditRegionDlg::CheckPasswd(CheckBox* pBox)
if
(
aPasswdDlg
.
Execute
())
{
String
sNewPasswd
(
aPasswdDlg
.
GetPassword
()
);
UNO_NMSPC
::
Sequence
<
sal_Int8
>
aNewPasswd
;
::
com
::
sun
::
star
::
uno
::
Sequence
<
sal_Int8
>
aNewPasswd
;
SvPasswordHelper
::
GetHashPassword
(
aNewPasswd
,
sNewPasswd
);
if
(
SvPasswordHelper
::
CompareHashPassword
(
pRepr
->
GetSectionData
().
GetPassword
(),
sNewPasswd
))
...
...
@@ -623,7 +623,7 @@ IMPL_LINK( SwEditRegionDlg, GetFirstEntryHdl, SvTreeListBox *, pBox )
aProtectCB
.
Enable
(
sal_True
);
aFileCB
.
Enable
(
sal_True
);
UNO_NMSPC
::
Sequence
<
sal_Int8
>
aCurPasswd
;
::
com
::
sun
::
star
::
uno
::
Sequence
<
sal_Int8
>
aCurPasswd
;
if
(
1
<
pBox
->
GetSelectionCount
()
)
{
aHideCB
.
EnableTriState
(
sal_True
);
...
...
sw/source/ui/envelp/label1.cxx
Dosyayı görüntüle @
2bc792f2
...
...
@@ -168,7 +168,7 @@ SwLabDlg::SwLabDlg(Window* pParent, const SfxItemSet& rSet,
pRecs
->
C40_INSERT
(
SwLabRec
,
pRec
,
0
);
sal_uInt16
nLstGroup
=
0
;
const
UNO_NMSPC
::
Sequence
<
rtl
::
OUString
>&
rMan
=
aLabelsCfg
.
GetManufacturers
();
const
::
com
::
sun
::
star
::
uno
::
Sequence
<
rtl
::
OUString
>&
rMan
=
aLabelsCfg
.
GetManufacturers
();
const
rtl
::
OUString
*
pMan
=
rMan
.
getConstArray
();
for
(
sal_Int32
nMan
=
0
;
nMan
<
rMan
.
getLength
();
nMan
++
)
{
...
...
@@ -510,7 +510,7 @@ void SwLabPage::InitDatabaseBox()
if
(
GetNewDBMgr
()
)
{
aDatabaseLB
.
Clear
();
UNO_NMSPC
::
Sequence
<
rtl
::
OUString
>
aDataNames
=
SwNewDBMgr
::
GetExistingDatabaseNames
();
::
com
::
sun
::
star
::
uno
::
Sequence
<
rtl
::
OUString
>
aDataNames
=
SwNewDBMgr
::
GetExistingDatabaseNames
();
const
rtl
::
OUString
*
pDataNames
=
aDataNames
.
getConstArray
();
for
(
long
i
=
0
;
i
<
aDataNames
.
getLength
();
i
++
)
aDatabaseLB
.
InsertEntry
(
pDataNames
[
i
]);
...
...
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