LibreOffice Module sfx2 (master) 1
|
#include <SfxRedactionHelper.hxx>
Static Public Member Functions | |
static bool | isRedactMode (const SfxRequest &rReq) |
Checks to see if the request has a parameter of IsRedactMode:bool=true. More... | |
static OUString | getStringParam (const SfxRequest &rReq, sal_uInt16 nParamId) |
static void | getPageMetaFilesFromDoc (std::vector< GDIMetaFile > &aMetaFiles, std::vector<::Size > &aPageSizes, sal_Int32 nPages, DocumentToGraphicRenderer &aRenderer) |
static void | addPagesToDraw (const uno::Reference< XComponent > &xComponent, sal_Int32 nPages, const std::vector< GDIMetaFile > &aMetaFiles, const std::vector<::Size > &aPageSizes, const PageMargins &aPageMargins, const std::vector< std::pair< RedactionTarget, OUString > > &r_aTableTargets, bool bIsAutoRedact) |
static void | showRedactionToolbar (const SfxViewFrame *pViewFrame) |
static PageMargins | getPageMarginsForWriter (const css::uno::Reference< css::frame::XModel > &xModel) |
static PageMargins | getPageMarginsForCalc (const css::uno::Reference< css::frame::XModel > &xModel) |
static void | searchInMetaFile (const RedactionTarget &rRedactionTarget, const GDIMetaFile &rMtf, std::vector< tools::Rectangle > &aRedactionRectangles, const uno::Reference< XComponent > &xComponent) |
static void | addRedactionRectToPage (const uno::Reference< XComponent > &xComponent, const uno::Reference< drawing::XDrawPage > &xPage, const std::vector< tools::Rectangle > &aNewRectangles) |
static void | autoRedactPage (const RedactionTarget &rRedactionTarget, const GDIMetaFile &rGDIMetaFile, const uno::Reference< drawing::XDrawPage > &xPage, const uno::Reference< XComponent > &xComponent) |
static void | fillSearchOptions (i18nutil::SearchOptions2 &rSearchOpt, const RedactionTarget &rTarget) |
Fill the search options based on the given redaction target. More... | |
Static Private Attributes | |
static constexpr std::u16string_view | m_aPredefinedTargets [6] |
Definition at line 54 of file SfxRedactionHelper.hxx.
|
static |
Definition at line 213 of file SfxRedactionHelper.cxx.
References autoRedactPage(), GDIMetaFile::GetPrefSize(), Graphic::GetXGraphic(), Height, Size::Height(), Width, Size::Width(), and xFactory.
Referenced by SfxObjectShell::ExecFile_Impl().
|
static |
Definition at line 475 of file SfxRedactionHelper.cxx.
References COL_GRAY7(), and xFactory.
Referenced by autoRedactPage().
|
static |
Definition at line 508 of file SfxRedactionHelper.cxx.
References addRedactionRectToPage(), RedactionTarget::sContent, and searchInMetaFile().
Referenced by addPagesToDraw().
|
static |
Fill the search options based on the given redaction target.
Definition at line 529 of file SfxRedactionHelper.cxx.
References i18nutil::SearchOptions2::AlgorithmType2, GetAppLanguageTag(), LanguageTag::getLocale(), o3tl::getToken(), i18nutil::SearchOptions2::Locale, m_aPredefinedTargets, REDACTION_TARGET_PREDEFINED, REDACTION_TARGET_REGEX, i18nutil::SearchOptions2::replaceString, rTarget, i18nutil::SearchOptions2::searchFlag, i18nutil::SearchOptions2::searchString, o3tl::toUInt32(), and i18nutil::SearchOptions2::transliterateFlags.
Referenced by searchInMetaFile().
|
static |
Definition at line 358 of file SfxRedactionHelper.cxx.
References PageMargins::nBottom, PageMargins::nLeft, PageMargins::nRight, PageMargins::nTop, SAL_WARN, and xModel.
Referenced by SfxObjectShell::ExecFile_Impl().
|
static |
Definition at line 301 of file SfxRedactionHelper.cxx.
References Any, PageMargins::nBottom, PageMargins::nLeft, PageMargins::nRight, PageMargins::nTop, SAL_WARN, and xModel.
Referenced by SfxObjectShell::ExecFile_Impl().
|
static |
Definition at line 180 of file SfxRedactionHelper.cxx.
References COL_TRANSPARENT(), DocumentToGraphicRenderer::getDocumentSizeIn100mm(), DocumentToGraphicRenderer::getDocumentSizeInPixels(), Graphic::GetGDIMetaFile(), DocumentToGraphicRenderer::renderToGraphic(), and MapMode::SetMapUnit().
Referenced by SfxObjectShell::ExecFile_Impl().
|
static |
Definition at line 77 of file SfxRedactionHelper.cxx.
References SfxRequest::GetArg(), SfxRequest::GetArgs(), and CntUnencodedStringItem::GetValue().
Referenced by SfxObjectShell::ExecFile_Impl().
|
static |
Checks to see if the request has a parameter of IsRedactMode:bool=true.
Definition at line 64 of file SfxRedactionHelper.cxx.
References SfxRequest::GetArg(), SfxRequest::GetArgs(), and SfxBoolItem::GetValue().
Referenced by SfxObjectShell::ExecFile_Impl().
|
static |
Definition at line 414 of file SfxRedactionHelper.cxx.
References tools::Rectangle::Bottom(), fillSearchOptions(), SfxObjectShell::GetDocumentRefDev(), MetaFontAction::GetFont(), vcl::Font::GetFontSize(), Size::getHeight(), SfxObjectShell::GetShellFromComponent(), MetaTextArrayAction::GetText(), MetaAction::GetType(), tools::Rectangle::IsEmpty(), utl::TextSearch::SearchForward(), and tools::Rectangle::SetTop().
Referenced by autoRedactPage().
|
static |
Definition at line 271 of file SfxRedactionHelper.cxx.
References Any, SfxViewFrame::GetFrame(), SfxFrame::GetFrameInterface(), TOOLS_WARN_EXCEPTION, and xFrame.
Referenced by SfxObjectShell::ExecFile_Impl().
|
staticconstexprprivate |
Definition at line 130 of file SfxRedactionHelper.hxx.
Referenced by fillSearchOptions().