20#include <com/sun/star/lang/DisposedException.hpp>
21#include <com/sun/star/lang/IndexOutOfBoundsException.hpp>
60#include <stlsheet.hxx>
68#include <com/sun/star/drawing/LineStyle.hpp>
69#include <com/sun/star/drawing/TextFitToSizeType.hpp>
80OUString lcl_findRenamedStyleName(std::vector< std::pair< OUString, OUString > > &rRenamedList, OUString
const & aOriginalName )
82 auto aIter = std::find_if(rRenamedList.begin(), rRenamedList.end(),
83 [&aOriginalName](
const std::pair<OUString, OUString>& rItem) { return rItem.first == aOriginalName; });
84 if (aIter != rRenamedList.end())
85 return (*aIter).second;
91 if( aStyleName.empty() )
93 for (
const auto& a : rStyles)
95 if (
a.m_xStyleSheet->GetName() == aStyleName)
96 return a.m_xStyleSheet.get();
105, mpActualStyleSheet(nullptr)
124 for( sal_uInt16 nPage = 0; nPage <
nCount; ++nPage )
130 DBG_ASSERT(
mpDoc ==
nullptr,
"sd::SdStyleSheetPool::~SdStyleSheetPool(), dispose me first!" );
156 for (sal_Int32 nSheet = 1; nSheet < 10; nSheet++)
158 OUString aFullName(
aName +
" " + OUString::number( nSheet ) );
162 rOutlineStyles.push_back(pSheet);
176 bool bCreated =
false;
182 vcl::Font aLatinFont, aCJKFont, aCTLFont;
202 const OUString aHelpFile;
207 for( sal_Int32 nLevel = 1; nLevel < 10; nLevel++)
209 OUString aLevelName( aPrefix +
aName +
" " + OUString::number( nLevel ) ) ;
211 if (!Find(aLevelName, SfxStyleFamily::Page))
214 pSheet = &Make(aLevelName, SfxStyleFamily::Page,nUsedMask);
215 pSheet->
SetHelpId( aHelpFile, HID_PSEUDOSHEET_OUTLINE + nLevel );
255 sal_uInt16 nUpper = 100;
304 for (sal_Int32 nLevel = 1; nLevel < 10; nLevel++)
306 OUString aLevelName( aPrefix +
aName +
" " + OUString::number( nLevel ) );
308 pSheet = Find(aLevelName, SfxStyleFamily::Page);
326 if (!Find(
aName, SfxStyleFamily::Page))
330 pSheet = &Make(
aName, SfxStyleFamily::Page,nUsedMask);
331 pSheet->
SetHelpId( aHelpFile, HID_PSEUDOSHEET_TITLE );
336 rTitleSet.
Put(aSvxFontItem);
337 rTitleSet.
Put(aSvxFontItemCJK);
338 rTitleSet.
Put(aSvxFontItemCTL);
372 if (!Find(
aName, SfxStyleFamily::Page))
376 pSheet = &Make(
aName, SfxStyleFamily::Page,nUsedMask);
377 pSheet->
SetHelpId( aHelpFile, HID_PSEUDOSHEET_SUBTITLE );
382 rSubtitleSet.
Put(aSvxFontItem);
383 rSubtitleSet.
Put(aSvxFontItemCJK);
384 rSubtitleSet.
Put(aSvxFontItemCTL);
409 rSubtitleSet.
Put(aSvxLRSpaceItem);
421 if (!Find(
aName, SfxStyleFamily::Page))
425 pSheet = &Make(
aName, SfxStyleFamily::Page,nUsedMask);
426 pSheet->
SetHelpId( aHelpFile, HID_PSEUDOSHEET_NOTES );
431 rNotesSet.
Put(aSvxFontItem);
432 rNotesSet.
Put(aSvxFontItemCJK);
433 rNotesSet.
Put(aSvxFontItemCTL);
466 if (!Find(
aName, SfxStyleFamily::Page))
470 pSheet = &Make(
aName, SfxStyleFamily::Page,nUsedMask);
471 pSheet->
SetHelpId( aHelpFile, HID_PSEUDOSHEET_BACKGROUNDOBJECTS );
488 if (!Find(
aName, SfxStyleFamily::Page))
492 pSheet = &Make(
aName, SfxStyleFamily::Page,nUsedMask);
493 pSheet->
SetHelpId( aHelpFile, HID_PSEUDOSHEET_BACKGROUND );
502 DBG_ASSERT( !bCheck || !bCreated,
"missing layout style sheets detected!" );
515 CopySheets( rSourcePool, SfxStyleFamily::Para );
520 CopySheets( rSourcePool, SfxStyleFamily::Frame );
531 Reference< XIndexAccess > xSource( rSourcePool.
mxTableFamily, UNO_QUERY );
540 Reference< XNameAccess > xSourceTableStyle( xSource->getByIndex(
nIndex ), UNO_QUERY_THROW );
541 Reference< XNameReplace > xNewTableStyle(
xFactory->createInstance(), UNO_QUERY_THROW );
543 const Sequence< OUString > aStyleNames( xSourceTableStyle->getElementNames() );
544 for(
const OUString&
aName : aStyleNames )
546 Reference< XStyle > xSourceStyle( xSourceTableStyle->getByName(
aName ), UNO_QUERY );
547 Reference< XStyle > xTargetStyle;
548 if( xSourceStyle.is() )
try
550 mxCellFamily->getByName( xSourceStyle->getName() ) >>= xTargetStyle;
557 xNewTableStyle->replaceByName(
aName,
Any( xTargetStyle ) );
560 const OUString
sName(Reference<XStyle>(xSourceTableStyle, UNO_QUERY_THROW)->getName());
562 Reference<XComponent>(xNewTableStyle, UNO_QUERY_THROW)->dispose();
565 rCreatedSheets.emplace_back(xNewTableStyle, UNO_QUERY_THROW);
577 CopySheets( rSourcePool, SfxStyleFamily::Frame, rCreatedSheets );
582 CopySheets( rSourcePool, SfxStyleFamily::Para, rCreatedSheets, rRenameSuffix );
593 CopySheets(rSourcePool, eFamily, rCreatedSheets,
u"");
602 : meFamily(eFamily) {}
615 std::vector< std::pair< rtl::Reference< SfxStyleSheetBase >, OUString > > aNewStyles;
616 std::vector< std::pair< OUString, OUString > > aRenamedList;
619 HasFamilyPredicate aHasFamilyPredicate(eFamily);
620 std::vector<sal_Int32> aSheetsWithFamily = rSourcePool.GetIndexedStyleSheets().FindPositionsByPredicate(aHasFamilyPredicate);
622 for (
const auto& rPos : aSheetsWithFamily)
630 std::vector<sal_Int32> aSheetsWithName = GetIndexedStyleSheets().FindPositionsByName(
aName);
631 bool bAddToList =
false;
633 if (!aSheetsWithName.empty())
637 GetStyleSheetByPositionInIndex(aSheetsWithName.front());
638 if (!rRenameSuffix.empty() &&
644 OUString aTmpName =
aName + rRenameSuffix;
645 sal_Int32 nSuffix = 1;
648 aTmpName =
aName + rRenameSuffix + OUString::number(nSuffix);
649 pExistingSheet = Find(aTmpName, eFamily);
651 }
while (pExistingSheet &&
660 assert(!Find(
aName, eFamily));
663 xNewSheet->SetMask( pSheet->
GetMask() );
667 if( !aParent.isEmpty() )
668 aNewStyles.emplace_back( xNewSheet, aParent );
673 xNewSheet->SetHelpId( aHelpFile, pSheet->
GetHelpId( aHelpFile ) );
675 xNewSheet->GetItemSet().Put( pSheet->
GetItemSet() );
677 rCreatedSheets.emplace_back(
static_cast<SdStyleSheet*
>(xNewSheet.get()),
true);
683 rCreatedSheets.emplace_back(
static_cast<SdStyleSheet*
>(pExistingSheet),
false);
689 for(
auto& rStyle : aNewStyles )
691 if( !rRenameSuffix.empty() )
693 SfxStyleSheet *pParent = lcl_findStyle(rCreatedSheets, lcl_findRenamedStyleName(aRenamedList, rStyle.second));
696 rStyle.first->SetParent( pParent->
GetName() );
700 DBG_ASSERT( rSourcePool.Find( rStyle.second, eFamily ),
"StyleSheet has invalid parent: Family mismatch" );
701 rStyle.first->SetParent( rStyle.second );
722 std::vector<OUString> aNameList;
725 for (
const auto& rName : aNameList)
727 pSheet = Find(rName, SfxStyleFamily::Page);
731 DBG_ASSERT(pSourceSheet,
"CopyLayoutSheets: Style sheet missing");
739 rCreatedSheets.emplace_back(
static_cast<SdStyleSheet*
>(&rNewSheet),
true);
745 std::vector<SfxStyleSheetBase*> aOutlineSheets;
748 if( aOutlineSheets.empty() )
751 std::vector<SfxStyleSheetBase*>::iterator it = aOutlineSheets.begin();
755 while (it != aOutlineSheets.end())
782 for (sal_Int32 nLevel = 1; nLevel < 10; nLevel++)
783 aNameList.emplace_back(aPrefix +
STR_LAYOUT_OUTLINE +
" " + OUString::number( nLevel ) );
801 OUString aLayoutNameWithSep(OUString::Concat(rLayoutName) +
SD_LT_SEPARATOR);
808 if (pSheet->
GetName().startsWith(aLayoutNameWithSep))
809 rLayoutSheets.emplace_back(
static_cast< SdStyleSheet*
>( pSheet ) );
810 pSheet = aIter.
Next();
823 const OUString aHelpFile;
830 if( (pSheet = Find(
aName, SfxStyleFamily::Pseudo)) ==
nullptr )
832 pSheet = &Make(
aName, SfxStyleFamily::Pseudo, nUsedMask);
836 pSheet->
SetHelpId( aHelpFile, HID_PSEUDOSHEET_TITLE );
839 if( (pSheet = Find(
aName, SfxStyleFamily::Pseudo)) ==
nullptr )
841 pSheet = &Make(
aName, SfxStyleFamily::Pseudo, nUsedMask);
845 pSheet->
SetHelpId( aHelpFile, HID_PSEUDOSHEET_SUBTITLE );
848 if( (pSheet = Find(
aName, SfxStyleFamily::Pseudo)) ==
nullptr )
850 pSheet = &Make(
aName, SfxStyleFamily::Pseudo, nUsedMask);
854 pSheet->
SetHelpId( aHelpFile, HID_PSEUDOSHEET_BACKGROUNDOBJECTS );
857 if( (pSheet = Find(
aName, SfxStyleFamily::Pseudo)) ==
nullptr )
859 pSheet = &Make(
aName, SfxStyleFamily::Pseudo, nUsedMask);
863 pSheet->
SetHelpId( aHelpFile, HID_PSEUDOSHEET_BACKGROUND );
866 if( (pSheet = Find(
aName, SfxStyleFamily::Pseudo)) ==
nullptr )
868 pSheet = &Make(
aName, SfxStyleFamily::Pseudo, nUsedMask);
872 pSheet->
SetHelpId( aHelpFile, HID_PSEUDOSHEET_NOTES );
876 for (sal_Int32 nLevel = 1; nLevel < 10; nLevel++)
878 OUString aLevelName(
aName +
" " + OUString::number( nLevel ) );
880 if( (pSheet = Find(aLevelName, SfxStyleFamily::Pseudo)) ==
nullptr )
882 pSheet = &Make(aLevelName, SfxStyleFamily::Pseudo, nUsedMask);
889 pSheet->
SetHelpId( aHelpFile, HID_PSEUDOSHEET_OUTLINE + nLevel );
903 StyleSheetIsUserDefinedPredicate()
916 StyleSheetIsUserDefinedPredicate aPredicate;
917 std::vector<SfxStyleSheetBase*> aEraseList;
918 std::vector<sal_Int32> aUserDefinedStyles = GetIndexedStyleSheets().FindPositionsByPredicate(aPredicate);
919 for (
const auto& rStyle : aUserDefinedStyles)
925 OUString aOldName = pStyle->
GetName();
929 bool bHelpKnown =
true;
933 case HID_STANDARD_STYLESHEET_NAME: pNameId = STR_STANDARD_STYLESHEET_NAME;
break;
934 case HID_POOLSHEET_OBJWITHOUTFILL: pNameId = STR_POOLSHEET_OBJWITHOUTFILL;
break;
935 case HID_POOLSHEET_OBJNOLINENOFILL: pNameId = STR_POOLSHEET_OBJNOLINENOFILL;
break;
936 case HID_POOLSHEET_TEXT: pNameId = STR_POOLSHEET_TEXT;
break;
937 case HID_POOLSHEET_A4: pNameId = STR_POOLSHEET_A4;
break;
938 case HID_POOLSHEET_A4_TITLE: pNameId = STR_POOLSHEET_A4_TITLE;
break;
939 case HID_POOLSHEET_A4_HEADLINE: pNameId = STR_POOLSHEET_A4_HEADLINE;
break;
940 case HID_POOLSHEET_A4_TEXT: pNameId = STR_POOLSHEET_A4_TEXT;
break;
941 case HID_POOLSHEET_A0: pNameId = STR_POOLSHEET_A0;
break;
942 case HID_POOLSHEET_A0_TITLE: pNameId = STR_POOLSHEET_A0_TITLE;
break;
943 case HID_POOLSHEET_A0_HEADLINE: pNameId = STR_POOLSHEET_A0_HEADLINE;
break;
944 case HID_POOLSHEET_A0_TEXT: pNameId = STR_POOLSHEET_A0_TEXT;
break;
945 case HID_POOLSHEET_GRAPHIC: pNameId = STR_POOLSHEET_GRAPHIC;
break;
946 case HID_POOLSHEET_SHAPES: pNameId = STR_POOLSHEET_SHAPES;
break;
947 case HID_POOLSHEET_FILLED: pNameId = STR_POOLSHEET_FILLED;
break;
948 case HID_POOLSHEET_FILLED_BLUE: pNameId = STR_POOLSHEET_FILLED_BLUE;
break;
949 case HID_POOLSHEET_FILLED_GREEN: pNameId = STR_POOLSHEET_FILLED_GREEN;
break;
950 case HID_POOLSHEET_FILLED_RED: pNameId = STR_POOLSHEET_FILLED_RED;
break;
951 case HID_POOLSHEET_FILLED_YELLOW: pNameId = STR_POOLSHEET_FILLED_YELLOW;
break;
952 case HID_POOLSHEET_OUTLINE: pNameId = STR_POOLSHEET_OUTLINE;
break;
953 case HID_POOLSHEET_OUTLINE_BLUE: pNameId = STR_POOLSHEET_OUTLINE_BLUE;
break;
954 case HID_POOLSHEET_OUTLINE_GREEN: pNameId = STR_POOLSHEET_OUTLINE_GREEN;
break;
955 case HID_POOLSHEET_OUTLINE_RED: pNameId = STR_POOLSHEET_OUTLINE_RED;
break;
956 case HID_POOLSHEET_OUTLINE_YELLOW: pNameId = STR_POOLSHEET_OUTLINE_YELLOW;
break;
957 case HID_POOLSHEET_LINES: pNameId = STR_POOLSHEET_LINES;
break;
958 case HID_POOLSHEET_MEASURE: pNameId = STR_POOLSHEET_MEASURE;
break;
959 case HID_POOLSHEET_LINES_DASHED: pNameId = STR_POOLSHEET_LINES_DASHED;
break;
961 case HID_PSEUDOSHEET_OUTLINE1:
962 case HID_PSEUDOSHEET_OUTLINE2:
963 case HID_PSEUDOSHEET_OUTLINE3:
964 case HID_PSEUDOSHEET_OUTLINE4:
965 case HID_PSEUDOSHEET_OUTLINE5:
966 case HID_PSEUDOSHEET_OUTLINE6:
967 case HID_PSEUDOSHEET_OUTLINE7:
968 case HID_PSEUDOSHEET_OUTLINE8:
969 case HID_PSEUDOSHEET_OUTLINE9: pNameId = STR_PSEUDOSHEET_OUTLINE;
break;
970 case HID_PSEUDOSHEET_BACKGROUNDOBJECTS: pNameId = STR_PSEUDOSHEET_BACKGROUNDOBJECTS;
break;
971 case HID_PSEUDOSHEET_BACKGROUND: pNameId = STR_PSEUDOSHEET_BACKGROUND;
break;
972 case HID_PSEUDOSHEET_NOTES: pNameId = STR_PSEUDOSHEET_NOTES;
break;
983 if (pNameId == STR_PSEUDOSHEET_OUTLINE)
985 aNewName +=
" " + OUString::number( sal_Int32( nHelpId - HID_PSEUDOSHEET_OUTLINE ) );
989 if( !aNewName.isEmpty() && aNewName != aOldName )
1001 aEraseList.push_back( pStyle );
1008 if (!aEraseList.empty())
1021 const auto nLSpace = (
i + 1) * 1200;
1068 case HID_STANDARD_STYLESHEET_NAME :
1079 SvxNumRule aNumRule( SvxNumRuleFlags::BULLET_REL_SIZE | SvxNumRuleFlags::BULLET_COLOR,
SVX_MAX_NUM,
false);
1083 const auto nLSpace = (
i + 1) * 600;
1094 case HID_PSEUDOSHEET_TITLE:
1096 case HID_PSEUDOSHEET_SUBTITLE :
1102 DBG_ASSERT( pDefaultRule,
"Where is my default template? [CL]" );
1126 case HID_PSEUDOSHEET_OUTLINE + 1 :
1134 SvxNumRule aNumRule( SvxNumRuleFlags::BULLET_REL_SIZE | SvxNumRuleFlags::BULLET_COLOR,
1160 aBulletFont.
SetCharSet(RTL_TEXTENCODING_UNICODE);
1189 if( xStyle.is() )
try
1200 if(
mpDoc ==
nullptr )
1201 throw DisposedException();
1207 return "SdStyleSheetPool";
1217 return {
"com.sun.star.style.StyleFamilies" };
1226 return Any( Reference< XNameAccess >(
static_cast< XNameAccess*
>(
mxGraphicFamily.get() ) ) );
1229 return Any( Reference< XNameAccess >(
static_cast< XNameAccess*
>(
mxCellFamily.get() ) ) );
1235 [&
aName](
const SdStyleFamilyMap::value_type& rEntry) { return rEntry.second->getName() == aName; });
1237 return Any( Reference< XNameAccess >(
static_cast< XNameAccess*
>( (*iter).second.get() ) ) );
1239 throw NoSuchElementException();
1247 OUString* pNames = aNames.getArray();
1255 *pNames++ = rEntry.second->getName();
1275 [&
aName](
const SdStyleFamilyMap::value_type& rEntry) { return rEntry.second->getName() == aName; });
1306 return Any( Reference< XNameAccess >(
static_cast< XNameAccess*
>(
mxGraphicFamily.get() ) ) );
1309 return Any( Reference< XNameAccess >(
static_cast< XNameAccess*
>(
mxCellFamily.get() ) ) );
1318 throw IndexOutOfBoundsException();
1320 std::advance(iter,
Index);
1322 return Any( Reference< XNameAccess >(
static_cast< XNameAccess*
>( (*iter).second.get() ) ) );
1347 for(
auto& rEntry : aTempMap )
try
1349 rEntry.second->dispose();
1372 pSheet->ForAllListeners(
1376 if(pChild && pChild->GetParent() == pSheet->GetName())
1378 aResult.emplace_back( pChild );
constexpr auto convertPointToMm100(N n)
sal_uInt16 GetMasterSdPageCount(PageKind ePgKind) const
SAL_DLLPRIVATE void getDefaultFonts(vcl::Font &rLatinFont, vcl::Font &rCJKFont, vcl::Font &rCTLFont)
return the document fonts for latin, cjk and ctl according to the current languages set at this docum...
SdPage * GetMasterSdPage(sal_uInt16 nPgNum, PageKind ePgKind)
static SAL_DLLPRIVATE sal_uInt32 convertFontHeightToCTL(sal_uInt32 nWesternFontHeight)
converts the given western font height to a corresponding ctl font height, depending on the system la...
SdStyleSheetPool(SfxItemPool const &rPool, SdDrawDocument *pDocument)
css::uno::Reference< css::container::XNameAccess > mxTableFamily
virtual void SAL_CALL removeEventListener(const css::uno::Reference< css::lang::XEventListener > &aListener) override
void RenameAndCopyGraphicSheets(SdStyleSheetPool &rSourcePool, StyleSheetCopyResultVector &rCreatedSheets, std::u16string_view rRenameSuffix)
void CopySheets(SdStyleSheetPool &rSourcePool, SfxStyleFamily eFamily)
virtual css::uno::Any SAL_CALL getByName(const OUString &aName) override
static void PutNumBulletItem(SfxStyleSheetBase *pSheet, vcl::Font &rBulletFont)
SfxStyleSheetBase * GetTitleSheet(std::u16string_view rLayoutName)
void CopyCellSheets(SdStyleSheetPool &rSourcePool)
SdStyleFamilyRef mxCellFamily
static vcl::Font GetBulletFont()
static void setDefaultOutlineNumberFormatBulletAndIndent(sal_uInt16 i, SvxNumberFormat &rNumberFormat)
void CreateOutlineSheetList(std::u16string_view rLayoutName, std::vector< SfxStyleSheetBase * > &rOutlineStyles)
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 Index) override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
void CopyLayoutSheets(std::u16string_view rLayoutName, SdStyleSheetPool &rSourcePool, StyleSheetCopyResultVector &rCreatedSheets)
void AddStyleFamily(const SdPage *pPage)
static SdStyleSheetVector CreateChildList(SdStyleSheet const *pSheet)
SdStyleFamilyMap maStyleFamilyMap
SdStyleFamilyRef mxGraphicFamily
virtual sal_Bool SAL_CALL hasByName(const OUString &aName) override
virtual rtl::Reference< SfxStyleSheetBase > Create(const OUString &rName, SfxStyleFamily eFamily, SfxStyleSearchBits nMask) override
virtual void SAL_CALL dispose() override
virtual void SAL_CALL addEventListener(const css::uno::Reference< css::lang::XEventListener > &xListener) override
virtual sal_Int32 SAL_CALL getCount() override
virtual OUString SAL_CALL getImplementationName() override
OUString msTableFamilyName
void CopyGraphicSheets(SdStyleSheetPool &rSourcePool)
virtual ~SdStyleSheetPool() override
static void CreateLayoutSheetNames(std::u16string_view rLayoutName, std::vector< OUString > &aNameList)
void CopyTableStyles(SdStyleSheetPool const &rSourcePool)
void CreateLayoutSheetList(std::u16string_view rLayoutName, SdStyleSheetVector &rLayoutSheets)
virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override
void RemoveStyleFamily(const SdPage *pPage)
virtual css::uno::Type SAL_CALL getElementType() override
virtual sal_Bool SAL_CALL hasElements() override
void CreatePseudosIfNecessary()
SD_DLLPUBLIC void CreateLayoutStyleSheets(std::u16string_view rLayoutName, bool bCheck=false)
creates all layout style sheets for the given layout name if they don't exist yet.
SfxItemPool * GetSecondaryPool() const
const SfxPoolItem * GetPoolDefaultItem(sal_uInt16 nWhich) const
SfxItemPool * GetPool() const
const SfxPoolItem * Put(const SfxPoolItem &rItem, sal_uInt16 nWhich)
bool Equals(const SfxItemSet &, bool bComparePool) const
void StartListening(SfxBroadcaster &rBroadcaster, DuplicateHandling eDuplicateHanding=DuplicateHandling::Unexpected)
SfxStyleSearchBits GetMask() const
virtual bool SetName(const OUString &rNewName, bool bReindexNow=true)
virtual const OUString & GetParent() const
const OUString & GetName() const
SfxStyleFamily GetFamily() const
virtual sal_uLong GetHelpId(OUString &rFile)
virtual void SetHelpId(const OUString &r, sal_uLong nId)
bool IsUserDefined() const
virtual bool SetParent(const OUString &)
virtual SfxItemSet & GetItemSet()
virtual SfxStyleSheetBase * Next()
virtual SfxStyleSheetBase * First()
void SetTextLeft(const tools::Long nL, const sal_uInt16 nProp=100)
const SvxNumRule & GetNumRule() const
sal_uInt16 GetLevelCount() const
SvxNumRuleFlags GetFeatureFlags() const
const SvxNumberFormat & GetLevel(sal_uInt16 nLevel) const
void SetLevel(sal_uInt16 nLevel, const SvxNumberFormat &rFmt, bool bIsValid=true)
void SetNumberingType(SvxNumType nSet)
void SetUpper(const sal_uInt16 nU, const sal_uInt16 nProp=100)
css::uno::Type const & get()
void SetFontSize(const Size &)
FontFamily GetFamilyType()
void SetOutline(bool bOutline)
void SetTransparent(bool bTransparent)
void SetColor(const Color &)
const OUString & GetStyleName() const
void SetItalic(FontItalic)
void SetWeight(FontWeight)
const OUString & GetFamilyName() const
void SetUnderline(FontLineStyle)
void SetCharSet(rtl_TextEncoding)
void SetOverline(FontLineStyle)
rtl_TextEncoding GetCharSet() const
void SetShadow(bool bShadow)
void SetStrikeout(FontStrikeout)
constexpr ::Color COL_GRAY(0x80, 0x80, 0x80)
constexpr ::Color COL_AUTO(ColorTransparency, 0xFF, 0xFF, 0xFF, 0xFF)
#define DBG_ASSERT(sCon, aError)
#define TOOLS_WARN_EXCEPTION(area, stream)
constexpr TypedWhichId< SvxContourItem > EE_CHAR_OUTLINE(EE_CHAR_START+8)
constexpr TypedWhichId< SvxFontItem > EE_CHAR_FONTINFO_CJK(EE_CHAR_START+17)
constexpr TypedWhichId< SvxUnderlineItem > EE_CHAR_UNDERLINE(EE_CHAR_START+5)
constexpr TypedWhichId< SvxAdjustItem > EE_PARA_JUST(EE_PARA_START+16)
constexpr TypedWhichId< SvxFontHeightItem > EE_CHAR_FONTHEIGHT(EE_CHAR_START+2)
constexpr TypedWhichId< SvxAutoKernItem > EE_CHAR_PAIRKERNING(EE_CHAR_START+11)
constexpr TypedWhichId< SvxShadowedItem > EE_CHAR_SHADOW(EE_CHAR_START+9)
constexpr TypedWhichId< SvxULSpaceItem > EE_PARA_ULSPACE(EE_PARA_START+14)
constexpr TypedWhichId< SvxOverlineItem > EE_CHAR_OVERLINE(EE_CHAR_START+29)
constexpr TypedWhichId< SvxWeightItem > EE_CHAR_WEIGHT(EE_CHAR_START+4)
constexpr TypedWhichId< SvxLRSpaceItem > EE_PARA_LRSPACE(EE_PARA_START+13)
constexpr TypedWhichId< SvxColorItem > EE_CHAR_COLOR(EE_CHAR_START+0)
constexpr TypedWhichId< SvxWeightItem > EE_CHAR_WEIGHT_CTL(EE_CHAR_START+22)
constexpr TypedWhichId< SvxCrossedOutItem > EE_CHAR_STRIKEOUT(EE_CHAR_START+6)
constexpr TypedWhichId< SvxPostureItem > EE_CHAR_ITALIC(EE_CHAR_START+7)
constexpr TypedWhichId< SvxEmphasisMarkItem > EE_CHAR_EMPHASISMARK(EE_CHAR_START+25)
constexpr TypedWhichId< SvxFontHeightItem > EE_CHAR_FONTHEIGHT_CTL(EE_CHAR_START+20)
constexpr TypedWhichId< SvxWeightItem > EE_CHAR_WEIGHT_CJK(EE_CHAR_START+21)
constexpr TypedWhichId< SvxPostureItem > EE_CHAR_ITALIC_CJK(EE_CHAR_START+23)
constexpr TypedWhichId< SvxCaseMapItem > EE_CHAR_CASEMAP(EE_CHAR_START+30)
constexpr TypedWhichId< SvxFontItem > EE_CHAR_FONTINFO_CTL(EE_CHAR_START+18)
constexpr TypedWhichId< SvxColorItem > EE_CHAR_BKGCOLOR(EE_CHAR_START+32)
constexpr TypedWhichId< SvxPostureItem > EE_CHAR_ITALIC_CTL(EE_CHAR_START+24)
constexpr TypedWhichId< SvxNumBulletItem > EE_PARA_NUMBULLET(EE_PARA_START+5)
constexpr TypedWhichId< SvxCharReliefItem > EE_CHAR_RELIEF(EE_CHAR_START+26)
constexpr TypedWhichId< SvxFontHeightItem > EE_CHAR_FONTHEIGHT_CJK(EE_CHAR_START+19)
constexpr TypedWhichId< SvxFontItem > EE_CHAR_FONTINFO(EE_CHAR_START+1)
Reference< XInterface > xTarget
Reference< XSingleServiceFactory > xFactory
constexpr OUStringLiteral SD_LT_SEPARATOR
sal_Int32 nFirstLineOffset
void Clear(EHistoryType eHistory)
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)
Reference< XNameAccess > CreateTableDesignFamily()
OUString SdResId(TranslateId aId)
XColorItem makeSdrShadowColorItem(const Color &rTheColor)
SdrOnOffItem makeSdrShadowItem(bool bShadow)
SdrMetricItem makeSdrShadowXDistItem(tools::Long nDist)
SdrMetricItem makeSdrShadowYDistItem(tools::Long nDist)
SdrOnOffItem makeSdrTextAutoGrowHeightItem(bool bAuto)
std::map< const SdPage *, SdStyleFamilyRef > SdStyleFamilyMap
::cppu::ImplInheritanceHelper< SfxStyleSheetPool, css::lang::XServiceInfo, css::container::XIndexAccess, css::container::XNameAccess, css::lang::XComponent > SdStyleSheetPoolBase
std::vector< css::uno::Reference< css::style::XStyle > > XStyleVector
std::vector< rtl::Reference< SdStyleSheet > > SdStyleSheetVector
std::vector< StyleSheetCopyResult > StyleSheetCopyResultVector
constexpr OUStringLiteral STR_LAYOUT_TITLE
constexpr OUStringLiteral STR_LAYOUT_OUTLINE
constexpr OUStringLiteral STR_LAYOUT_SUBTITLE
constexpr OUStringLiteral STR_LAYOUT_BACKGROUNDOBJECTS
constexpr OUStringLiteral STR_LAYOUT_NOTES
constexpr OUStringLiteral STR_LAYOUT_BACKGROUND
virtual bool Check(const SfxStyleSheetBase &styleSheet)=0