com::sun::star->css in scaddins,sccomp,scripting

Change-Id: Id9167341940bac65f055e1e33ff0670f6fa0f6c4
Reviewed-on: https://gerrit.libreoffice.org/19629
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
This commit is contained in:
Noel Grandin
2015-10-27 15:38:52 +02:00
committed by Noel Grandin
parent 8c5e922d66
commit d95a27f944
26 changed files with 692 additions and 697 deletions

View File

@@ -177,7 +177,7 @@ void StringResourceImpl::removeModifyListener( const Reference< XModifyListener
OUString StringResourceImpl::implResolveString
( const OUString& ResourceID, LocaleItem* pLocaleItem )
throw (::com::sun::star::resource::MissingResourceException)
throw (css::resource::MissingResourceException)
{
OUString aRetStr;
bool bSuccess = false;
@@ -194,20 +194,20 @@ OUString StringResourceImpl::implResolveString
{
OUString errorMsg("StringResourceImpl: No entry for ResourceID: ");
errorMsg = errorMsg.concat( ResourceID );
throw ::com::sun::star::resource::MissingResourceException( errorMsg );
throw css::resource::MissingResourceException( errorMsg );
}
return aRetStr;
}
OUString StringResourceImpl::resolveString( const OUString& ResourceID )
throw (::com::sun::star::resource::MissingResourceException, RuntimeException, std::exception)
throw (css::resource::MissingResourceException, RuntimeException, std::exception)
{
::osl::MutexGuard aGuard( getMutex() );
return implResolveString( ResourceID, m_pCurrentLocaleItem );
}
OUString StringResourceImpl::resolveStringForLocale( const OUString& ResourceID, const Locale& locale )
throw ( ::com::sun::star::resource::MissingResourceException, RuntimeException, std::exception)
throw ( css::resource::MissingResourceException, RuntimeException, std::exception)
{
::osl::MutexGuard aGuard( getMutex() );
LocaleItem* pLocaleItem = getItemForLocale( locale, false );
@@ -265,7 +265,7 @@ Sequence< OUString > StringResourceImpl::implGetResourceIDs( LocaleItem* pLocale
}
Sequence< OUString > StringResourceImpl::getResourceIDsForLocale
( const Locale& locale ) throw (::com::sun::star::uno::RuntimeException, std::exception)
( const Locale& locale ) throw (css::uno::RuntimeException, std::exception)
{
::osl::MutexGuard aGuard( getMutex() );
LocaleItem* pLocaleItem = getItemForLocale( locale, false );
@@ -432,7 +432,7 @@ void StringResourceImpl::setStringForLocale
}
void StringResourceImpl::implRemoveId( const OUString& ResourceID, LocaleItem* pLocaleItem )
throw (::com::sun::star::resource::MissingResourceException)
throw (css::resource::MissingResourceException)
{
if( pLocaleItem != NULL && loadLocale( pLocaleItem ) )
{
@@ -442,7 +442,7 @@ void StringResourceImpl::implRemoveId( const OUString& ResourceID, LocaleItem* p
{
OUString errorMsg("StringResourceImpl: No entries for ResourceID: ");
errorMsg = errorMsg.concat( ResourceID );
throw ::com::sun::star::resource::MissingResourceException( errorMsg );
throw css::resource::MissingResourceException( errorMsg );
}
rHashMap.erase( it );
pLocaleItem->m_bModified = true;
@@ -451,7 +451,7 @@ void StringResourceImpl::implRemoveId( const OUString& ResourceID, LocaleItem* p
}
void StringResourceImpl::removeId( const OUString& ResourceID )
throw (::com::sun::star::resource::MissingResourceException, RuntimeException, NoSupportException, std::exception)
throw (css::resource::MissingResourceException, RuntimeException, NoSupportException, std::exception)
{
::osl::MutexGuard aGuard( getMutex() );
implCheckReadOnly( "StringResourceImpl::removeId(): Read only" );
@@ -459,7 +459,7 @@ void StringResourceImpl::removeId( const OUString& ResourceID )
}
void StringResourceImpl::removeIdForLocale( const OUString& ResourceID, const Locale& locale )
throw (::com::sun::star::resource::MissingResourceException, RuntimeException, NoSupportException, std::exception)
throw (css::resource::MissingResourceException, RuntimeException, NoSupportException, std::exception)
{
::osl::MutexGuard aGuard( getMutex() );
implCheckReadOnly( "StringResourceImpl::removeIdForLocale(): Read only" );
@@ -642,7 +642,7 @@ sal_Int32 StringResourceImpl::getUniqueNumericId( )
LocaleItem* StringResourceImpl::getItemForLocale
( const Locale& locale, bool bException )
throw (::com::sun::star::lang::IllegalArgumentException)
throw (css::lang::IllegalArgumentException)
{
LocaleItem* pRetItem = NULL;
@@ -811,7 +811,7 @@ void StringResourcePersistenceImpl::implInitializeCommonParameters
throw IllegalArgumentException( errorMsg, Reference< XInterface >(), 1 );
}
com::sun::star::lang::Locale aCurrentLocale;
css::lang::Locale aCurrentLocale;
bool bLocaleOk = (aArguments[2] >>= aCurrentLocale);
if( !bLocaleOk )
{
@@ -859,12 +859,12 @@ void StringResourcePersistenceImpl::removeModifyListener( const Reference< XModi
// XStringResourceResolver
OUString StringResourcePersistenceImpl::resolveString( const OUString& ResourceID )
throw (::com::sun::star::resource::MissingResourceException, RuntimeException, std::exception)
throw (css::resource::MissingResourceException, RuntimeException, std::exception)
{
return StringResourceImpl::resolveString( ResourceID ) ;
}
OUString StringResourcePersistenceImpl::resolveStringForLocale( const OUString& ResourceID, const Locale& locale )
throw ( ::com::sun::star::resource::MissingResourceException, RuntimeException, std::exception)
throw ( css::resource::MissingResourceException, RuntimeException, std::exception)
{
return StringResourceImpl::resolveStringForLocale( ResourceID, locale );
}
@@ -928,17 +928,17 @@ void StringResourcePersistenceImpl::setStringForLocale
StringResourceImpl::setStringForLocale( ResourceID, Str, locale );
}
Sequence< OUString > StringResourcePersistenceImpl::getResourceIDsForLocale
( const Locale& locale ) throw (::com::sun::star::uno::RuntimeException, std::exception)
( const Locale& locale ) throw (css::uno::RuntimeException, std::exception)
{
return StringResourceImpl::getResourceIDsForLocale( locale );
}
void StringResourcePersistenceImpl::removeId( const OUString& ResourceID )
throw (::com::sun::star::resource::MissingResourceException, RuntimeException, NoSupportException, std::exception)
throw (css::resource::MissingResourceException, RuntimeException, NoSupportException, std::exception)
{
StringResourceImpl::removeId( ResourceID );
}
void StringResourcePersistenceImpl::removeIdForLocale( const OUString& ResourceID, const Locale& locale )
throw (::com::sun::star::resource::MissingResourceException, RuntimeException, NoSupportException, std::exception)
throw (css::resource::MissingResourceException, RuntimeException, NoSupportException, std::exception)
{
StringResourceImpl::removeIdForLocale( ResourceID, locale );
}
@@ -975,7 +975,7 @@ sal_Bool StringResourcePersistenceImpl::isModified( )
}
void StringResourcePersistenceImpl::setComment( const OUString& Comment )
throw (::com::sun::star::uno::RuntimeException, std::exception)
throw (css::uno::RuntimeException, std::exception)
{
m_aComment = Comment;
}
@@ -995,7 +995,7 @@ void StringResourcePersistenceImpl::implStoreAtStorage
(
const OUString& aNameBase,
const OUString& aComment,
const Reference< ::com::sun::star::embed::XStorage >& Storage,
const Reference< css::embed::XStorage >& Storage,
bool bUsedForStore,
bool bStoreAll
)
@@ -1106,7 +1106,7 @@ void StringResourcePersistenceImpl::implStoreAtStorage
void StringResourcePersistenceImpl::storeToURL( const OUString& URL,
const OUString& NameBase, const OUString& Comment,
const Reference< ::com::sun::star::task::XInteractionHandler >& Handler )
const Reference< css::task::XInteractionHandler >& Handler )
throw (Exception, RuntimeException, std::exception)
{
::osl::MutexGuard aGuard( getMutex() );
@@ -1125,7 +1125,7 @@ void StringResourcePersistenceImpl::implKillRemovedLocaleFiles
(
const OUString& Location,
const OUString& aNameBase,
const ::com::sun::star::uno::Reference< ::com::sun::star::ucb::XSimpleFileAccess3 >& xFileAccess
const css::uno::Reference< css::ucb::XSimpleFileAccess3 >& xFileAccess
)
throw (Exception, RuntimeException, std::exception)
{
@@ -1151,7 +1151,7 @@ void StringResourcePersistenceImpl::implKillChangedDefaultFiles
(
const OUString& Location,
const OUString& aNameBase,
const ::com::sun::star::uno::Reference< ::com::sun::star::ucb::XSimpleFileAccess3 >& xFileAccess
const css::uno::Reference< css::ucb::XSimpleFileAccess3 >& xFileAccess
)
throw (Exception, RuntimeException, std::exception)
{
@@ -2356,12 +2356,12 @@ void StringResourceWithStorageImpl::removeModifyListener( const Reference< XModi
// XStringResourceResolver
OUString StringResourceWithStorageImpl::resolveString( const OUString& ResourceID )
throw (::com::sun::star::resource::MissingResourceException, RuntimeException, std::exception)
throw (css::resource::MissingResourceException, RuntimeException, std::exception)
{
return StringResourceImpl::resolveString( ResourceID ) ;
}
OUString StringResourceWithStorageImpl::resolveStringForLocale( const OUString& ResourceID, const Locale& locale )
throw ( ::com::sun::star::resource::MissingResourceException, RuntimeException, std::exception)
throw ( css::resource::MissingResourceException, RuntimeException, std::exception)
{
return StringResourceImpl::resolveStringForLocale( ResourceID, locale );
}
@@ -2382,7 +2382,7 @@ Sequence< OUString > StringResourceWithStorageImpl::getResourceIDs( )
return StringResourceImpl::getResourceIDs();
}
Sequence< OUString > StringResourceWithStorageImpl::getResourceIDsForLocale
( const Locale& locale ) throw (::com::sun::star::uno::RuntimeException, std::exception)
( const Locale& locale ) throw (css::uno::RuntimeException, std::exception)
{
return StringResourceImpl::getResourceIDsForLocale( locale );
}
@@ -2430,12 +2430,12 @@ void StringResourceWithStorageImpl::setStringForLocale
StringResourceImpl::setStringForLocale( ResourceID, Str, locale );
}
void StringResourceWithStorageImpl::removeId( const OUString& ResourceID )
throw (::com::sun::star::resource::MissingResourceException, RuntimeException, NoSupportException, std::exception)
throw (css::resource::MissingResourceException, RuntimeException, NoSupportException, std::exception)
{
StringResourceImpl::removeId( ResourceID );
}
void StringResourceWithStorageImpl::removeIdForLocale( const OUString& ResourceID, const Locale& locale )
throw (::com::sun::star::resource::MissingResourceException, RuntimeException, NoSupportException, std::exception)
throw (css::resource::MissingResourceException, RuntimeException, NoSupportException, std::exception)
{
StringResourceImpl::removeIdForLocale( ResourceID, locale );
}
@@ -2478,7 +2478,7 @@ sal_Bool StringResourceWithStorageImpl::isModified( )
return StringResourcePersistenceImpl::isModified();
}
void StringResourceWithStorageImpl::setComment( const OUString& Comment )
throw (::com::sun::star::uno::RuntimeException, std::exception)
throw (css::uno::RuntimeException, std::exception)
{
StringResourcePersistenceImpl::setComment( Comment );
}
@@ -2490,7 +2490,7 @@ void StringResourceWithStorageImpl::storeToStorage( const Reference< XStorage >&
}
void StringResourceWithStorageImpl::storeToURL( const OUString& URL,
const OUString& NameBase, const OUString& Comment,
const Reference< ::com::sun::star::task::XInteractionHandler >& Handler )
const Reference< css::task::XInteractionHandler >& Handler )
throw (Exception, RuntimeException, std::exception)
{
StringResourcePersistenceImpl::storeToURL( URL, NameBase, Comment, Handler );
@@ -2697,12 +2697,12 @@ void StringResourceWithLocationImpl::removeModifyListener( const Reference< XMod
// XStringResourceResolver
OUString StringResourceWithLocationImpl::resolveString( const OUString& ResourceID )
throw (::com::sun::star::resource::MissingResourceException, RuntimeException, std::exception)
throw (css::resource::MissingResourceException, RuntimeException, std::exception)
{
return StringResourceImpl::resolveString( ResourceID ) ;
}
OUString StringResourceWithLocationImpl::resolveStringForLocale( const OUString& ResourceID, const Locale& locale )
throw ( ::com::sun::star::resource::MissingResourceException, RuntimeException, std::exception)
throw ( css::resource::MissingResourceException, RuntimeException, std::exception)
{
return StringResourceImpl::resolveStringForLocale( ResourceID, locale );
}
@@ -2723,7 +2723,7 @@ Sequence< OUString > StringResourceWithLocationImpl::getResourceIDs( )
return StringResourceImpl::getResourceIDs();
}
Sequence< OUString > StringResourceWithLocationImpl::getResourceIDsForLocale
( const Locale& locale ) throw (::com::sun::star::uno::RuntimeException, std::exception)
( const Locale& locale ) throw (css::uno::RuntimeException, std::exception)
{
return StringResourceImpl::getResourceIDsForLocale( locale );
}
@@ -2771,12 +2771,12 @@ void StringResourceWithLocationImpl::setStringForLocale
StringResourceImpl::setStringForLocale( ResourceID, Str, locale );
}
void StringResourceWithLocationImpl::removeId( const OUString& ResourceID )
throw (::com::sun::star::resource::MissingResourceException, RuntimeException, NoSupportException, std::exception)
throw (css::resource::MissingResourceException, RuntimeException, NoSupportException, std::exception)
{
StringResourceImpl::removeId( ResourceID );
}
void StringResourceWithLocationImpl::removeIdForLocale( const OUString& ResourceID, const Locale& locale )
throw (::com::sun::star::resource::MissingResourceException, RuntimeException, NoSupportException, std::exception)
throw (css::resource::MissingResourceException, RuntimeException, NoSupportException, std::exception)
{
StringResourceImpl::removeIdForLocale( ResourceID, locale );
}
@@ -2821,7 +2821,7 @@ sal_Bool StringResourceWithLocationImpl::isModified( )
return StringResourcePersistenceImpl::isModified();
}
void StringResourceWithLocationImpl::setComment( const OUString& Comment )
throw (::com::sun::star::uno::RuntimeException, std::exception)
throw (css::uno::RuntimeException, std::exception)
{
StringResourcePersistenceImpl::setComment( Comment );
}
@@ -2833,7 +2833,7 @@ void StringResourceWithLocationImpl::storeToStorage( const Reference< XStorage >
}
void StringResourceWithLocationImpl::storeToURL( const OUString& URL,
const OUString& NameBase, const OUString& Comment,
const Reference< ::com::sun::star::task::XInteractionHandler >& Handler )
const Reference< css::task::XInteractionHandler >& Handler )
throw (Exception, RuntimeException, std::exception)
{
StringResourcePersistenceImpl::storeToURL( URL, NameBase, Comment, Handler );
@@ -2854,7 +2854,7 @@ void StringResourceWithLocationImpl::importBinary( const Sequence< ::sal_Int8 >&
// XStringResourceWithLocation
void StringResourceWithLocationImpl::storeAsURL( const OUString& URL )
throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException, std::exception)
throw (css::uno::Exception, css::uno::RuntimeException, std::exception)
{
setURL( URL );
store();

View File

@@ -71,14 +71,14 @@ IdToIndexMap;
struct LocaleItem
{
::com::sun::star::lang::Locale m_locale;
IdToStringMap m_aIdToStringMap;
IdToIndexMap m_aIdToIndexMap;
sal_Int32 m_nNextIndex;
bool m_bLoaded;
bool m_bModified;
css::lang::Locale m_locale;
IdToStringMap m_aIdToStringMap;
IdToIndexMap m_aIdToIndexMap;
sal_Int32 m_nNextIndex;
bool m_bLoaded;
bool m_bModified;
LocaleItem( ::com::sun::star::lang::Locale locale, bool bLoaded=true )
LocaleItem( css::lang::Locale locale, bool bLoaded=true )
: m_locale( locale )
, m_nNextIndex( 0 )
, m_bLoaded( bLoaded )
@@ -91,29 +91,29 @@ typedef std::vector< LocaleItem* >::iterator LocaleItemVectorIt;
typedef std::vector< LocaleItem* >::const_iterator LocaleItemVectorConstIt;
typedef ::cppu::WeakImplHelper<
::com::sun::star::lang::XServiceInfo,
::com::sun::star::resource::XStringResourceManager > StringResourceImpl_BASE;
css::lang::XServiceInfo,
css::resource::XStringResourceManager > StringResourceImpl_BASE;
class StringResourceImpl : public StringResourceImpl_BASE
{
protected:
::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > m_xContext;
::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiComponentFactory > m_xMCF;
css::uno::Reference< css::uno::XComponentContext > m_xContext;
css::uno::Reference< css::lang::XMultiComponentFactory > m_xMCF;
LocaleItem* m_pCurrentLocaleItem;
LocaleItem* m_pDefaultLocaleItem;
bool m_bDefaultModified;
LocaleItem* m_pCurrentLocaleItem;
LocaleItem* m_pDefaultLocaleItem;
bool m_bDefaultModified;
::cppu::OInterfaceContainerHelper m_aListenerContainer;
::cppu::OInterfaceContainerHelper m_aListenerContainer;
LocaleItemVector m_aLocaleItemVector;
LocaleItemVector m_aDeletedLocaleItemVector;
LocaleItemVector m_aChangedDefaultLocaleVector;
LocaleItemVector m_aLocaleItemVector;
LocaleItemVector m_aDeletedLocaleItemVector;
LocaleItemVector m_aChangedDefaultLocaleVector;
bool m_bModified;
bool m_bReadOnly;
bool m_bModified;
bool m_bReadOnly;
sal_Int32 m_nNextUniqueNumericId;
sal_Int32 m_nNextUniqueNumericId;
// Scans ResourceID to start with number and adapt m_nNextUniqueNumericId
void implScanIdForNumber( const OUString& ResourceID );
@@ -121,36 +121,36 @@ protected:
// Checks read only status and throws exception if it's true
void implCheckReadOnly( const sal_Char* pExceptionMsg )
throw (::com::sun::star::lang::NoSupportException);
throw (css::lang::NoSupportException);
// Return the context's MultiComponentFactory
::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiComponentFactory >
css::uno::Reference< css::lang::XMultiComponentFactory >
getMultiComponentFactory();
// Returns the LocalItem for a given locale, if it exists, otherwise NULL
// This method compares the locales exactly, no closest match search is performed
LocaleItem* getItemForLocale( const ::com::sun::star::lang::Locale& locale, bool bException )
throw (::com::sun::star::lang::IllegalArgumentException);
LocaleItem* getItemForLocale( const css::lang::Locale& locale, bool bException )
throw (css::lang::IllegalArgumentException);
// Returns the LocalItem for a given locale, if it exists, otherwise NULL
// This method performs a closest match search, at least the language must match
LocaleItem* getClosestMatchItemForLocale( const ::com::sun::star::lang::Locale& locale );
void implSetCurrentLocale( const ::com::sun::star::lang::Locale& locale,
LocaleItem* getClosestMatchItemForLocale( const css::lang::Locale& locale );
void implSetCurrentLocale( const css::lang::Locale& locale,
bool FindClosestMatch, bool bUseDefaultIfNoMatch )
throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException);
throw (css::lang::IllegalArgumentException, css::uno::RuntimeException);
void implModified();
void implNotifyListeners();
//=== Impl methods for ...ForLocale methods ===
OUString SAL_CALL implResolveString( const OUString& ResourceID, LocaleItem* pLocaleItem )
throw (::com::sun::star::resource::MissingResourceException);
throw (css::resource::MissingResourceException);
bool implHasEntryForId( const OUString& ResourceID, LocaleItem* pLocaleItem );
::com::sun::star::uno::Sequence< OUString > implGetResourceIDs( LocaleItem* pLocaleItem );
css::uno::Sequence< OUString > implGetResourceIDs( LocaleItem* pLocaleItem );
void implSetString( const OUString& ResourceID,
const OUString& Str, LocaleItem* pLocaleItem );
void implRemoveId( const OUString& ResourceID, LocaleItem* pLocaleItem )
throw (::com::sun::star::resource::MissingResourceException);
throw (css::resource::MissingResourceException);
// Method to load a locale if necessary, returns true if loading was
// successful. Default implementation in base class just returns true.
@@ -160,81 +160,81 @@ protected:
public:
StringResourceImpl(
const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& rxContext );
const css::uno::Reference< css::uno::XComponentContext >& rxContext );
virtual ~StringResourceImpl();
// XServiceInfo
virtual OUString SAL_CALL getImplementationName( )
throw (::com::sun::star::uno::RuntimeException, std::exception) override;
throw (css::uno::RuntimeException, std::exception) override;
virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName )
throw (::com::sun::star::uno::RuntimeException, std::exception) override;
virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( )
throw (::com::sun::star::uno::RuntimeException, std::exception) override;
throw (css::uno::RuntimeException, std::exception) override;
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( )
throw (css::uno::RuntimeException, std::exception) override;
// XModifyBroadcaster
virtual void SAL_CALL addModifyListener( const ::com::sun::star::uno::Reference< ::com::sun::star::util::XModifyListener >& aListener )
throw (::com::sun::star::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL removeModifyListener( const ::com::sun::star::uno::Reference< ::com::sun::star::util::XModifyListener >& aListener )
throw (::com::sun::star::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL addModifyListener( const css::uno::Reference< css::util::XModifyListener >& aListener )
throw (css::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL removeModifyListener( const css::uno::Reference< css::util::XModifyListener >& aListener )
throw (css::uno::RuntimeException, std::exception) override;
// XStringResourceResolver
virtual OUString SAL_CALL resolveString( const OUString& ResourceID )
throw (::com::sun::star::resource::MissingResourceException, ::com::sun::star::uno::RuntimeException, std::exception) override;
throw (css::resource::MissingResourceException, css::uno::RuntimeException, std::exception) override;
virtual OUString SAL_CALL resolveStringForLocale( const OUString& ResourceID,
const ::com::sun::star::lang::Locale& locale )
throw ( ::com::sun::star::resource::MissingResourceException,
::com::sun::star::uno::RuntimeException, std::exception) override;
const css::lang::Locale& locale )
throw ( css::resource::MissingResourceException,
css::uno::RuntimeException, std::exception) override;
virtual sal_Bool SAL_CALL hasEntryForId( const OUString& ResourceID )
throw (::com::sun::star::uno::RuntimeException, std::exception) override;
throw (css::uno::RuntimeException, std::exception) override;
virtual sal_Bool SAL_CALL hasEntryForIdAndLocale( const OUString& ResourceID,
const ::com::sun::star::lang::Locale& locale )
throw (::com::sun::star::uno::RuntimeException, std::exception) override;
virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getResourceIDs( )
throw (::com::sun::star::uno::RuntimeException, std::exception) override;
virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getResourceIDsForLocale
( const ::com::sun::star::lang::Locale& locale )
throw (::com::sun::star::uno::RuntimeException, std::exception) override;
virtual ::com::sun::star::lang::Locale SAL_CALL getCurrentLocale( )
throw (::com::sun::star::uno::RuntimeException, std::exception) override;
virtual ::com::sun::star::lang::Locale SAL_CALL getDefaultLocale( )
throw (::com::sun::star::uno::RuntimeException, std::exception) override;
virtual ::com::sun::star::uno::Sequence< ::com::sun::star::lang::Locale > SAL_CALL getLocales( )
throw (::com::sun::star::uno::RuntimeException, std::exception) override;
const css::lang::Locale& locale )
throw (css::uno::RuntimeException, std::exception) override;
virtual css::uno::Sequence< OUString > SAL_CALL getResourceIDs( )
throw (css::uno::RuntimeException, std::exception) override;
virtual css::uno::Sequence< OUString > SAL_CALL getResourceIDsForLocale
( const css::lang::Locale& locale )
throw (css::uno::RuntimeException, std::exception) override;
virtual css::lang::Locale SAL_CALL getCurrentLocale( )
throw (css::uno::RuntimeException, std::exception) override;
virtual css::lang::Locale SAL_CALL getDefaultLocale( )
throw (css::uno::RuntimeException, std::exception) override;
virtual css::uno::Sequence< css::lang::Locale > SAL_CALL getLocales( )
throw (css::uno::RuntimeException, std::exception) override;
// XStringResourceManager
virtual sal_Bool SAL_CALL isReadOnly()
throw (::com::sun::star::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL setCurrentLocale( const ::com::sun::star::lang::Locale& locale, sal_Bool FindClosestMatch )
throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL setDefaultLocale( const ::com::sun::star::lang::Locale& locale )
throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException,
::com::sun::star::lang::NoSupportException, std::exception) override;
throw (css::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL setCurrentLocale( const css::lang::Locale& locale, sal_Bool FindClosestMatch )
throw (css::lang::IllegalArgumentException, css::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL setDefaultLocale( const css::lang::Locale& locale )
throw (css::lang::IllegalArgumentException, css::uno::RuntimeException,
css::lang::NoSupportException, std::exception) override;
virtual void SAL_CALL setString( const OUString& ResourceID, const OUString& Str )
throw (::com::sun::star::lang::NoSupportException, ::com::sun::star::uno::RuntimeException, std::exception) override;
throw (css::lang::NoSupportException, css::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL setStringForLocale( const OUString& ResourceID, const OUString& Str,
const ::com::sun::star::lang::Locale& locale )
throw (::com::sun::star::lang::NoSupportException, ::com::sun::star::uno::RuntimeException, std::exception) override;
const css::lang::Locale& locale )
throw (css::lang::NoSupportException, css::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL removeId( const OUString& ResourceID )
throw (::com::sun::star::resource::MissingResourceException, ::com::sun::star::uno::RuntimeException,
::com::sun::star::lang::NoSupportException, std::exception) override;
throw (css::resource::MissingResourceException, css::uno::RuntimeException,
css::lang::NoSupportException, std::exception) override;
virtual void SAL_CALL removeIdForLocale( const OUString& ResourceID,
const ::com::sun::star::lang::Locale& locale )
throw (::com::sun::star::resource::MissingResourceException, ::com::sun::star::uno::RuntimeException,
::com::sun::star::lang::NoSupportException, std::exception) override;
virtual void SAL_CALL newLocale( const ::com::sun::star::lang::Locale& locale )
throw (::com::sun::star::container::ElementExistException, ::com::sun::star::lang::IllegalArgumentException,
::com::sun::star::lang::NoSupportException, ::com::sun::star::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL removeLocale( const ::com::sun::star::lang::Locale& locale )
throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException,
::com::sun::star::lang::NoSupportException, std::exception) override;
const css::lang::Locale& locale )
throw (css::resource::MissingResourceException, css::uno::RuntimeException,
css::lang::NoSupportException, std::exception) override;
virtual void SAL_CALL newLocale( const css::lang::Locale& locale )
throw (css::container::ElementExistException, css::lang::IllegalArgumentException,
css::lang::NoSupportException, css::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL removeLocale( const css::lang::Locale& locale )
throw (css::lang::IllegalArgumentException, css::uno::RuntimeException,
css::lang::NoSupportException, std::exception) override;
virtual ::sal_Int32 SAL_CALL getUniqueNumericId( )
throw (::com::sun::star::lang::NoSupportException,
::com::sun::star::uno::RuntimeException, std::exception) override;
throw (css::lang::NoSupportException,
css::uno::RuntimeException, std::exception) override;
};
typedef ::cppu::ImplInheritanceHelper<
StringResourceImpl,
::com::sun::star::resource::XStringResourcePersistence > StringResourcePersistenceImpl_BASE;
css::resource::XStringResourcePersistence > StringResourcePersistenceImpl_BASE;
class BinaryOutput;
@@ -244,9 +244,8 @@ protected:
OUString m_aNameBase;
OUString m_aComment;
void SAL_CALL implInitializeCommonParameters
( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aArguments )
throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException);
void SAL_CALL implInitializeCommonParameters( const css::uno::Sequence< css::uno::Any >& aArguments )
throw (css::uno::Exception, css::uno::RuntimeException);
// Scan locale properties files
virtual void implScanLocales();
@@ -259,16 +258,17 @@ protected:
virtual void implLoadAllLocales() override;
void implScanLocaleNames( const ::com::sun::star::uno::Sequence< OUString >& aContentSeq );
void implScanLocaleNames( const css::uno::Sequence< OUString >& aContentSeq );
static OUString implGetFileNameForLocaleItem( LocaleItem* pLocaleItem, const OUString& aNameBase );
static OUString implGetPathForLocaleItem( LocaleItem* pLocaleItem, const OUString& aNameBase,
const OUString& aLocation, bool bDefaultFile=false );
bool implReadPropertiesFile( LocaleItem* pLocaleItem,
const ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream >& xInput );
const css::uno::Reference< css::io::XInputStream >& xInput );
bool implWritePropertiesFile( LocaleItem* pLocaleItem, const ::com::sun::star::uno::Reference
< ::com::sun::star::io::XOutputStream >& xOutputStream, const OUString& aComment );
bool implWritePropertiesFile( LocaleItem* pLocaleItem,
const css::uno::Reference< css::io::XOutputStream >& xOutputStream,
const OUString& aComment );
void implWriteLocaleBinary( LocaleItem* pLocaleItem, BinaryOutput& rOut );
@@ -276,7 +276,7 @@ protected:
(
const OUString& aNameBase,
const OUString& aComment,
const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& Storage,
const css::uno::Reference< css::embed::XStorage >& Storage,
bool bUsedForStore,
bool bStoreAll
)
@@ -286,368 +286,366 @@ protected:
(
const OUString& Location,
const OUString& aNameBase,
const ::com::sun::star::uno::Reference< ::com::sun::star::ucb::XSimpleFileAccess3 >& xFileAccess
const css::uno::Reference< css::ucb::XSimpleFileAccess3 >& xFileAccess
)
throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException, std::exception);
throw (css::uno::Exception, css::uno::RuntimeException, std::exception);
void implKillChangedDefaultFiles
(
const OUString& Location,
const OUString& aNameBase,
const ::com::sun::star::uno::Reference< ::com::sun::star::ucb::XSimpleFileAccess3 >& xFileAccess
const css::uno::Reference< css::ucb::XSimpleFileAccess3 >& xFileAccess
)
throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException, std::exception);
throw (css::uno::Exception, css::uno::RuntimeException, std::exception);
void implStoreAtLocation
(
const OUString& Location,
const OUString& aNameBase,
const OUString& aComment,
const ::com::sun::star::uno::Reference< ::com::sun::star::ucb::XSimpleFileAccess3 >& xFileAccess,
const css::uno::Reference< css::ucb::XSimpleFileAccess3 >& xFileAccess,
bool bUsedForStore,
bool bStoreAll,
bool bKillAll = false
)
throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException, std::exception);
throw (css::uno::Exception, css::uno::RuntimeException, std::exception);
public:
StringResourcePersistenceImpl(
const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& rxContext );
const css::uno::Reference< css::uno::XComponentContext >& rxContext );
virtual ~StringResourcePersistenceImpl();
// XServiceInfo
virtual OUString SAL_CALL getImplementationName( )
throw (::com::sun::star::uno::RuntimeException, std::exception) override;
throw (css::uno::RuntimeException, std::exception) override;
virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName )
throw (::com::sun::star::uno::RuntimeException, std::exception) override;
virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( )
throw (::com::sun::star::uno::RuntimeException, std::exception) override;
throw (css::uno::RuntimeException, std::exception) override;
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( )
throw (css::uno::RuntimeException, std::exception) override;
// XModifyBroadcaster
virtual void SAL_CALL addModifyListener( const ::com::sun::star::uno::Reference< ::com::sun::star::util::XModifyListener >& aListener )
throw (::com::sun::star::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL removeModifyListener( const ::com::sun::star::uno::Reference< ::com::sun::star::util::XModifyListener >& aListener )
throw (::com::sun::star::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL addModifyListener( const css::uno::Reference< css::util::XModifyListener >& aListener )
throw (css::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL removeModifyListener( const css::uno::Reference< css::util::XModifyListener >& aListener )
throw (css::uno::RuntimeException, std::exception) override;
// XStringResourceResolver
virtual OUString SAL_CALL resolveString( const OUString& ResourceID )
throw (::com::sun::star::resource::MissingResourceException, ::com::sun::star::uno::RuntimeException, std::exception) override;
throw (css::resource::MissingResourceException, css::uno::RuntimeException, std::exception) override;
virtual OUString SAL_CALL resolveStringForLocale( const OUString& ResourceID,
const ::com::sun::star::lang::Locale& locale )
throw ( ::com::sun::star::resource::MissingResourceException,
::com::sun::star::uno::RuntimeException, std::exception) override;
const css::lang::Locale& locale )
throw ( css::resource::MissingResourceException,
css::uno::RuntimeException, std::exception) override;
virtual sal_Bool SAL_CALL hasEntryForId( const OUString& ResourceID )
throw (::com::sun::star::uno::RuntimeException, std::exception) override;
throw (css::uno::RuntimeException, std::exception) override;
virtual sal_Bool SAL_CALL hasEntryForIdAndLocale( const OUString& ResourceID,
const ::com::sun::star::lang::Locale& locale )
throw (::com::sun::star::uno::RuntimeException, std::exception) override;
virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getResourceIDs( )
throw (::com::sun::star::uno::RuntimeException, std::exception) override;
virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getResourceIDsForLocale
( const ::com::sun::star::lang::Locale& locale )
throw (::com::sun::star::uno::RuntimeException, std::exception) override;
virtual ::com::sun::star::lang::Locale SAL_CALL getCurrentLocale( )
throw (::com::sun::star::uno::RuntimeException, std::exception) override;
virtual ::com::sun::star::lang::Locale SAL_CALL getDefaultLocale( )
throw (::com::sun::star::uno::RuntimeException, std::exception) override;
virtual ::com::sun::star::uno::Sequence< ::com::sun::star::lang::Locale > SAL_CALL getLocales( )
throw (::com::sun::star::uno::RuntimeException, std::exception) override;
const css::lang::Locale& locale )
throw (css::uno::RuntimeException, std::exception) override;
virtual css::uno::Sequence< OUString > SAL_CALL getResourceIDs( )
throw (css::uno::RuntimeException, std::exception) override;
virtual css::uno::Sequence< OUString > SAL_CALL getResourceIDsForLocale
( const css::lang::Locale& locale )
throw (css::uno::RuntimeException, std::exception) override;
virtual css::lang::Locale SAL_CALL getCurrentLocale( )
throw (css::uno::RuntimeException, std::exception) override;
virtual css::lang::Locale SAL_CALL getDefaultLocale( )
throw (css::uno::RuntimeException, std::exception) override;
virtual css::uno::Sequence< css::lang::Locale > SAL_CALL getLocales( )
throw (css::uno::RuntimeException, std::exception) override;
// XStringResourceManager
virtual sal_Bool SAL_CALL isReadOnly()
throw (::com::sun::star::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL setCurrentLocale( const ::com::sun::star::lang::Locale& locale, sal_Bool FindClosestMatch )
throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL setDefaultLocale( const ::com::sun::star::lang::Locale& locale )
throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException,
::com::sun::star::lang::NoSupportException, std::exception) override;
throw (css::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL setCurrentLocale( const css::lang::Locale& locale, sal_Bool FindClosestMatch )
throw (css::lang::IllegalArgumentException, css::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL setDefaultLocale( const css::lang::Locale& locale )
throw (css::lang::IllegalArgumentException, css::uno::RuntimeException,
css::lang::NoSupportException, std::exception) override;
virtual void SAL_CALL setString( const OUString& ResourceID, const OUString& Str )
throw (::com::sun::star::lang::NoSupportException, ::com::sun::star::uno::RuntimeException, std::exception) override;
throw (css::lang::NoSupportException, css::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL setStringForLocale( const OUString& ResourceID, const OUString& Str,
const ::com::sun::star::lang::Locale& locale )
throw (::com::sun::star::lang::NoSupportException, ::com::sun::star::uno::RuntimeException, std::exception) override;
const css::lang::Locale& locale )
throw (css::lang::NoSupportException, css::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL removeId( const OUString& ResourceID )
throw (::com::sun::star::resource::MissingResourceException, ::com::sun::star::uno::RuntimeException,
::com::sun::star::lang::NoSupportException, std::exception) override;
throw (css::resource::MissingResourceException, css::uno::RuntimeException,
css::lang::NoSupportException, std::exception) override;
virtual void SAL_CALL removeIdForLocale( const OUString& ResourceID,
const ::com::sun::star::lang::Locale& locale )
throw (::com::sun::star::resource::MissingResourceException, ::com::sun::star::uno::RuntimeException,
::com::sun::star::lang::NoSupportException, std::exception) override;
virtual void SAL_CALL newLocale( const ::com::sun::star::lang::Locale& locale )
throw (::com::sun::star::container::ElementExistException, ::com::sun::star::lang::IllegalArgumentException,
::com::sun::star::lang::NoSupportException, ::com::sun::star::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL removeLocale( const ::com::sun::star::lang::Locale& locale )
throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException,
::com::sun::star::lang::NoSupportException, std::exception) override;
const css::lang::Locale& locale )
throw (css::resource::MissingResourceException, css::uno::RuntimeException,
css::lang::NoSupportException, std::exception) override;
virtual void SAL_CALL newLocale( const css::lang::Locale& locale )
throw (css::container::ElementExistException, css::lang::IllegalArgumentException,
css::lang::NoSupportException, css::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL removeLocale( const css::lang::Locale& locale )
throw (css::lang::IllegalArgumentException, css::uno::RuntimeException,
css::lang::NoSupportException, std::exception) override;
virtual ::sal_Int32 SAL_CALL getUniqueNumericId( )
throw (::com::sun::star::lang::NoSupportException,
::com::sun::star::uno::RuntimeException, std::exception) override;
throw (css::lang::NoSupportException,
css::uno::RuntimeException, std::exception) override;
// XStringResourcePersistence
virtual void SAL_CALL store( )
throw (::com::sun::star::lang::NoSupportException,
::com::sun::star::uno::Exception,
::com::sun::star::uno::RuntimeException, std::exception) override;
throw (css::lang::NoSupportException,
css::uno::Exception,
css::uno::RuntimeException, std::exception) override;
virtual sal_Bool SAL_CALL isModified( )
throw (::com::sun::star::uno::RuntimeException, std::exception) override;
throw (css::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL setComment( const OUString& Comment )
throw (::com::sun::star::uno::RuntimeException, std::exception) override;
throw (css::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL storeToStorage
( const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& Storage,
( const css::uno::Reference< css::embed::XStorage >& Storage,
const OUString& NameBase, const OUString& Comment )
throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException, std::exception) override;
throw (css::uno::Exception, css::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL storeToURL( const OUString& URL, const OUString& NameBase,
const OUString& Comment, const ::com::sun::star::uno::Reference
< ::com::sun::star::task::XInteractionHandler >& Handler )
throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException, std::exception) override;
virtual ::com::sun::star::uno::Sequence< ::sal_Int8 > SAL_CALL exportBinary( )
throw (::com::sun::star::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL importBinary( const ::com::sun::star::uno::Sequence< ::sal_Int8 >& Data )
throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception) override;
const OUString& Comment, const css::uno::Reference
< css::task::XInteractionHandler >& Handler )
throw (css::uno::Exception, css::uno::RuntimeException, std::exception) override;
virtual css::uno::Sequence< ::sal_Int8 > SAL_CALL exportBinary( )
throw (css::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL importBinary( const css::uno::Sequence< ::sal_Int8 >& Data )
throw (css::lang::IllegalArgumentException, css::uno::RuntimeException, std::exception) override;
};
typedef ::cppu::ImplInheritanceHelper<
StringResourcePersistenceImpl,
::com::sun::star::lang::XInitialization,
::com::sun::star::resource::XStringResourceWithStorage > StringResourceWithStorageImpl_BASE;
css::lang::XInitialization,
css::resource::XStringResourceWithStorage > StringResourceWithStorageImpl_BASE;
class StringResourceWithStorageImpl : public StringResourceWithStorageImpl_BASE
{
::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage > m_xStorage;
bool m_bStorageChanged;
css::uno::Reference< css::embed::XStorage > m_xStorage;
bool m_bStorageChanged;
virtual void implScanLocales() override;
virtual bool implLoadLocale( LocaleItem* pLocaleItem ) override;
public:
StringResourceWithStorageImpl(
const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& rxContext );
StringResourceWithStorageImpl( const css::uno::Reference< css::uno::XComponentContext >& rxContext );
virtual ~StringResourceWithStorageImpl();
// XServiceInfo
virtual OUString SAL_CALL getImplementationName( )
throw (::com::sun::star::uno::RuntimeException, std::exception) override;
throw (css::uno::RuntimeException, std::exception) override;
virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName )
throw (::com::sun::star::uno::RuntimeException, std::exception) override;
virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( )
throw (::com::sun::star::uno::RuntimeException, std::exception) override;
throw (css::uno::RuntimeException, std::exception) override;
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( )
throw (css::uno::RuntimeException, std::exception) override;
// XInitialization
virtual void SAL_CALL initialize( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aArguments )
throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL initialize( const css::uno::Sequence< css::uno::Any >& aArguments )
throw (css::uno::Exception, css::uno::RuntimeException, std::exception) override;
// XModifyBroadcaster
virtual void SAL_CALL addModifyListener( const ::com::sun::star::uno::Reference< ::com::sun::star::util::XModifyListener >& aListener )
throw (::com::sun::star::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL removeModifyListener( const ::com::sun::star::uno::Reference< ::com::sun::star::util::XModifyListener >& aListener )
throw (::com::sun::star::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL addModifyListener( const css::uno::Reference< css::util::XModifyListener >& aListener )
throw (css::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL removeModifyListener( const css::uno::Reference< css::util::XModifyListener >& aListener )
throw (css::uno::RuntimeException, std::exception) override;
// XStringResourceResolver
virtual OUString SAL_CALL resolveString( const OUString& ResourceID )
throw (::com::sun::star::resource::MissingResourceException, ::com::sun::star::uno::RuntimeException, std::exception) override;
throw (css::resource::MissingResourceException, css::uno::RuntimeException, std::exception) override;
virtual OUString SAL_CALL resolveStringForLocale( const OUString& ResourceID,
const ::com::sun::star::lang::Locale& locale )
throw ( ::com::sun::star::resource::MissingResourceException,
::com::sun::star::uno::RuntimeException, std::exception) override;
const css::lang::Locale& locale )
throw ( css::resource::MissingResourceException,
css::uno::RuntimeException, std::exception) override;
virtual sal_Bool SAL_CALL hasEntryForId( const OUString& ResourceID )
throw (::com::sun::star::uno::RuntimeException, std::exception) override;
throw (css::uno::RuntimeException, std::exception) override;
virtual sal_Bool SAL_CALL hasEntryForIdAndLocale( const OUString& ResourceID,
const ::com::sun::star::lang::Locale& locale )
throw (::com::sun::star::uno::RuntimeException, std::exception) override;
virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getResourceIDs( )
throw (::com::sun::star::uno::RuntimeException, std::exception) override;
virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getResourceIDsForLocale
( const ::com::sun::star::lang::Locale& locale )
throw (::com::sun::star::uno::RuntimeException, std::exception) override;
virtual ::com::sun::star::lang::Locale SAL_CALL getCurrentLocale( )
throw (::com::sun::star::uno::RuntimeException, std::exception) override;
virtual ::com::sun::star::lang::Locale SAL_CALL getDefaultLocale( )
throw (::com::sun::star::uno::RuntimeException, std::exception) override;
virtual ::com::sun::star::uno::Sequence< ::com::sun::star::lang::Locale > SAL_CALL getLocales( )
throw (::com::sun::star::uno::RuntimeException, std::exception) override;
const css::lang::Locale& locale )
throw (css::uno::RuntimeException, std::exception) override;
virtual css::uno::Sequence< OUString > SAL_CALL getResourceIDs( )
throw (css::uno::RuntimeException, std::exception) override;
virtual css::uno::Sequence< OUString > SAL_CALL getResourceIDsForLocale
( const css::lang::Locale& locale )
throw (css::uno::RuntimeException, std::exception) override;
virtual css::lang::Locale SAL_CALL getCurrentLocale( )
throw (css::uno::RuntimeException, std::exception) override;
virtual css::lang::Locale SAL_CALL getDefaultLocale( )
throw (css::uno::RuntimeException, std::exception) override;
virtual css::uno::Sequence< css::lang::Locale > SAL_CALL getLocales( )
throw (css::uno::RuntimeException, std::exception) override;
// XStringResourceManager
virtual sal_Bool SAL_CALL isReadOnly()
throw (::com::sun::star::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL setCurrentLocale( const ::com::sun::star::lang::Locale& locale, sal_Bool FindClosestMatch )
throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL setDefaultLocale( const ::com::sun::star::lang::Locale& locale )
throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException,
::com::sun::star::lang::NoSupportException, std::exception) override;
throw (css::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL setCurrentLocale( const css::lang::Locale& locale, sal_Bool FindClosestMatch )
throw (css::lang::IllegalArgumentException, css::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL setDefaultLocale( const css::lang::Locale& locale )
throw (css::lang::IllegalArgumentException, css::uno::RuntimeException,
css::lang::NoSupportException, std::exception) override;
virtual void SAL_CALL setString( const OUString& ResourceID, const OUString& Str )
throw (::com::sun::star::lang::NoSupportException, ::com::sun::star::uno::RuntimeException, std::exception) override;
throw (css::lang::NoSupportException, css::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL setStringForLocale( const OUString& ResourceID, const OUString& Str,
const ::com::sun::star::lang::Locale& locale )
throw (::com::sun::star::lang::NoSupportException, ::com::sun::star::uno::RuntimeException, std::exception) override;
const css::lang::Locale& locale )
throw (css::lang::NoSupportException, css::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL removeId( const OUString& ResourceID )
throw (::com::sun::star::resource::MissingResourceException, ::com::sun::star::uno::RuntimeException,
::com::sun::star::lang::NoSupportException, std::exception) override;
throw (css::resource::MissingResourceException, css::uno::RuntimeException,
css::lang::NoSupportException, std::exception) override;
virtual void SAL_CALL removeIdForLocale( const OUString& ResourceID,
const ::com::sun::star::lang::Locale& locale )
throw (::com::sun::star::resource::MissingResourceException, ::com::sun::star::uno::RuntimeException,
::com::sun::star::lang::NoSupportException, std::exception) override;
virtual void SAL_CALL newLocale( const ::com::sun::star::lang::Locale& locale )
throw (::com::sun::star::container::ElementExistException, ::com::sun::star::lang::IllegalArgumentException,
::com::sun::star::lang::NoSupportException, ::com::sun::star::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL removeLocale( const ::com::sun::star::lang::Locale& locale )
throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException,
::com::sun::star::lang::NoSupportException, std::exception) override;
const css::lang::Locale& locale )
throw (css::resource::MissingResourceException, css::uno::RuntimeException,
css::lang::NoSupportException, std::exception) override;
virtual void SAL_CALL newLocale( const css::lang::Locale& locale )
throw (css::container::ElementExistException, css::lang::IllegalArgumentException,
css::lang::NoSupportException, css::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL removeLocale( const css::lang::Locale& locale )
throw (css::lang::IllegalArgumentException, css::uno::RuntimeException,
css::lang::NoSupportException, std::exception) override;
virtual ::sal_Int32 SAL_CALL getUniqueNumericId( )
throw (::com::sun::star::lang::NoSupportException,
::com::sun::star::uno::RuntimeException, std::exception) override;
throw (css::lang::NoSupportException,
css::uno::RuntimeException, std::exception) override;
// XStringResourcePersistence
virtual void SAL_CALL store( )
throw (::com::sun::star::lang::NoSupportException,
::com::sun::star::uno::Exception,
::com::sun::star::uno::RuntimeException, std::exception) override;
throw (css::lang::NoSupportException,
css::uno::Exception,
css::uno::RuntimeException, std::exception) override;
virtual sal_Bool SAL_CALL isModified( )
throw (::com::sun::star::uno::RuntimeException, std::exception) override;
throw (css::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL setComment( const OUString& Comment )
throw (::com::sun::star::uno::RuntimeException, std::exception) override;
throw (css::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL storeToStorage
( const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& Storage,
( const css::uno::Reference< css::embed::XStorage >& Storage,
const OUString& NameBase, const OUString& Comment )
throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException, std::exception) override;
throw (css::uno::Exception, css::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL storeToURL( const OUString& URL, const OUString& NameBase,
const OUString& Comment, const ::com::sun::star::uno::Reference
< ::com::sun::star::task::XInteractionHandler >& Handler )
throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException, std::exception) override;
virtual ::com::sun::star::uno::Sequence< ::sal_Int8 > SAL_CALL exportBinary( )
throw (::com::sun::star::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL importBinary( const ::com::sun::star::uno::Sequence< ::sal_Int8 >& Data )
throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception) override;
const OUString& Comment, const css::uno::Reference
< css::task::XInteractionHandler >& Handler )
throw (css::uno::Exception, css::uno::RuntimeException, std::exception) override;
virtual css::uno::Sequence< ::sal_Int8 > SAL_CALL exportBinary( )
throw (css::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL importBinary( const css::uno::Sequence< ::sal_Int8 >& Data )
throw (css::lang::IllegalArgumentException, css::uno::RuntimeException, std::exception) override;
// XStringResourceWithStorage
virtual void SAL_CALL storeAsStorage
( const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& Storage )
throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException, std::exception) override;
( const css::uno::Reference< css::embed::XStorage >& Storage )
throw (css::uno::Exception, css::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL setStorage
( const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& Storage )
throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception) override;
( const css::uno::Reference< css::embed::XStorage >& Storage )
throw (css::lang::IllegalArgumentException, css::uno::RuntimeException, std::exception) override;
};
typedef ::cppu::ImplInheritanceHelper<
StringResourcePersistenceImpl,
::com::sun::star::lang::XInitialization,
::com::sun::star::resource::XStringResourceWithLocation > StringResourceWithLocationImpl_BASE;
css::lang::XInitialization,
css::resource::XStringResourceWithLocation > StringResourceWithLocationImpl_BASE;
class StringResourceWithLocationImpl : public StringResourceWithLocationImpl_BASE
{
OUString m_aLocation;
bool m_bLocationChanged;
com::sun::star::uno::Reference< com::sun::star::ucb::XSimpleFileAccess3 > m_xSFI;
com::sun::star::uno::Reference< com::sun::star::task::XInteractionHandler > m_xInteractionHandler;
OUString m_aLocation;
bool m_bLocationChanged;
css::uno::Reference< css::ucb::XSimpleFileAccess3 > m_xSFI;
css::uno::Reference< css::task::XInteractionHandler > m_xInteractionHandler;
const ::com::sun::star::uno::Reference< ::com::sun::star::ucb::XSimpleFileAccess3 > getFileAccess();
const css::uno::Reference< css::ucb::XSimpleFileAccess3 > getFileAccess();
virtual void implScanLocales() override;
virtual bool implLoadLocale( LocaleItem* pLocaleItem ) override;
public:
StringResourceWithLocationImpl(
const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& rxContext );
StringResourceWithLocationImpl( const css::uno::Reference< css::uno::XComponentContext >& rxContext );
virtual ~StringResourceWithLocationImpl();
// XServiceInfo
virtual OUString SAL_CALL getImplementationName( )
throw (::com::sun::star::uno::RuntimeException, std::exception) override;
throw (css::uno::RuntimeException, std::exception) override;
virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName )
throw (::com::sun::star::uno::RuntimeException, std::exception) override;
virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( )
throw (::com::sun::star::uno::RuntimeException, std::exception) override;
throw (css::uno::RuntimeException, std::exception) override;
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( )
throw (css::uno::RuntimeException, std::exception) override;
// XInitialization
virtual void SAL_CALL initialize( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aArguments )
throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL initialize( const css::uno::Sequence< css::uno::Any >& aArguments )
throw (css::uno::Exception, css::uno::RuntimeException, std::exception) override;
// XModifyBroadcaster
virtual void SAL_CALL addModifyListener( const ::com::sun::star::uno::Reference< ::com::sun::star::util::XModifyListener >& aListener )
throw (::com::sun::star::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL removeModifyListener( const ::com::sun::star::uno::Reference< ::com::sun::star::util::XModifyListener >& aListener )
throw (::com::sun::star::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL addModifyListener( const css::uno::Reference< css::util::XModifyListener >& aListener )
throw (css::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL removeModifyListener( const css::uno::Reference< css::util::XModifyListener >& aListener )
throw (css::uno::RuntimeException, std::exception) override;
// XStringResourceResolver
virtual OUString SAL_CALL resolveString( const OUString& ResourceID )
throw (::com::sun::star::resource::MissingResourceException, ::com::sun::star::uno::RuntimeException, std::exception) override;
throw (css::resource::MissingResourceException, css::uno::RuntimeException, std::exception) override;
virtual OUString SAL_CALL resolveStringForLocale( const OUString& ResourceID,
const ::com::sun::star::lang::Locale& locale )
throw ( ::com::sun::star::resource::MissingResourceException,
::com::sun::star::uno::RuntimeException, std::exception) override;
const css::lang::Locale& locale )
throw ( css::resource::MissingResourceException,
css::uno::RuntimeException, std::exception) override;
virtual sal_Bool SAL_CALL hasEntryForId( const OUString& ResourceID )
throw (::com::sun::star::uno::RuntimeException, std::exception) override;
throw (css::uno::RuntimeException, std::exception) override;
virtual sal_Bool SAL_CALL hasEntryForIdAndLocale( const OUString& ResourceID,
const ::com::sun::star::lang::Locale& locale )
throw (::com::sun::star::uno::RuntimeException, std::exception) override;
virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getResourceIDs( )
throw (::com::sun::star::uno::RuntimeException, std::exception) override;
virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getResourceIDsForLocale
( const ::com::sun::star::lang::Locale& locale )
throw (::com::sun::star::uno::RuntimeException, std::exception) override;
virtual ::com::sun::star::lang::Locale SAL_CALL getCurrentLocale( )
throw (::com::sun::star::uno::RuntimeException, std::exception) override;
virtual ::com::sun::star::lang::Locale SAL_CALL getDefaultLocale( )
throw (::com::sun::star::uno::RuntimeException, std::exception) override;
virtual ::com::sun::star::uno::Sequence< ::com::sun::star::lang::Locale > SAL_CALL getLocales( )
throw (::com::sun::star::uno::RuntimeException, std::exception) override;
const css::lang::Locale& locale )
throw (css::uno::RuntimeException, std::exception) override;
virtual css::uno::Sequence< OUString > SAL_CALL getResourceIDs( )
throw (css::uno::RuntimeException, std::exception) override;
virtual css::uno::Sequence< OUString > SAL_CALL getResourceIDsForLocale
( const css::lang::Locale& locale )
throw (css::uno::RuntimeException, std::exception) override;
virtual css::lang::Locale SAL_CALL getCurrentLocale( )
throw (css::uno::RuntimeException, std::exception) override;
virtual css::lang::Locale SAL_CALL getDefaultLocale( )
throw (css::uno::RuntimeException, std::exception) override;
virtual css::uno::Sequence< css::lang::Locale > SAL_CALL getLocales( )
throw (css::uno::RuntimeException, std::exception) override;
// XStringResourceManager
virtual sal_Bool SAL_CALL isReadOnly()
throw (::com::sun::star::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL setCurrentLocale( const ::com::sun::star::lang::Locale& locale, sal_Bool FindClosestMatch )
throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL setDefaultLocale( const ::com::sun::star::lang::Locale& locale )
throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException,
::com::sun::star::lang::NoSupportException, std::exception) override;
throw (css::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL setCurrentLocale( const css::lang::Locale& locale, sal_Bool FindClosestMatch )
throw (css::lang::IllegalArgumentException, css::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL setDefaultLocale( const css::lang::Locale& locale )
throw (css::lang::IllegalArgumentException, css::uno::RuntimeException,
css::lang::NoSupportException, std::exception) override;
virtual void SAL_CALL setString( const OUString& ResourceID, const OUString& Str )
throw (::com::sun::star::lang::NoSupportException, ::com::sun::star::uno::RuntimeException, std::exception) override;
throw (css::lang::NoSupportException, css::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL setStringForLocale( const OUString& ResourceID, const OUString& Str,
const ::com::sun::star::lang::Locale& locale )
throw (::com::sun::star::lang::NoSupportException, ::com::sun::star::uno::RuntimeException, std::exception) override;
const css::lang::Locale& locale )
throw (css::lang::NoSupportException, css::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL removeId( const OUString& ResourceID )
throw (::com::sun::star::resource::MissingResourceException, ::com::sun::star::uno::RuntimeException,
::com::sun::star::lang::NoSupportException, std::exception) override;
throw (css::resource::MissingResourceException, css::uno::RuntimeException,
css::lang::NoSupportException, std::exception) override;
virtual void SAL_CALL removeIdForLocale( const OUString& ResourceID,
const ::com::sun::star::lang::Locale& locale )
throw (::com::sun::star::resource::MissingResourceException, ::com::sun::star::uno::RuntimeException,
::com::sun::star::lang::NoSupportException, std::exception) override;
virtual void SAL_CALL newLocale( const ::com::sun::star::lang::Locale& locale )
throw (::com::sun::star::container::ElementExistException, ::com::sun::star::lang::IllegalArgumentException,
::com::sun::star::lang::NoSupportException, ::com::sun::star::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL removeLocale( const ::com::sun::star::lang::Locale& locale )
throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException,
::com::sun::star::lang::NoSupportException, std::exception) override;
const css::lang::Locale& locale )
throw (css::resource::MissingResourceException, css::uno::RuntimeException,
css::lang::NoSupportException, std::exception) override;
virtual void SAL_CALL newLocale( const css::lang::Locale& locale )
throw (css::container::ElementExistException, css::lang::IllegalArgumentException,
css::lang::NoSupportException, css::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL removeLocale( const css::lang::Locale& locale )
throw (css::lang::IllegalArgumentException, css::uno::RuntimeException,
css::lang::NoSupportException, std::exception) override;
virtual ::sal_Int32 SAL_CALL getUniqueNumericId( )
throw (::com::sun::star::lang::NoSupportException,
::com::sun::star::uno::RuntimeException, std::exception) override;
throw (css::lang::NoSupportException,
css::uno::RuntimeException, std::exception) override;
// XStringResourcePersistence
virtual void SAL_CALL store( )
throw (::com::sun::star::lang::NoSupportException,
::com::sun::star::uno::Exception,
::com::sun::star::uno::RuntimeException, std::exception) override;
throw (css::lang::NoSupportException,
css::uno::Exception,
css::uno::RuntimeException, std::exception) override;
virtual sal_Bool SAL_CALL isModified( )
throw (::com::sun::star::uno::RuntimeException, std::exception) override;
throw (css::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL setComment( const OUString& Comment )
throw (::com::sun::star::uno::RuntimeException, std::exception) override;
throw (css::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL storeToStorage
( const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& Storage,
( const css::uno::Reference< css::embed::XStorage >& Storage,
const OUString& NameBase, const OUString& Comment )
throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException, std::exception) override;
throw (css::uno::Exception, css::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL storeToURL( const OUString& URL, const OUString& NameBase,
const OUString& Comment, const ::com::sun::star::uno::Reference
< ::com::sun::star::task::XInteractionHandler >& Handler )
throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException, std::exception) override;
virtual ::com::sun::star::uno::Sequence< ::sal_Int8 > SAL_CALL exportBinary( )
throw (::com::sun::star::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL importBinary( const ::com::sun::star::uno::Sequence< ::sal_Int8 >& Data )
throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception) override;
const OUString& Comment, const css::uno::Reference
< css::task::XInteractionHandler >& Handler )
throw (css::uno::Exception, css::uno::RuntimeException, std::exception) override;
virtual css::uno::Sequence< ::sal_Int8 > SAL_CALL exportBinary( )
throw (css::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL importBinary( const css::uno::Sequence< ::sal_Int8 >& Data )
throw (css::lang::IllegalArgumentException, css::uno::RuntimeException, std::exception) override;
// XStringResourceWithLocation
virtual void SAL_CALL storeAsURL( const OUString& URL )
throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException, std::exception) override;
throw (css::uno::Exception, css::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL setURL( const OUString& URL )
throw (css::lang::IllegalArgumentException, css::lang::NoSupportException,
css::uno::RuntimeException, std::exception) override;