LibreOffice Module basctl (master) 1
Public Member Functions | Static Public Member Functions | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
basctl::LocalizationMgr Class Reference

#include <localizationmgr.hxx>

Collaboration diagram for basctl::LocalizationMgr:
[legend]

Public Member Functions

 LocalizationMgr (Shell *, ScriptDocument, OUString aLibName, const css::uno::Reference< css::resource::XStringResourceManager > &xStringResourceManager)
 
const css::uno::Reference< css::resource::XStringResourceManager > & getStringResourceManager () const
 
bool isLibraryLocalized ()
 
void handleTranslationbar ()
 
void handleAddLocales (const css::uno::Sequence< css::lang::Locale > &aLocaleSeq)
 
void handleRemoveLocales (const css::uno::Sequence< css::lang::Locale > &aLocaleSeq)
 
void handleSetDefaultLocale (const css::lang::Locale &rLocale)
 
void handleSetCurrentLocale (const css::lang::Locale &rLocale)
 
void handleBasicStarted ()
 
void handleBasicStopped ()
 

Static Public Member Functions

static void setControlResourceIDsForNewEditorObject (DlgEditor const *pEditor, const css::uno::Any &rControlAny, std::u16string_view aCtrlName)
 
static void renameControlResourceIDsForEditorObject (DlgEditor const *pEditor, const css::uno::Any &rControlAny, std::u16string_view aNewCtrlName)
 
static void deleteControlResourceIDsForDeletedEditorObject (DlgEditor const *pEditor, const css::uno::Any &rControlAny, std::u16string_view aCtrlName)
 
static void setStringResourceAtDialog (const ScriptDocument &rDocument, const OUString &aLibName, std::u16string_view aDlgName, const css::uno::Reference< css::container::XNameContainer > &xDialogModel)
 
static void renameStringResourceIDs (const ScriptDocument &rDocument, const OUString &aLibName, std::u16string_view aDlgName, const css::uno::Reference< css::container::XNameContainer > &xDialogModel)
 
static void removeResourceForDialog (const ScriptDocument &rDocument, const OUString &aLibName, std::u16string_view aDlgName, const css::uno::Reference< css::container::XNameContainer > &xDialogModel)
 
static css::uno::Reference< css::resource::XStringResourceManager > getStringResourceFromDialogLibrary (const css::uno::Reference< css::container::XNameContainer > &xDialogLib)
 
static void resetResourceForDialog (const css::uno::Reference< css::container::XNameContainer > &xDialogModel, const css::uno::Reference< css::resource::XStringResourceManager > &xStringResourceManager)
 
static void setResourceIDsForDialog (const css::uno::Reference< css::container::XNameContainer > &xDialogModel, const css::uno::Reference< css::resource::XStringResourceManager > &xStringResourceManager)
 
static void copyResourcesForPastedEditorObject (DlgEditor const *pEditor, const css::uno::Any &rControlAny, std::u16string_view aCtrlName, const css::uno::Reference< css::resource::XStringResourceResolver > &xSourceStringResolver)
 
static void copyResourceForDroppedDialog (const css::uno::Reference< css::container::XNameContainer > &xDialogModel, std::u16string_view aDialogName, const css::uno::Reference< css::resource::XStringResourceManager > &xStringResourceManager, const css::uno::Reference< css::resource::XStringResourceResolver > &xSourceStringResolver)
 
static void copyResourceForDialog (const css::uno::Reference< css::container::XNameContainer > &xDialogModel, const css::uno::Reference< css::resource::XStringResourceResolver > &xSourceStringResolver, const css::uno::Reference< css::resource::XStringResourceManager > &xTargetStringResourceManager)
 

Private Types

enum  HandleResourceMode {
  SET_IDS ,
  RESET_IDS ,
  RENAME_DIALOG_IDS ,
  RENAME_CONTROL_IDS ,
  REMOVE_IDS_FROM_RESOURCE ,
  MOVE_RESOURCES ,
  COPY_RESOURCES
}
 

Private Member Functions

void enableResourceForAllLibraryDialogs ()
 
void disableResourceForAllLibraryDialogs ()
 
void implEnableDisableResourceForAllLibraryDialogs (HandleResourceMode eMode)
 

Static Private Member Functions

static sal_Int32 implHandleControlResourceProperties (const css::uno::Any &rControlAny, std::u16string_view aDialogName, std::u16string_view aCtrlName, const css::uno::Reference< css::resource::XStringResourceManager > &xStringResourceManager, const css::uno::Reference< css::resource::XStringResourceResolver > &xSourceStringResolver, HandleResourceMode eMode)
 

