summaryrefslogtreecommitdiff
path: root/i18npool/inc
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-01-19 17:56:23 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-01-19 18:03:19 +0100
commit18f40d26ec03dbd23f254c2cfe95e4783fd33449 (patch)
tree7a8099ed9f7096eb323b56daab52fff03501294e /i18npool/inc
parent25df36cf04b6ad94da09725a0bfe012b404b7de2 (diff)
New loplugin:dynexcspec: Add @throws documentation, i18npool
Change-Id: Ie1304a081a8c26cb3204ca7fb3edfa7e2dfae386
Diffstat (limited to 'i18npool/inc')
-rw-r--r--i18npool/inc/breakiteratorImpl.hxx2
-rw-r--r--i18npool/inc/breakiterator_ctl.hxx1
-rw-r--r--i18npool/inc/breakiterator_unicode.hxx1
-rw-r--r--i18npool/inc/calendar_gregorian.hxx14
-rw-r--r--i18npool/inc/characterclassificationImpl.hxx1
-rw-r--r--i18npool/inc/collatorImpl.hxx2
-rw-r--r--i18npool/inc/defaultnumberingprovider.hxx2
-rw-r--r--i18npool/inc/indexentrysupplier.hxx2
-rw-r--r--i18npool/inc/indexentrysupplier_common.hxx1
-rw-r--r--i18npool/inc/indexentrysupplier_default.hxx2
-rw-r--r--i18npool/inc/inputsequencechecker.hxx1
-rw-r--r--i18npool/inc/localedata.hxx17
-rw-r--r--i18npool/inc/nativenumbersupplier.hxx2
-rw-r--r--i18npool/inc/textconversionImpl.hxx1
-rw-r--r--i18npool/inc/transliterationImpl.hxx3
-rw-r--r--i18npool/inc/transliteration_Ignore.hxx1
-rw-r--r--i18npool/inc/transliteration_Numeric.hxx1
-rw-r--r--i18npool/inc/transliteration_caseignore.hxx1
18 files changed, 53 insertions, 2 deletions
diff --git a/i18npool/inc/breakiteratorImpl.hxx b/i18npool/inc/breakiteratorImpl.hxx
index 77b4d33190b9..5168b9ae1a1b 100644
--- a/i18npool/inc/breakiteratorImpl.hxx
+++ b/i18npool/inc/breakiteratorImpl.hxx
@@ -125,8 +125,10 @@ private:
css::uno::Reference < XBreakIterator > xBI;
css::uno::Reference < css::uno::XComponentContext > m_xContext;
+ /// @throws css::uno::RuntimeException
bool SAL_CALL createLocaleSpecificBreakIterator( const OUString& aLocaleName )
throw( css::uno::RuntimeException );
+ /// @throws css::uno::RuntimeException
css::uno::Reference < XBreakIterator > SAL_CALL getLocaleSpecificBreakIterator( const css::lang::Locale& rLocale )
throw( css::uno::RuntimeException );
diff --git a/i18npool/inc/breakiterator_ctl.hxx b/i18npool/inc/breakiterator_ctl.hxx
index e9498a82b8f7..a9d3207f3d8b 100644
--- a/i18npool/inc/breakiterator_ctl.hxx
+++ b/i18npool/inc/breakiterator_ctl.hxx
@@ -48,6 +48,7 @@ protected:
sal_Int32* previousCellIndex;
sal_Int32 cellIndexSize;
+ /// @throws css::uno::RuntimeException
virtual void SAL_CALL makeIndex(const OUString& text, sal_Int32 pos) throw(css::uno::RuntimeException);
};
diff --git a/i18npool/inc/breakiterator_unicode.hxx b/i18npool/inc/breakiterator_unicode.hxx
index 969f90ef77ff..a7581b5c577d 100644
--- a/i18npool/inc/breakiterator_unicode.hxx
+++ b/i18npool/inc/breakiterator_unicode.hxx
@@ -92,6 +92,7 @@ protected:
} character, sentence, line, *icuBI;
BI_Data words[4]; // 4 is css::i18n::WordType enumeration size
+ /// @throws css::uno::RuntimeException
void SAL_CALL loadICUBreakIterator(const css::lang::Locale& rLocale,
sal_Int16 rBreakType, sal_Int16 rWordType, const sal_Char* name, const OUString& rText) throw(css::uno::RuntimeException);
};
diff --git a/i18npool/inc/calendar_gregorian.hxx b/i18npool/inc/calendar_gregorian.hxx
index a83969c15ce3..bd036eccbdf8 100644
--- a/i18npool/inc/calendar_gregorian.hxx
+++ b/i18npool/inc/calendar_gregorian.hxx
@@ -107,18 +107,28 @@ protected:
sal_Int16 fieldValue[FIELD_INDEX_COUNT];
sal_Int16 fieldSetValue[FIELD_INDEX_COUNT];
+ /// @throws css::uno::RuntimeException
virtual void mapToGregorian() throw(css::uno::RuntimeException);
+ /// @throws css::uno::RuntimeException
virtual void mapFromGregorian() throw(css::uno::RuntimeException);
+ /// @throws css::uno::RuntimeException
void getValue() throw(css::uno::RuntimeException);
+ /// @throws css::uno::RuntimeException
OUString getDisplayStringImpl( sal_Int32 nCalendarDisplayCode, sal_Int16 nNativeNumberMode, bool bEraMode ) throw (css::uno::RuntimeException);
private:
Calendar2 aCalendar;
- /** Submit fieldSetValue array according to fieldSet. */
+ /** Submit fieldSetValue array according to fieldSet.
+
+ @throws css::uno::RuntimeException
+ */
void submitFields() throw(css::uno::RuntimeException);
- /** Set fields internally. */
+ /** Set fields internally.
+
+ @throws css::uno::RuntimeException
+ */
void setValue() throw(css::uno::RuntimeException);
/** Obtain combined field values for timezone offset (minutes+secondmillis)
in milliseconds and whether fields were set. */
diff --git a/i18npool/inc/characterclassificationImpl.hxx b/i18npool/inc/characterclassificationImpl.hxx
index d0d8f29a1142..6533e792b1d6 100644
--- a/i18npool/inc/characterclassificationImpl.hxx
+++ b/i18npool/inc/characterclassificationImpl.hxx
@@ -99,6 +99,7 @@ private:
css::uno::Reference < css::uno::XComponentContext > m_xContext;
css::uno::Reference < XCharacterClassification > xUCI;
+ /// @throws css::uno::RuntimeException
css::uno::Reference < XCharacterClassification > const & SAL_CALL getLocaleSpecificCharacterClassification(const css::lang::Locale& rLocale)
throw(css::uno::RuntimeException);
bool SAL_CALL createLocaleSpecificCharacterClassification(const OUString& serviceName, const css::lang::Locale& rLocale);
diff --git a/i18npool/inc/collatorImpl.hxx b/i18npool/inc/collatorImpl.hxx
index e1e7c5b4ea09..9650ef479dc1 100644
--- a/i18npool/inc/collatorImpl.hxx
+++ b/i18npool/inc/collatorImpl.hxx
@@ -98,8 +98,10 @@ private:
// lang::Locale Data
css::uno::Reference < XLocaleData4 > mxLocaleData;
+ /// @throws css::uno::RuntimeException
bool SAL_CALL createCollator(const lang::Locale& rLocale, const OUString& serviceName,
const OUString& rSortAlgorithm) throw(css::uno::RuntimeException);
+ /// @throws css::uno::RuntimeException
void SAL_CALL loadCachedCollator(const lang::Locale& rLocale, const OUString& rSortAlgorithm)
throw(css::uno::RuntimeException);
};
diff --git a/i18npool/inc/defaultnumberingprovider.hxx b/i18npool/inc/defaultnumberingprovider.hxx
index 200dc0b529bd..3d06b6af1111 100644
--- a/i18npool/inc/defaultnumberingprovider.hxx
+++ b/i18npool/inc/defaultnumberingprovider.hxx
@@ -86,8 +86,10 @@ private:
css::uno::Reference < css::uno::XComponentContext > m_xContext;
css::uno::Reference < css::container::XHierarchicalNameAccess > xHierarchicalNameAccess;
std::unique_ptr<TransliterationImpl> translit;
+ /// @throws css::uno::RuntimeException
OUString SAL_CALL makeNumberingIdentifier( sal_Int16 index )
throw(css::uno::RuntimeException, std::exception);
+ /// @throws css::uno::RuntimeException
bool SAL_CALL isScriptFlagEnabled(const OUString& aName )
throw(css::uno::RuntimeException);
};
diff --git a/i18npool/inc/indexentrysupplier.hxx b/i18npool/inc/indexentrysupplier.hxx
index 594059e96b68..b2501415b1c1 100644
--- a/i18npool/inc/indexentrysupplier.hxx
+++ b/i18npool/inc/indexentrysupplier.hxx
@@ -88,7 +88,9 @@ public:
private:
css::uno::Reference < css::i18n::XExtendedIndexEntrySupplier > xIES;
css::uno::Reference < css::uno::XComponentContext > m_xContext;
+ /// @throws css::uno::RuntimeException
bool SAL_CALL createLocaleSpecificIndexEntrySupplier(const OUString& name) throw( css::uno::RuntimeException );
+ /// @throws css::uno::RuntimeException
css::uno::Reference < css::i18n::XExtendedIndexEntrySupplier > const & SAL_CALL getLocaleSpecificIndexEntrySupplier(
const css::lang::Locale& rLocale, const OUString& rSortAlgorithm) throw (css::uno::RuntimeException);
diff --git a/i18npool/inc/indexentrysupplier_common.hxx b/i18npool/inc/indexentrysupplier_common.hxx
index f25731dce934..fa5c87eeb22a 100644
--- a/i18npool/inc/indexentrysupplier_common.hxx
+++ b/i18npool/inc/indexentrysupplier_common.hxx
@@ -97,6 +97,7 @@ protected:
css::lang::Locale aLocale;
OUString aAlgorithm;
+ /// @throws css::uno::RuntimeException
const OUString& SAL_CALL getEntry( const OUString& IndexEntry,
const OUString& PhoneticEntry, const css::lang::Locale& rLocale )
throw (css::uno::RuntimeException);
diff --git a/i18npool/inc/indexentrysupplier_default.hxx b/i18npool/inc/indexentrysupplier_default.hxx
index 901dc1d0f4c9..ebdbcecacfac 100644
--- a/i18npool/inc/indexentrysupplier_default.hxx
+++ b/i18npool/inc/indexentrysupplier_default.hxx
@@ -86,8 +86,10 @@ public:
Index(const css::uno::Reference < css::uno::XComponentContext >& rxContext);
~Index();
+ /// @throws css::uno::RuntimeException
void init(const css::lang::Locale& rLocale, const OUString& algorithm) throw (css::uno::RuntimeException, std::exception);
+ /// @throws css::uno::RuntimeException
void makeIndexKeys(const css::lang::Locale &rLocale, const OUString &algorithm) throw (css::uno::RuntimeException, std::exception);
sal_Int16 getIndexWeight(const OUString& rIndexEntry);
OUString getIndexDescription(const OUString& rIndexEntry);
diff --git a/i18npool/inc/inputsequencechecker.hxx b/i18npool/inc/inputsequencechecker.hxx
index b89d4061e0e5..cd2748ac8ab3 100644
--- a/i18npool/inc/inputsequencechecker.hxx
+++ b/i18npool/inc/inputsequencechecker.hxx
@@ -70,6 +70,7 @@ private:
css::uno::Reference < css::uno::XComponentContext > m_xContext;
+ /// @throws css::uno::RuntimeException
css::uno::Reference< css::i18n::XExtendedInputSequenceChecker >& SAL_CALL getInputSequenceChecker(sal_Char* rLanguage)
throw (css::uno::RuntimeException);
static sal_Char* SAL_CALL getLanguageByScripType(sal_Unicode cChar, sal_Unicode nChar);
diff --git a/i18npool/inc/localedata.hxx b/i18npool/inc/localedata.hxx
index 58e1f798a1f6..fb4f9f274805 100644
--- a/i18npool/inc/localedata.hxx
+++ b/i18npool/inc/localedata.hxx
@@ -89,30 +89,43 @@ public:
virtual css::uno::Sequence< Currency2 > SAL_CALL getAllCurrencies2( const css::lang::Locale& rLocale ) throw(css::uno::RuntimeException, std::exception) override;
virtual css::uno::Sequence< FormatElement > SAL_CALL getAllFormats( const css::lang::Locale& rLocale ) throw(css::uno::RuntimeException, std::exception) override;
virtual css::uno::Sequence< Implementation > SAL_CALL getCollatorImplementations( const css::lang::Locale& rLocale ) throw(css::uno::RuntimeException, std::exception) override;
+ /// @throws css::uno::RuntimeException
OUString SAL_CALL getCollatorRuleByAlgorithm( const css::lang::Locale& rLocale, const OUString& algorithm ) throw(css::uno::RuntimeException, std::exception);
virtual css::uno::Sequence< OUString > SAL_CALL getTransliterations( const css::lang::Locale& rLocale ) throw(css::uno::RuntimeException, std::exception) override;
virtual ForbiddenCharacters SAL_CALL getForbiddenCharacters( const css::lang::Locale& rLocale ) throw(css::uno::RuntimeException, std::exception) override;
virtual css::uno::Sequence< OUString > SAL_CALL getReservedWord( const css::lang::Locale& rLocale ) throw(css::uno::RuntimeException, std::exception) override ;
+ /// @throws css::uno::RuntimeException
css::uno::Sequence< OUString > SAL_CALL getBreakIteratorRules( const css::lang::Locale& rLocale ) throw(css::uno::RuntimeException, std::exception) ;
virtual css::uno::Sequence< css::lang::Locale > SAL_CALL getAllInstalledLocaleNames() throw(css::uno::RuntimeException, std::exception) override;
virtual css::uno::Sequence< OUString > SAL_CALL getSearchOptions( const css::lang::Locale& rLocale ) throw(css::uno::RuntimeException, std::exception) override;
virtual css::uno::Sequence< OUString > SAL_CALL getCollationOptions( const css::lang::Locale& rLocale ) throw(css::uno::RuntimeException, std::exception) override;
+ /// @throws css::uno::RuntimeException
css::uno::Sequence< css::uno::Sequence< beans::PropertyValue > > SAL_CALL getContinuousNumberingLevels( const css::lang::Locale& rLocale ) throw(css::uno::RuntimeException, std::exception);
+ /// @throws css::uno::RuntimeException
css::uno::Sequence< css::uno::Reference< container::XIndexAccess > > SAL_CALL getOutlineNumberingLevels( const css::lang::Locale& rLocale ) throw(css::uno::RuntimeException, std::exception);
// XLocaleData4
virtual css::uno::Sequence< OUString > SAL_CALL getDateAcceptancePatterns( const css::lang::Locale& rLocale ) throw(css::uno::RuntimeException, std::exception) override;
// following methods are used by indexentry service
+ /// @throws css::uno::RuntimeException
css::uno::Sequence< OUString > SAL_CALL getIndexAlgorithm( const css::lang::Locale& rLocale ) throw(css::uno::RuntimeException);
+ /// @throws css::uno::RuntimeException
OUString SAL_CALL getDefaultIndexAlgorithm( const css::lang::Locale& rLocale ) throw(css::uno::RuntimeException);
+ /// @throws css::uno::RuntimeException
OUString SAL_CALL getIndexKeysByAlgorithm( const css::lang::Locale& rLocale, const OUString& algorithm ) throw(css::uno::RuntimeException);
+ /// @throws css::uno::RuntimeException
OUString SAL_CALL getIndexModuleByAlgorithm( const css::lang::Locale& rLocale, const OUString& algorithm ) throw(css::uno::RuntimeException);
+ /// @throws css::uno::RuntimeException
css::uno::Sequence< UnicodeScript > SAL_CALL getUnicodeScripts( const css::lang::Locale& rLocale ) throw(css::uno::RuntimeException, std::exception);
+ /// @throws css::uno::RuntimeException
css::uno::Sequence< OUString > SAL_CALL getFollowPageWords( const css::lang::Locale& rLocale ) throw(css::uno::RuntimeException, std::exception);
+ /// @throws css::uno::RuntimeException
bool SAL_CALL hasPhonetic( const css::lang::Locale& rLocale ) throw(css::uno::RuntimeException);
+ /// @throws css::uno::RuntimeException
bool SAL_CALL isPhonetic( const css::lang::Locale& rLocale, const OUString& algorithm ) throw(css::uno::RuntimeException);
+ /// @throws css::uno::RuntimeException
OUString SAL_CALL getHangingCharacters( const css::lang::Locale& rLocale ) throw(css::uno::RuntimeException, std::exception);
//XServiceInfo
@@ -125,9 +138,11 @@ private:
css::i18n::Calendar2 ref_cal;
OUString ref_name;
+ /// @throws css::uno::RuntimeException
oslGenericFunction SAL_CALL getFunctionSymbol( const css::lang::Locale& rLocale, const sal_Char* pFunction ) throw( css::uno::RuntimeException, std::exception );
sal_Unicode ** SAL_CALL getIndexArray(const css::lang::Locale& rLocale, sal_Int16& indexCount);
sal_Unicode ** SAL_CALL getIndexArrayForAlgorithm(const css::lang::Locale& rLocale, const OUString& rAlgorithm);
+ /// @throws css::uno::RuntimeException
css::uno::Sequence< css::i18n::CalendarItem2 > &
getCalendarItemByName(const OUString& name,
const css::lang::Locale& rLocale,
@@ -135,6 +150,8 @@ private:
sal_Int16 item) throw( css::uno::RuntimeException, std::exception );
/// Helper to obtain a sequence of days, months, gmonths or eras.
+ ///
+ /// @throws css::uno::RuntimeException
css::uno::Sequence< css::i18n::CalendarItem2 > getCalendarItems(
sal_Unicode const * const * const allCalendars,
sal_Int16 & rnOffset,
diff --git a/i18npool/inc/nativenumbersupplier.hxx b/i18npool/inc/nativenumbersupplier.hxx
index 270cb7a165e6..9ec559a3b220 100644
--- a/i18npool/inc/nativenumbersupplier.hxx
+++ b/i18npool/inc/nativenumbersupplier.hxx
@@ -65,10 +65,12 @@ public:
throw( css::uno::RuntimeException, std::exception ) override;
// following methods are not for XNativeNumberSupplier, they are for calling from transliterations
+ /// @throws css::uno::RuntimeException
OUString SAL_CALL getNativeNumberString( const OUString& aNumberString,
const css::lang::Locale& aLocale, sal_Int16 nNativeNumberMode,
css::uno::Sequence< sal_Int32 >& offset )
throw (css::uno::RuntimeException);
+ /// @throws css::uno::RuntimeException
sal_Unicode SAL_CALL getNativeNumberChar( const sal_Unicode inChar,
const css::lang::Locale& aLocale, sal_Int16 nNativeNumberMode )
throw(css::uno::RuntimeException) ;
diff --git a/i18npool/inc/textconversionImpl.hxx b/i18npool/inc/textconversionImpl.hxx
index 7f43e2983334..3284a9f7b655 100644
--- a/i18npool/inc/textconversionImpl.hxx
+++ b/i18npool/inc/textconversionImpl.hxx
@@ -83,6 +83,7 @@ private:
css::uno::Reference < css::i18n::XExtendedTextConversion > xTC;
css::uno::Reference < css::uno::XComponentContext > m_xContext;
+ /// @throws css::lang::NoSupportException
void SAL_CALL getLocaleSpecificTextConversion( const css::lang::Locale& rLocale )
throw( css::lang::NoSupportException );
};
diff --git a/i18npool/inc/transliterationImpl.hxx b/i18npool/inc/transliterationImpl.hxx
index 7714ac3c5b52..2bdfd43b901d 100644
--- a/i18npool/inc/transliterationImpl.hxx
+++ b/i18npool/inc/transliterationImpl.hxx
@@ -100,16 +100,19 @@ private:
css::uno::Reference< XLocaleData4 > mxLocaledata;
css::uno::Reference< css::i18n::XExtendedTransliteration > caseignore;
+ /// @throws css::uno::RuntimeException
bool SAL_CALL loadModuleByName( const OUString& implName,
css::uno::Reference<css::i18n::XExtendedTransliteration> & body, const css::lang::Locale& rLocale)
throw(css::uno::RuntimeException);
void clear();
+ /// @throws css::uno::RuntimeException
void loadBody( OUString &implName,
css::uno::Reference< css::i18n::XExtendedTransliteration >& body )
throw (css::uno::RuntimeException);
+ /// @throws css::uno::RuntimeException
css::uno::Sequence< OUString > SAL_CALL getRange(
const css::uno::Sequence< OUString > &inStrs,
sal_Int32 length, const sal_Int16 _nCascade)
diff --git a/i18npool/inc/transliteration_Ignore.hxx b/i18npool/inc/transliteration_Ignore.hxx
index 3b67d64120e7..24f147ac3fe4 100644
--- a/i18npool/inc/transliteration_Ignore.hxx
+++ b/i18npool/inc/transliteration_Ignore.hxx
@@ -58,6 +58,7 @@ public:
throw(css::uno::RuntimeException,
css::i18n::MultipleCharsOutputException, std::exception) override;
+ /// @throws css::uno::RuntimeException
static css::uno::Sequence< OUString > SAL_CALL
transliterateRange( const OUString& str1, const OUString& str2, XTransliteration& t1, XTransliteration& t2 )
throw(css::uno::RuntimeException);
diff --git a/i18npool/inc/transliteration_Numeric.hxx b/i18npool/inc/transliteration_Numeric.hxx
index 33ce3690805a..4032478215a3 100644
--- a/i18npool/inc/transliteration_Numeric.hxx
+++ b/i18npool/inc/transliteration_Numeric.hxx
@@ -54,6 +54,7 @@ protected:
const sal_Unicode* table;
bool recycleSymbol;
private:
+ /// @throws css::uno::RuntimeException
OUString SAL_CALL
transliterateBullet( const OUString& inStr, sal_Int32 startPos, sal_Int32 nCount,
css::uno::Sequence< sal_Int32 >& offset )
diff --git a/i18npool/inc/transliteration_caseignore.hxx b/i18npool/inc/transliteration_caseignore.hxx
index f80c747c12eb..e2f82514c3e1 100644
--- a/i18npool/inc/transliteration_caseignore.hxx
+++ b/i18npool/inc/transliteration_caseignore.hxx
@@ -56,6 +56,7 @@ public:
protected:
TransliterationModules moduleLoaded;
private:
+ /// @throws css::uno::RuntimeException
sal_Int32 SAL_CALL compare(
const OUString& str1, sal_Int32 pos1, sal_Int32 nCount1, sal_Int32& nMatch1,
const OUString& str2, sal_Int32 pos2, sal_Int32 nCount2, sal_Int32& nMatch2)