31#include <unonames.hxx>
67 return aDocDefaultsMap_Impl;
78 pDocShell->GetDocument().AddUnoObject(*
this);
91 if ( rHint.
GetId() == SfxHintId::Dying )
118 const OUString& aPropertyName,
const uno::Any& aValue )
123 throw uno::RuntimeException();
127 throw beans::UnknownPropertyException(aPropertyName);
160 lang::Locale aLocale;
161 if ( aValue >>= aLocale )
164 if (!aLocale.Language.isEmpty() || !aLocale.Country.isEmpty())
188 if( !pNewItem->PutValue( aValue, pEntry->
nMemberId ) )
189 throw lang::IllegalArgumentException();
204 throw uno::RuntimeException();
209 throw beans::UnknownPropertyException(aPropertyName);
221 if (nPrec <= ::std::numeric_limits<sal_Int16>::max())
222 aRet <<= static_cast<sal_Int16> (nPrec);
245beans::PropertyState SAL_CALL
ScDocDefaultsObj::getPropertyState( const OUString& aPropertyName )
250 throw uno::RuntimeException();
254 throw beans::UnknownPropertyException(aPropertyName);
256 beans::PropertyState eRet = beans::PropertyState_DEFAULT_VALUE;
258 sal_uInt16 nWID = pEntry->
nWID;
264 eRet = beans::PropertyState_DIRECT_VALUE;
272 eRet = beans::PropertyState_DIRECT_VALUE;
279 const uno::Sequence<OUString>& aPropertyNames )
284 uno::Sequence<beans::PropertyState> aRet(aPropertyNames.getLength());
285 std::transform(aPropertyNames.begin(), aPropertyNames.end(), aRet.getArray(),
286 [
this](
const OUString& rName) -> beans::PropertyState { return getPropertyState(rName); });
295 throw uno::RuntimeException();
299 throw beans::UnknownPropertyException(aPropertyName);
317 throw uno::RuntimeException();
321 throw beans::UnknownPropertyException(aPropertyName);
static LanguageType convertToLanguageType(const css::lang::Locale &rLocale, bool bResolveSystem=true)
virtual css::uno::Any SAL_CALL getPropertyDefault(const OUString &aPropertyName) override
virtual void Notify(SfxBroadcaster &rBC, const SfxHint &rHint) override
virtual void SAL_CALL setPropertyValue(const OUString &aPropertyName, const css::uno::Any &aValue) override
virtual css::uno::Sequence< css::beans::PropertyState > SAL_CALL getPropertyStates(const css::uno::Sequence< OUString > &aPropertyName) override
virtual void SAL_CALL setPropertyToDefault(const OUString &PropertyName) override
virtual ~ScDocDefaultsObj() override
virtual css::uno::Any SAL_CALL getPropertyValue(const OUString &PropertyName) override
SfxItemPropertyMap aPropertyMap
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
void SetTabDistance(sal_uInt16 nTabDist)
sal_uInt16 GetTabDistance() const
sal_uInt16 GetStdPrecision() const
void SetStdPrecision(sal_uInt16 n)
const ScDocument & GetDocument() const
void PostPaint(SCCOL nStartCol, SCROW nStartRow, SCTAB nStartTab, SCCOL nEndCol, SCROW nEndRow, SCTAB nEndTab, PaintPartFlags nPart, sal_uInt16 nExtFlags=0)
SC_DLLPUBLIC ScDocumentPool * GetPool()
SC_DLLPUBLIC void SetDocOptions(const ScDocOptions &rOpt)
void SetLanguage(LanguageType eLatin, LanguageType eCjk, LanguageType eCtl)
SC_DLLPUBLIC void GetLanguage(LanguageType &rLatin, LanguageType &rCjk, LanguageType &rCtl) const
void RemoveUnoObject(SfxListener &rObject)
SC_DLLPUBLIC const ScDocOptions & GetDocOptions() const
const SfxPoolItem & GetDefaultItem(sal_uInt16 nWhich) const
void ResetPoolDefaultItem(sal_uInt16 nWhich)
const SfxPoolItem * GetPoolDefaultItem(sal_uInt16 nWhich) const
void SetPoolDefaultItem(const SfxPoolItem &)
const SfxPoolItem * GetItem2Default(sal_uInt16 nWhich) const
const SfxItemPropertyMapEntry * getByName(std::u16string_view rName) const
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const=0
css::uno::Type const & get()
static o3tl::span< const SfxItemPropertyMapEntry > lcl_GetDocDefaultsMap()
#define MID_FONT_CHAR_SET
#define MID_FONT_FAMILY_NAME
#define MID_FONT_STYLE_NAME
#define SC_SIMPLE_SERVICE_INFO(ClassName, ClassNameAscii, ServiceAscii)
#define SC_IMPL_DUMMY_PROPERTY_LISTENER(ClassName)
constexpr auto toTwips(N number, Length from)
constexpr ::tools::Long TwipsToEvenHMM(::tools::Long nTwips)
constexpr TypedWhichId< SvxFontHeightItem > ATTR_FONT_HEIGHT(101)
constexpr TypedWhichId< SvxFontItem > ATTR_CJK_FONT(111)
constexpr TypedWhichId< SvxFontItem > ATTR_CTL_FONT(116)
constexpr TypedWhichId< SvxFontHeightItem > ATTR_CJK_FONT_HEIGHT(112)
constexpr TypedWhichId< SvxLanguageItem > ATTR_CTL_FONT_LANGUAGE(120)
constexpr TypedWhichId< SvxFontItem > ATTR_FONT(100)
constexpr TypedWhichId< SvxLanguageItem > ATTR_FONT_LANGUAGE(110)
constexpr TypedWhichId< SvxLanguageItem > ATTR_CJK_FONT_LANGUAGE(115)
constexpr TypedWhichId< SvxFontHeightItem > ATTR_CTL_FONT_HEIGHT(117)
constexpr OUStringLiteral SC_UNO_CJK_CFFAMIL
constexpr OUStringLiteral SC_UNO_CJK_CFPITCH
constexpr OUStringLiteral SC_UNONAME_CFCHARS
constexpr OUStringLiteral SC_UNO_STANDARDDEC
constexpr OUStringLiteral SC_UNONAME_CLOCAL
constexpr OUStringLiteral SC_UNO_CJK_CFCHARS
constexpr OUStringLiteral SC_UNO_TABSTOPDIS
constexpr OUStringLiteral SC_UNO_CTL_CFNAME
constexpr OUStringLiteral SC_UNO_CTL_CFFAMIL
constexpr OUStringLiteral SC_UNONAME_CFFAMIL
constexpr OUStringLiteral SC_UNO_CJK_CFSTYLE
constexpr OUStringLiteral SC_UNO_CTL_CFPITCH
constexpr OUStringLiteral SC_UNO_CTL_CFCHARS
constexpr OUStringLiteral SC_UNONAME_CFNAME
constexpr OUStringLiteral SC_UNO_CTL_CLOCAL
constexpr OUStringLiteral SC_UNO_CJK_CHEIGHT
constexpr OUStringLiteral SC_UNO_CJK_CFNAME
constexpr OUStringLiteral SC_UNONAME_CFPITCH
constexpr OUStringLiteral SC_UNO_CTL_CHEIGHT
constexpr OUStringLiteral SC_UNONAME_CHEIGHT
constexpr OUStringLiteral SC_UNO_CTL_CFSTYLE
constexpr OUStringLiteral SC_UNONAME_CFSTYLE
constexpr OUStringLiteral SC_UNO_CJK_CLOCAL