Private Attributes

css::uno::Reference< css::resource::XStringResourceManager > m_xStringResourceManager
 
Shellm_pShell
 
ScriptDocument m_aDocument
 
OUString m_aLibName
 
css::lang::Locale m_aLocaleBeforeBasicStart
 

Detailed Description

Definition at line 36 of file localizationmgr.hxx.

Member Enumeration Documentation

◆ HandleResourceMode

Enumerator
SET_IDS 
RESET_IDS 
RENAME_DIALOG_IDS 
RENAME_CONTROL_IDS 
REMOVE_IDS_FROM_RESOURCE 
MOVE_RESOURCES 
COPY_RESOURCES 

Definition at line 47 of file localizationmgr.hxx.

Constructor & Destructor Documentation

◆ LocalizationMgr()

basctl::LocalizationMgr::LocalizationMgr ( Shell ,
ScriptDocument  ,
OUString  aLibName,
const css::uno::Reference< css::resource::XStringResourceManager > &  xStringResourceManager 
)

Definition at line 62 of file localizationmgr.cxx.

Member Function Documentation

◆ copyResourceForDialog()

void basctl::LocalizationMgr::copyResourceForDialog ( const css::uno::Reference< css::container::XNameContainer > &  xDialogModel,
const css::uno::Reference< css::resource::XStringResourceResolver > &  xSourceStringResolver,
const css::uno::Reference< css::resource::XStringResourceManager > &  xTargetStringResourceManager 
)
static

◆ copyResourceForDroppedDialog()

void basctl::LocalizationMgr::copyResourceForDroppedDialog ( const css::uno::Reference< css::container::XNameContainer > &  xDialogModel,
std::u16string_view  aDialogName,
const css::uno::Reference< css::resource::XStringResourceManager > &  xStringResourceManager,
const css::uno::Reference< css::resource::XStringResourceResolver > &  xSourceStringResolver 
)
static

◆ copyResourcesForPastedEditorObject()

void basctl::LocalizationMgr::copyResourcesForPastedEditorObject ( DlgEditor const *  pEditor,
const css::uno::Any &  rControlAny,
std::u16string_view  aCtrlName,
const css::uno::Reference< css::resource::XStringResourceResolver > &  xSourceStringResolver 
)
static

◆ deleteControlResourceIDsForDeletedEditorObject()

void basctl::LocalizationMgr::deleteControlResourceIDsForDeletedEditorObject ( DlgEditor const *  pEditor,
const css::uno::Any &  rControlAny,
std::u16string_view  aCtrlName 
)
static

◆ disableResourceForAllLibraryDialogs()

void basctl::LocalizationMgr::disableResourceForAllLibraryDialogs ( )
inlineprivate

Definition at line 68 of file localizationmgr.hxx.

References implEnableDisableResourceForAllLibraryDialogs(), and RESET_IDS.

Referenced by handleRemoveLocales().

◆ enableResourceForAllLibraryDialogs()

void basctl::LocalizationMgr::enableResourceForAllLibraryDialogs ( )
inlineprivate

Definition at line 64 of file localizationmgr.hxx.

References implEnableDisableResourceForAllLibraryDialogs(), and SET_IDS.

Referenced by handleAddLocales().

◆ getStringResourceFromDialogLibrary()

Reference< XStringResourceManager > basctl::LocalizationMgr::getStringResourceFromDialogLibrary ( const css::uno::Reference< css::container::XNameContainer > &  xDialogLib)
static

◆ getStringResourceManager()

const css::uno::Reference< css::resource::XStringResourceManager > & basctl::LocalizationMgr::getStringResourceManager ( ) const
inline

Definition at line 78 of file localizationmgr.hxx.

References m_xStringResourceManager.

◆ handleAddLocales()

void basctl::LocalizationMgr::handleAddLocales ( const css::uno::Sequence< css::lang::Locale > &  aLocaleSeq)

◆ handleBasicStarted()

void basctl::LocalizationMgr::handleBasicStarted ( )

Definition at line 763 of file localizationmgr.cxx.

References m_aLocaleBeforeBasicStart, and m_xStringResourceManager.

◆ handleBasicStopped()

void basctl::LocalizationMgr::handleBasicStopped ( )

Definition at line 769 of file localizationmgr.cxx.

References m_aLocaleBeforeBasicStart, and m_xStringResourceManager.

◆ handleRemoveLocales()

