37 SwXMLFontAutoStylePool_Impl(
SwXMLExport& rExport,
bool bFontEmbedding);
42SwXMLFontAutoStylePool_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 );
@ EMBED_COMPLEX_SCRIPT_FONTS
@ EMBED_LATIN_SCRIPT_FONTS
@ EMBED_ASIAN_SCRIPT_FONTS
virtual bool get(DocumentSettingId id) const =0
Return the specified document setting.
virtual void set(DocumentSettingId id, bool value)=0
Set the specified document setting.
Item2Range GetItemSurrogates(sal_uInt16 nWhich) const
const SfxPoolItem & GetDefaultItem(sal_uInt16 nWhich) const
SvXMLExportFlags getExportFlags() const
IDocumentSettingAccess const & getIDocumentSettingAccess() const
const SwAttrPool & GetAttrPool() const
const SwDoc * getDoc() const
virtual XMLFontAutoStylePool * CreateFontAutoStylePool() override
const SwDoc * getDoc() const
virtual void NotifyContainsEmbeddedFont() override
constexpr TypedWhichId< SvxFontItem > RES_CHRATR_CJK_FONT(22)
constexpr TypedWhichId< SvxFontItem > RES_CHRATR_CTL_FONT(27)
constexpr TypedWhichId< SvxFontItem > RES_CHRATR_FONT(7)
css::uno::Reference< css::linguistic2::XProofreadingIterator > get(css::uno::Reference< css::uno::XComponentContext > const &context)
static void Add(SwRegionRects &rRegion, const SwRect &rRect)