diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2024-06-05 11:08:56 +0900 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2024-06-05 08:36:40 +0200 |
commit | bd7638485220f17472157a02608e1080c25376cc (patch) | |
tree | a615aac390eb8f6cfe44466c993d18c71c655ee1 /sc/source | |
parent | b4f416abc245ae63c164d51ee9fd4d4c849e0411 (diff) |
annot: improve PDF annotation export and clean-up PDFNote class
Add support for exporting more PDF annotation types and props.
Prefix member variables in PDFNote class, extract it out of
pdfwriter.hxx file into it's own header file.
Change-Id: I99fb4cbb0c68fcec6585c9c21d81daaef26344cc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168418
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/ui/view/output.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sc/source/ui/view/output.cxx b/sc/source/ui/view/output.cxx index 797f58ba4712..9c545e588bed 100644 --- a/sc/source/ui/view/output.cxx +++ b/sc/source/ui/view/output.cxx @@ -35,6 +35,7 @@ #include <vcl/lineinfo.hxx> #include <vcl/gradient.hxx> #include <vcl/settings.hxx> +#include <vcl/pdf/PDFNote.hxx> #include <svx/unoapi.hxx> #include <sal/log.hxx> #include <comphelper/lok.hxx> @@ -2668,15 +2669,15 @@ void ScOutputData::AddPDFNotes() { tools::Rectangle aNoteRect( nMarkX, nPosY, nMarkX+nNoteWidth*nLayoutSign, nPosY+nNoteHeight ); - vcl::PDFNote aNote; + vcl::pdf::PDFNote aNote; // Note title is the cell address (as on printed note pages) ScAddress aAddress( nMergeX, nMergeY, nTab ); - aNote.Title = aAddress.Format(ScRefFlags::VALID, mpDoc, mpDoc->GetAddressConvention()); + aNote.maTitle = aAddress.Format(ScRefFlags::VALID, mpDoc, mpDoc->GetAddressConvention()); // Content has to be a simple string without line breaks OUString aContent = pNote->GetText(); - aNote.Contents = aContent.replaceAll("\n", " "); + aNote.maContents = aContent.replaceAll("\n", " "); pPDFData->CreateNote( aNoteRect, aNote ); } |