25 std::unique_ptr<vcl::pdf::PDFiumPage>
mpPage;
26 std::unique_ptr<vcl::pdf::PDFiumTextPage>
mpTextPage;
30 sal_Int32 mnPageIndex;
32 OUString maSearchString;
35 SearchContext(std::unique_ptr<vcl::pdf::PDFiumDocument>& pPdfDocument, sal_Int32 nPageIndex)
37 , mnPageIndex(nPageIndex)
69 if (rSearchString == maSearchString)
81 maSearchString = rSearchString;
95 if (mnCurrentIndex >= 0)
96 nStartIndex = mnCurrentIndex;
117 mnCurrentIndex =
index();
127 mnCurrentIndex =
index();
147 std::vector<basegfx::B2DRectangle> getTextRectangles()
149 std::vector<basegfx::B2DRectangle> aRectangles;
162 double fPageHeight = getPageSize().getHeight();
169 aRectangles.push_back(aRectangle);
219 return mpImplementation->mpSearchContext->initialize(rSearchString, rOptions);
224 return mpImplementation->mpSearchContext->initialize(rSearchString, rOptions);
235 rData->getBinaryDataContainer().getData(), rData->getBinaryDataContainer().getSize(),
263 sal_Int32 nPageIndex = std::max(rData->getPageIndex(), sal_Int32(0));
304 return std::vector<basegfx::B2DRectangle>();
FPDF_DOCUMENT mpPdfDocument
FPDF_SCHHANDLE mpSearchHandle
constexpr auto convertPointToMm100(N n)
const std::shared_ptr< VectorGraphicData > & getVectorGraphicData() const
std::shared_ptr< vcl::pdf::PDFium > mpPDFium
std::unique_ptr< vcl::pdf::PDFiumDocument > mpPdfDocument
std::unique_ptr< SearchContext > mpSearchContext
std::vector< basegfx::B2DRectangle > getTextRectangles()
basegfx::B2DSize pageSize()
std::unique_ptr< Implementation > mpImplementation
bool search(OUString const &rSearchString, VectorGraphicSearchOptions const &rOptions=VectorGraphicSearchOptions())
bool searchPDF(std::shared_ptr< VectorGraphicData > const &rData)
VectorGraphicSearch(Graphic aGraphic)
std::unique_ptr< sal_Int32[]> pData
css::uno::Reference< css::linguistic2::XProofreadingIterator > get(css::uno::Reference< css::uno::XComponentContext > const &context)
SearchStartPosition meStartPosition