diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2021-12-03 20:52:12 +0100 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2021-12-06 12:43:00 +0100 |
commit | 4c00e8fb10437fcaefe8635ef390b78376938d15 (patch) | |
tree | fd001904cf7640a13bd4a3ef3521f1c2db93fa4b /sc/inc | |
parent | 30d6787b98131fce5a280f005b75e9d496f21573 (diff) |
Add image preffered DPI document setting, use it in Writer, Impress
This adds a "image preferred DPI" document setting, which is used
as a suggestion of the DPI that an image should have in the
document. This is currently used when the image is inserted into
the document (Writer, Impress/Draw) to resize it to the preferred
DPI value.
Change-Id: I3ee9d409257e3c6aa2ead05144ecbba7b3b916f6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126334
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'sc/inc')
-rw-r--r-- | sc/inc/document.hxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sc/inc/document.hxx b/sc/inc/document.hxx index c6246aec96b1..e97ef8e1b7a7 100644 --- a/sc/inc/document.hxx +++ b/sc/inc/document.hxx @@ -557,6 +557,8 @@ private: bool mbEmbedFontScriptAsian : 1; bool mbEmbedFontScriptComplex : 1; + sal_Int32 mnImagenPreferredDPI; + std::unique_ptr<sc::IconSetBitmapMap> m_pIconSetBitmapMap; bool mbTrackFormulasPending : 1; @@ -582,6 +584,9 @@ public: void SetEmbedFontScriptAsian(bool bUse) { mbEmbedFontScriptAsian = bUse; } void SetEmbedFontScriptComplex(bool bUse) { mbEmbedFontScriptComplex = bUse; } + void SetImagePreferredDPI(sal_Int32 nValue) { mnImagenPreferredDPI = nValue; } + sal_Int32 GetImagePreferredDPI() { return mnImagenPreferredDPI; } + SC_DLLPUBLIC sal_uLong GetCellCount() const; // all cells SC_DLLPUBLIC sal_uLong GetFormulaGroupCount() const; // all cells sal_uLong GetCodeCount() const; // RPN-Code in formulas |