LibreOffice Module unotools (master) 1
|
#include <moduleoptions.hxx>
Public Types | |
enum class | EModule { WRITER = 0 , CALC = 1 , DRAW = 2 , IMPRESS = 3 , MATH = 4 , CHART = 5 , STARTMODULE = 6 , BASIC = 7 , DATABASE = 8 , WEB = 9 , GLOBAL = 10 } |
enum class | EFactory { UNKNOWN_FACTORY = -1 , WRITER = 0 , WRITERWEB = 1 , WRITERGLOBAL = 2 , CALC = 3 , DRAW = 4 , IMPRESS = 5 , MATH = 6 , CHART = 7 , STARTMODULE = 8 , DATABASE = 9 , BASIC = 10 , LAST = BASIC } |
Static Public Member Functions | |
static bool | ClassifyFactoryByName (std::u16string_view sName, EFactory &eFactory) |
static EFactory | ClassifyFactoryByServiceName (std::u16string_view sName) |
return the corresponding application ID for the given document service name. More... | |
static EFactory | ClassifyFactoryByShortName (std::u16string_view sName) |
return the corresponding application ID for the given short name. More... | |
static EFactory | ClassifyFactoryByURL (const OUString &sURL, const css::uno::Sequence< css::beans::PropertyValue > &lMediaDescriptor) |
return the corresponding application ID for the given properties. More... | |
static EFactory | ClassifyFactoryByModel (const css::uno::Reference< css::frame::XModel > &xModel) |
return the corresponding application ID for the given properties. More... | |
static OUString | GetFactoryShortName (EFactory eFactory) |
static bool | IsBasicIDE () |
Private Attributes | |
std::shared_ptr< SvtModuleOptions_Impl > | m_pImpl |
Additional Inherited Members | |
Protected Member Functions inherited from utl::detail::Options | |
virtual void | ConfigurationChanged (::utl::ConfigurationBroadcaster *p, ConfigurationHints nHint) override |
Definition at line 49 of file moduleoptions.hxx.
|
strong |
Enumerator | |
---|---|
UNKNOWN_FACTORY | |
WRITER | |
WRITERWEB | |
WRITERGLOBAL | |
CALC | |
DRAW | |
IMPRESS | |
MATH | |
CHART | |
STARTMODULE | |
DATABASE | |
BASIC | |
LAST |
Definition at line 72 of file moduleoptions.hxx.
|
strong |
Enumerator | |
---|---|
WRITER | |
CALC | |
DRAW | |
IMPRESS | |
MATH | |
CHART | |
STARTMODULE | |
BASIC | |
DATABASE | |
WEB | |
GLOBAL |
Definition at line 53 of file moduleoptions.hxx.
SvtModuleOptions::SvtModuleOptions | ( | ) |
Definition at line 781 of file moduleoptions.cxx.
References ItemHolder1::holdConfigItem(), m_pImpl, and ModuleOptions.
|
overridevirtual |
Definition at line 801 of file moduleoptions.cxx.
References m_pImpl.
|
static |
return the corresponding application ID for the given properties.
@descr Here we try to use the list of supported service names of the given model to find out the right application module.
xModel | the document model |
Definition at line 1071 of file moduleoptions.cxx.
References ClassifyFactoryByServiceName(), UNKNOWN_FACTORY, and xModel.
|
static |
Definition at line 857 of file moduleoptions.cxx.
References SvtModuleOptions_Impl::ClassifyFactoryByName(), and sName.
|
static |
return the corresponding application ID for the given document service name.
Definition at line 968 of file moduleoptions.cxx.
References BASIC, CALC, CHART, DATABASE, DRAW, FACTORYNAME_BASIC, FACTORYNAME_CALC, FACTORYNAME_CHART, FACTORYNAME_DATABASE, FACTORYNAME_DRAW, FACTORYNAME_IMPRESS, FACTORYNAME_MATH, FACTORYNAME_STARTMODULE, FACTORYNAME_WRITER, FACTORYNAME_WRITERGLOBAL, FACTORYNAME_WRITERWEB, IMPRESS, MATH, sName, STARTMODULE, UNKNOWN_FACTORY, WRITER, WRITERGLOBAL, and WRITERWEB.
Referenced by ClassifyFactoryByModel(), and ClassifyFactoryByURL().
|
static |
return the corresponding application ID for the given short name.
Definition at line 942 of file moduleoptions.cxx.
References BASIC, CALC, CHART, DATABASE, DRAW, o3tl::equalsIgnoreAsciiCase(), IMPRESS, MATH, sName, u, UNKNOWN_FACTORY, WRITER, WRITERGLOBAL, and WRITERWEB.
|
static |
return the corresponding application ID for the given properties.
@descr Because this search base on filters currently (till we have a better solution) a result is not guaranteed every time. May a filter does not exists for the specified content (but a FrameLoader which is not bound to any application!) ... or the given properties describe a stream (and we make no deep detection inside here!).
sURL | the complete URL! |
lMediaDescriptor | additional information |
Definition at line 996 of file moduleoptions.cxx.
References ClassifyFactoryByServiceName(), comphelper::SequenceAsHashMap::getUnpackedValueOrDefault(), sDocumentService, and UNKNOWN_FACTORY.
css::uno::Sequence< OUString > SvtModuleOptions::GetAllServiceNames | ( | ) |
Definition at line 1089 of file moduleoptions.cxx.
References m_pImpl.
OUString SvtModuleOptions::GetDefaultModuleName | ( | ) | const |
Definition at line 1095 of file moduleoptions.cxx.
References CALC, DATABASE, DRAW, GetFactoryShortName(), GLOBAL, IMPRESS, m_pImpl, MATH, WEB, WRITER, WRITERGLOBAL, and WRITERWEB.
OUString SvtModuleOptions::GetFactoryDefaultFilter | ( | EFactory | eFactory | ) | const |
Definition at line 838 of file moduleoptions.cxx.
References m_pImpl.
OUString SvtModuleOptions::GetFactoryEmptyDocumentURL | ( | EFactory | eFactory | ) | const |
Definition at line 832 of file moduleoptions.cxx.
References SvtModuleOptions_Impl::GetFactoryEmptyDocumentURL().
sal_Int32 SvtModuleOptions::GetFactoryIcon | ( | EFactory | eFactory | ) | const |
Definition at line 851 of file moduleoptions.cxx.
References m_pImpl.
const OUString & SvtModuleOptions::GetFactoryName | ( | EFactory | eFactory | ) | const |
Definition at line 820 of file moduleoptions.cxx.
References m_pImpl.
|
static |
Definition at line 442 of file moduleoptions.cxx.
References BASIC, CALC, CHART, DATABASE, DRAW, IMPRESS, MATH, STARTMODULE, WRITER, WRITERGLOBAL, and WRITERWEB.
Referenced by GetDefaultModuleName().
OUString SvtModuleOptions::GetFactoryStandardTemplate | ( | EFactory | eFactory | ) | const |
Definition at line 826 of file moduleoptions.cxx.
References m_pImpl.
OUString SvtModuleOptions::GetModuleName | ( | EModule | eModule | ) | const |
|
inlinestatic |
Definition at line 164 of file moduleoptions.hxx.
bool SvtModuleOptions::IsCalc | ( | ) | const |
Definition at line 890 of file moduleoptions.cxx.
bool SvtModuleOptions::IsChart | ( | ) | const |
Definition at line 884 of file moduleoptions.cxx.
bool SvtModuleOptions::IsDataBase | ( | ) | const |
Definition at line 914 of file moduleoptions.cxx.
bool SvtModuleOptions::IsDefaultFilterReadonly | ( | EFactory | eFactory | ) | const |
Definition at line 844 of file moduleoptions.cxx.
References m_pImpl.
bool SvtModuleOptions::IsDraw | ( | ) | const |
Definition at line 896 of file moduleoptions.cxx.
bool SvtModuleOptions::IsImpress | ( | ) | const |
Definition at line 908 of file moduleoptions.cxx.
bool SvtModuleOptions::IsMath | ( | ) | const |
Definition at line 878 of file moduleoptions.cxx.
bool SvtModuleOptions::IsModuleInstalled | ( | EModule | eModule | ) | const |
Definition at line 814 of file moduleoptions.cxx.
References m_pImpl.
bool SvtModuleOptions::IsWriter | ( | ) | const |
Definition at line 902 of file moduleoptions.cxx.
void SvtModuleOptions::SetFactoryDefaultFilter | ( | EFactory | eFactory, |
const OUString & | sFilter | ||
) |
Definition at line 871 of file moduleoptions.cxx.
References m_pImpl.
void SvtModuleOptions::SetFactoryStandardTemplate | ( | EFactory | eFactory, |
const OUString & | sTemplate | ||
) |
Definition at line 864 of file moduleoptions.cxx.
References m_pImpl.
|
private |
Definition at line 170 of file moduleoptions.hxx.
Referenced by GetAllServiceNames(), GetDefaultModuleName(), GetFactoryDefaultFilter(), GetFactoryIcon(), GetFactoryName(), GetFactoryStandardTemplate(), IsCalc(), IsChart(), IsDataBase(), IsDefaultFilterReadonly(), IsDraw(), IsImpress(), IsMath(), IsModuleInstalled(), IsWriter(), SetFactoryDefaultFilter(), SetFactoryStandardTemplate(), SvtModuleOptions(), and ~SvtModuleOptions().