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
4186d572
Kaydet (Commit)
4186d572
authored
May 31, 2015
tarafından
Bjoern Michaelsen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
inline trivial oneliners
Change-Id: I20b993f1775b2db9865487ed84c60e07fd0a4ced
üst
736d19c4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
53 deletions
+16
-53
unoobj2.cxx
sw/source/core/unocore/unoobj2.cxx
+16
-53
No files found.
sw/source/core/unocore/unoobj2.cxx
Dosyayı görüntüle @
4186d572
...
...
@@ -470,9 +470,12 @@ struct SwXParagraphEnumerationImpl SAL_FINAL : public SwXParagraphEnumeration
}
// XServiceInfo
virtual
OUString
SAL_CALL
getImplementationName
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
sal_Bool
SAL_CALL
supportsService
(
const
OUString
&
rServiceName
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
::
com
::
sun
::
star
::
uno
::
Sequence
<
OUString
>
SAL_CALL
getSupportedServiceNames
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
OUString
SAL_CALL
getImplementationName
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
{
return
OUString
(
"SwXParagraphEnumeration"
);
}
virtual
sal_Bool
SAL_CALL
supportsService
(
const
OUString
&
rServiceName
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
{
return
cppu
::
supportsService
(
this
,
rServiceName
);
};
virtual
::
com
::
sun
::
star
::
uno
::
Sequence
<
OUString
>
SAL_CALL
getSupportedServiceNames
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
{
return
{
"com.sun.star.text.ParagraphEnumeration"
};
};
// XEnumeration
virtual
sal_Bool
SAL_CALL
hasMoreElements
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
...
...
@@ -494,24 +497,6 @@ SwXParagraphEnumeration* SwXParagraphEnumeration::Create(
return
new
SwXParagraphEnumerationImpl
(
xParent
,
pCursor
,
eType
,
pStartNode
,
pTable
);
}
OUString
SAL_CALL
SwXParagraphEnumerationImpl
::
getImplementationName
()
throw
(
uno
::
RuntimeException
,
std
::
exception
)
{
return
OUString
(
"SwXParagraphEnumeration"
);
}
sal_Bool
SAL_CALL
SwXParagraphEnumerationImpl
::
supportsService
(
const
OUString
&
rServiceName
)
throw
(
uno
::
RuntimeException
,
std
::
exception
)
{
return
cppu
::
supportsService
(
this
,
rServiceName
);
}
uno
::
Sequence
<
OUString
>
SAL_CALL
SwXParagraphEnumerationImpl
::
getSupportedServiceNames
()
throw
(
uno
::
RuntimeException
,
std
::
exception
)
{
return
{
"com.sun.star.text.ParagraphEnumeration"
};
}
sal_Bool
SAL_CALL
SwXParagraphEnumerationImpl
::
hasMoreElements
()
throw
(
uno
::
RuntimeException
,
std
::
exception
)
{
...
...
@@ -1473,13 +1458,18 @@ struct SwXTextRangesImpl SAL_FINAL : public SwXTextRanges
virtual
sal_Int64
SAL_CALL
getSomething
(
const
::
com
::
sun
::
star
::
uno
::
Sequence
<
sal_Int8
>&
rIdentifier
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
// XServiceInfo
virtual
OUString
SAL_CALL
getImplementationName
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
sal_Bool
SAL_CALL
supportsService
(
const
OUString
&
rServiceName
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
::
com
::
sun
::
star
::
uno
::
Sequence
<
OUString
>
SAL_CALL
getSupportedServiceNames
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
OUString
SAL_CALL
getImplementationName
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
{
return
OUString
(
"SwXTextRanges"
);
};
virtual
sal_Bool
SAL_CALL
supportsService
(
const
OUString
&
rServiceName
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
{
return
cppu
::
supportsService
(
this
,
rServiceName
);
};
virtual
::
com
::
sun
::
star
::
uno
::
Sequence
<
OUString
>
SAL_CALL
getSupportedServiceNames
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
{
return
{
"com.sun.star.text.TextRanges"
};
};
// XElementAccess
virtual
::
com
::
sun
::
star
::
uno
::
Type
SAL_CALL
getElementType
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
sal_Bool
SAL_CALL
hasElements
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
::
com
::
sun
::
star
::
uno
::
Type
SAL_CALL
getElementType
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
{
return
cppu
::
UnoType
<
text
::
XTextRange
>::
get
();
};
virtual
sal_Bool
SAL_CALL
hasElements
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
{
return
getCount
()
>
0
;
};
// XIndexAccess
virtual
sal_Int32
SAL_CALL
getCount
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
::
com
::
sun
::
star
::
uno
::
Any
SAL_CALL
getByIndex
(
sal_Int32
nIndex
)
throw
(
::
com
::
sun
::
star
::
lang
::
IndexOutOfBoundsException
,
::
com
::
sun
::
star
::
lang
::
WrappedTargetException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
...
...
@@ -1546,23 +1536,6 @@ SwXTextRangesImpl::getSomething(const uno::Sequence< sal_Int8 >& rId)
* Up to the first access to a text position, only a SwCursor is stored.
* Afterwards, an array with uno::Reference<XTextPosition> will be created.
*/
OUString
SAL_CALL
SwXTextRangesImpl
::
getImplementationName
()
throw
(
uno
::
RuntimeException
,
std
::
exception
)
{
return
OUString
(
"SwXTextRanges"
);
}
sal_Bool
SAL_CALL
SwXTextRangesImpl
::
supportsService
(
const
OUString
&
rServiceName
)
throw
(
uno
::
RuntimeException
,
std
::
exception
)
{
return
cppu
::
supportsService
(
this
,
rServiceName
);
}
uno
::
Sequence
<
OUString
>
SAL_CALL
SwXTextRangesImpl
::
getSupportedServiceNames
()
throw
(
uno
::
RuntimeException
,
std
::
exception
)
{
return
{
"com.sun.star.text.TextRanges"
};
}
sal_Int32
SAL_CALL
SwXTextRangesImpl
::
getCount
()
throw
(
uno
::
RuntimeException
,
std
::
exception
)
...
...
@@ -1581,16 +1554,6 @@ uno::Any SAL_CALL SwXTextRangesImpl::getByIndex(sal_Int32 nIndex) throw (lang::I
return
ret
;
}
uno
::
Type
SAL_CALL
SwXTextRangesImpl
::
getElementType
()
throw
(
uno
::
RuntimeException
,
std
::
exception
)
{
return
cppu
::
UnoType
<
text
::
XTextRange
>::
get
();
}
sal_Bool
SAL_CALL
SwXTextRangesImpl
::
hasElements
()
throw
(
uno
::
RuntimeException
,
std
::
exception
)
{
// no mutex necessary: getCount() does locking
return
getCount
()
>
0
;
}
void
SwUnoCursorHelper
::
SetString
(
SwCursor
&
rCursor
,
const
OUString
&
rString
)
{
// Start/EndAction
...
...
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