37 SwXMLFontAutoStylePool_Impl(
SwXMLExport& rExport,
bool bFontEmbedding);
42 SwXMLFontAutoStylePool_Impl::SwXMLFontAutoStylePool_Impl(
SwXMLExport& _rExport,
bool bFontEmbedding)
49 std::vector<const SvxFontItem *> aFonts;
50 for(sal_uInt16 nWhichId : aWhichIds)
54 aFonts.push_back(&rFont);
57 auto pFont =
static_cast<const SvxFontItem *
>(pItem);
58 aFonts.push_back(pFont);
62 std::sort(aFonts.begin(), aFonts.end(),
64 for (
const auto& pFont : aFonts)
66 Add(pFont->GetFamilyName(), pFont->GetStyleName(), pFont->GetFamily(), pFont->GetPitch(),
70 auto const & pDocument = _rExport.
getDoc();
81 bool blockFontEmbedding =
false;
87 blockFontEmbedding =
true;
89 blockFontEmbedding =
true;
90 return new SwXMLFontAutoStylePool_Impl( *
this, !blockFontEmbedding );
const SwDoc * getDoc() const
constexpr TypedWhichId< SvxFontItem > RES_CHRATR_CTL_FONT(27)
constexpr TypedWhichId< SvxFontItem > RES_CHRATR_FONT(7)
virtual void set(DocumentSettingId id, bool value)=0
Set the specified document setting.
const SwDoc * getDoc() const
const SfxPoolItem & GetDefaultItem(sal_uInt16 nWhich) const
virtual void NotifyContainsEmbeddedFont() override
IDocumentSettingAccess const & getIDocumentSettingAccess() const
constexpr TypedWhichId< SvxFontItem > RES_CHRATR_CJK_FONT(22)
Item2Range GetItemSurrogates(sal_uInt16 nWhich) const
virtual bool get(DocumentSettingId id) const =0
Return the specified document setting.
SvXMLExportFlags getExportFlags() const
virtual XMLFontAutoStylePool * CreateFontAutoStylePool() override
const SwAttrPool & GetAttrPool() const