void basctl::LocalizationMgr::handleRemoveLocales ( const css::uno::Sequence< css::lang::Locale > &  aLocaleSeq)

◆ handleSetCurrentLocale()

void basctl::LocalizationMgr::handleSetCurrentLocale ( const css::lang::Locale &  rLocale)

◆ handleSetDefaultLocale()

void basctl::LocalizationMgr::handleSetDefaultLocale ( const css::lang::Locale &  rLocale)

Definition at line 721 of file localizationmgr.cxx.

References basctl::GetBindingsPtr(), and m_xStringResourceManager.

◆ handleTranslationbar()

void basctl::LocalizationMgr::handleTranslationbar ( )

◆ implEnableDisableResourceForAllLibraryDialogs()

void basctl::LocalizationMgr::implEnableDisableResourceForAllLibraryDialogs ( HandleResourceMode  eMode)
private

◆ implHandleControlResourceProperties()

sal_Int32 basctl::LocalizationMgr::implHandleControlResourceProperties ( const css::uno::Any &  rControlAny,
std::u16string_view  aDialogName,
std::u16string_view  aCtrlName,
const css::uno::Reference< css::resource::XStringResourceManager > &  xStringResourceManager,
const css::uno::Reference< css::resource::XStringResourceResolver > &  xSourceStringResolver,
HandleResourceMode  eMode 
)
staticprivate

◆ isLibraryLocalized()

bool basctl::LocalizationMgr::isLibraryLocalized ( )

Definition at line 74 of file localizationmgr.cxx.

References m_xStringResourceManager.

Referenced by handleAddLocales(), and handleTranslationbar().

◆ removeResourceForDialog()

void basctl::LocalizationMgr::removeResourceForDialog ( const ScriptDocument rDocument,
const OUString &  aLibName,
std::u16string_view  aDlgName,
const css::uno::Reference< css::container::XNameContainer > &  xDialogModel 
)
static

◆ renameControlResourceIDsForEditorObject()

void basctl::LocalizationMgr::renameControlResourceIDsForEditorObject ( DlgEditor const *  pEditor,
const css::uno::Any &  rControlAny,
std::u16string_view  aNewCtrlName 
)
static

◆ renameStringResourceIDs()

void basctl::LocalizationMgr::renameStringResourceIDs ( const ScriptDocument rDocument,
const OUString &  aLibName,
std::u16string_view  aDlgName,
const css::uno::Reference< css::container::XNameContainer > &  xDialogModel 
)
static

◆ resetResourceForDialog()

void basctl::LocalizationMgr::resetResourceForDialog ( const css::uno::Reference< css::container::XNameContainer > &  xDialogModel,
const css::uno::Reference< css::resource::XStringResourceManager > &  xStringResourceManager 
)
static

◆ setControlResourceIDsForNewEditorObject()

void basctl::LocalizationMgr::setControlResourceIDsForNewEditorObject ( DlgEditor const *  pEditor,
const css::uno::Any &  rControlAny,
std::u16string_view  aCtrlName 
)
static

◆ setResourceIDsForDialog()

void basctl::LocalizationMgr::setResourceIDsForDialog ( const css::uno::Reference< css::container::XNameContainer > &  xDialogModel,
const css::uno::Reference< css::resource::XStringResourceManager > &  xStringResourceManager 
)
static

◆ setStringResourceAtDialog()

void basctl::LocalizationMgr::setStringResourceAtDialog ( const ScriptDocument rDocument,
const OUString &  aLibName,
std::u16string_view  aDlgName,
const css::uno::Reference< css::container::XNameContainer > &  xDialogModel 
)
static

Member Data Documentation

◆ m_aDocument

ScriptDocument basctl::LocalizationMgr::m_aDocument
private

◆ m_aLibName

OUString basctl::LocalizationMgr::m_aLibName
private

Definition at line 43 of file localizationmgr.hxx.

Referenced by implEnableDisableResourceForAllLibraryDialogs().

◆ m_aLocaleBeforeBasicStart

css::lang::Locale basctl::LocalizationMgr::m_aLocaleBeforeBasicStart
private

Definition at line 45 of file localizationmgr.hxx.

Referenced by handleBasicStarted(), and handleBasicStopped().

◆ m_pShell

Shell* basctl::LocalizationMgr::m_pShell
private

◆ m_xStringResourceManager

css::uno::Reference< css::resource::XStringResourceManager > basctl::LocalizationMgr::m_xStringResourceManager
private

The documentation for this class was generated from the following files: