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
4ec9f5d7
Kaydet (Commit)
4ec9f5d7
authored
Mar 30, 2013
tarafından
Chr. Rossmanith
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Remove RTL_CONSTASCII_(U)STRINGPARAM in odk(Developersguide)
Change-Id: Ic2a2cf04a691f628e862e81579d3d55d261fc492
üst
61651ece
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
16 additions
and
20 deletions
+16
-20
addon.cxx
...uide/Components/Addons/ProtocolHandlerAddon_cpp/addon.cxx
+3
-3
component.cxx
.../Components/Addons/ProtocolHandlerAddon_cpp/component.cxx
+1
-1
service1_impl.cxx
...DevelopersGuide/Components/CppComponent/service1_impl.cxx
+2
-4
service2_impl.cxx
...DevelopersGuide/Components/CppComponent/service2_impl.cxx
+2
-4
filterdetect.cxx
...FilterDevelopment/FlatXmlFilterDetection/filterdetect.cxx
+4
-4
string_samples.cxx
...les/DevelopersGuide/ProfUNO/CppBinding/string_samples.cxx
+4
-4
No files found.
odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_cpp/addon.cxx
Dosyayı görüntüle @
4ec9f5d7
...
...
@@ -197,10 +197,10 @@ void SAL_CALL Addon::removeStatusListener( const Reference< XStatusListener >& x
//#### Helper functions for the implementation of UNO component interfaces #########################
//##################################################################################################
::
rtl
::
OUString
Addon_getImplementationName
()
OUString
Addon_getImplementationName
()
throw
(
RuntimeException
)
{
return
::
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
IMPLEMENTATION_NAME
)
);
return
OUString
(
IMPLEMENTATION_NAME
);
}
sal_Bool
SAL_CALL
Addon_supportsService
(
const
::
rtl
::
OUString
&
ServiceName
)
...
...
@@ -214,7 +214,7 @@ throw (RuntimeException)
{
Sequence
<
::
rtl
::
OUString
>
aRet
(
1
);
::
rtl
::
OUString
*
pArray
=
aRet
.
getArray
();
pArray
[
0
]
=
::
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
SERVICE_NAME
)
);
pArray
[
0
]
=
OUString
(
SERVICE_NAME
);
return
aRet
;
}
...
...
odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_cpp/component.cxx
Dosyayı görüntüle @
4ec9f5d7
...
...
@@ -112,7 +112,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT void * SAL_CALL component_getFactory(const sal_C
{
Reference
<
XSingleComponentFactory
>
xFactory
(
createSingleComponentFactory
(
Addon_createInstance
,
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
IMPLEMENTATION_NAME
)
),
OUString
(
IMPLEMENTATION_NAME
),
Addon_getSupportedServiceNames
()
)
);
if
(
xFactory
.
is
())
...
...
odk/examples/DevelopersGuide/Components/CppComponent/service1_impl.cxx
Dosyayı görüntüle @
4ec9f5d7
...
...
@@ -208,15 +208,13 @@ OUString MyService1Impl::methodOne( OUString const & str )
throw
(
RuntimeException
)
{
m_sData
=
str
;
return
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"called methodOne() of MyService1 implementation: "
)
)
+
m_sData
;
return
OUString
(
"called methodOne() of MyService1 implementation: "
)
+
m_sData
;
}
OUString
MyService1Impl
::
methodTwo
(
)
throw
(
RuntimeException
)
{
return
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"called methodTwo() of MyService1 implementation: "
)
)
+
m_sData
;
return
OUString
(
"called methodTwo() of MyService1 implementation: "
)
+
m_sData
;
}
// XServiceInfo implementation
...
...
odk/examples/DevelopersGuide/Components/CppComponent/service2_impl.cxx
Dosyayı görüntüle @
4ec9f5d7
...
...
@@ -134,15 +134,13 @@ OUString MyService2Impl::methodOne( OUString const & str )
throw
(
RuntimeException
)
{
m_sData
=
str
;
return
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"called methodOne() of MyService2 implementation: "
)
)
+
m_sData
;
return
OUString
(
"called methodOne() of MyService2 implementation: "
)
+
m_sData
;
}
OUString
MyService2Impl
::
methodTwo
(
)
throw
(
RuntimeException
)
{
return
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"called methodTwo() of MyService2 implementation: "
)
)
+
m_sData
;
return
OUString
(
"called methodTwo() of MyService2 implementation: "
)
+
m_sData
;
}
// XServiceInfo implementation
...
...
odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/FlatXmlFilterDetection/filterdetect.cxx
Dosyayı görüntüle @
4ec9f5d7
...
...
@@ -189,15 +189,15 @@ void SAL_CALL FilterDetect::initialize( const Sequence< Any >& aArguments )
nLength
=
aAnySeq
.
getLength
();
for
(
sal_Int32
i
=
0
;
i
<
nLength
;
i
++
)
{
if
(
pValue
[
i
].
Name
.
equalsAsciiL
(
RTL_CONSTASCII_STRINGPARAM
(
"Type"
)
)
)
if
(
pValue
[
i
].
Name
==
"Type"
)
{
pValue
[
i
].
Value
>>=
msFilterName
;
}
else
if
(
pValue
[
i
].
Name
.
equalsAsciiL
(
RTL_CONSTASCII_STRINGPARAM
(
"UserData"
)
)
)
else
if
(
pValue
[
i
].
Name
==
"UserData"
)
{
pValue
[
i
].
Value
>>=
msUserData
;
}
else
if
(
pValue
[
i
].
Name
.
equalsAsciiL
(
RTL_CONSTASCII_STRINGPARAM
(
"TemplateName"
)
)
)
else
if
(
pValue
[
i
].
Name
==
"TemplateName"
)
{
pValue
[
i
].
Value
>>=
msTemplateName
;
}
...
...
@@ -224,7 +224,7 @@ Sequence< OUString > SAL_CALL FilterDetect_getSupportedServiceNames( )
{
Sequence
<
OUString
>
aRet
(
2
);
OUString
*
pArray
=
aRet
.
getArray
();
pArray
[
0
]
=
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
SERVICE_NAME1
)
);
pArray
[
0
]
=
OUString
(
SERVICE_NAME1
);
return
aRet
;
}
#undef SERVICE_NAME1
...
...
odk/examples/DevelopersGuide/ProfUNO/CppBinding/string_samples.cxx
Dosyayı görüntüle @
4ec9f5d7
...
...
@@ -56,7 +56,7 @@ SAL_IMPLEMENT_MAIN()
OUStringBuffer
buf
(
128
);
// append an ascii string
buf
.
append
Ascii
(
"pi ( here "
);
buf
.
append
(
"pi ( here "
);
// numbers can be simply appended
buf
.
append
(
pi
);
...
...
@@ -64,11 +64,11 @@ SAL_IMPLEMENT_MAIN()
// lets the compiler count the stringlength, so this is more efficient than
// the above appendAscii call, where length of the string must be calculated at
// runtime
buf
.
append
Ascii
(
RTL_CONSTASCII_STRINGPARAM
(
" ) multiplied with "
)
);
buf
.
append
(
" ) multiplied with "
);
buf
.
append
(
n
);
buf
.
append
Ascii
(
RTL_CONSTASCII_STRINGPARAM
(
" gives "
)
);
buf
.
append
(
" gives "
);
buf
.
append
(
(
double
)(
n
*
pi
)
);
buf
.
append
Ascii
(
RTL_CONSTASCII_STRINGPARAM
(
"."
)
);
buf
.
append
(
"."
);
// now transfer the buffer into the string.
// afterwards buffer is empty and may be reused again !
...
...
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