|
LibreOffice Module sw (master) 1
|
#include <hintids.hxx>#include <tools/urlobj.hxx>#include <vcl/imapobj.hxx>#include <vcl/imap.hxx>#include <svl/urihelper.hxx>#include <sfx2/progress.hxx>#include <sfx2/printer.hxx>#include <editeng/udlnitem.hxx>#include <editeng/colritem.hxx>#include <editeng/boxitem.hxx>#include <fmturl.hxx>#include <fmtsrnd.hxx>#include <frmfmt.hxx>#include <swrect.hxx>#include <fesh.hxx>#include <doc.hxx>#include <IDocumentSettingAccess.hxx>#include <IDocumentStylePoolAccess.hxx>#include <IDocumentDeviceAccess.hxx>#include <IDocumentLayoutAccess.hxx>#include <flyfrm.hxx>#include <flyfrms.hxx>#include <frmtool.hxx>#include <viewopt.hxx>#include <viewimp.hxx>#include <pam.hxx>#include <hints.hxx>#include <rootfrm.hxx>#include <dflyobj.hxx>#include <pagefrm.hxx>#include <notxtfrm.hxx>#include <grfatr.hxx>#include <charatr.hxx>#include <ndnotxt.hxx>#include <ndgrf.hxx>#include <ndole.hxx>#include <swregion.hxx>#include <poolfmt.hxx>#include <strings.hrc>#include <accessibilityoptions.hxx>#include <com/sun/star/embed/EmbedMisc.hpp>#include <com/sun/star/embed/EmbedStates.hpp>#include <com/sun/star/embed/XEmbeddedObject.hpp>#include <svtools/embedhlp.hxx>#include <dview.hxx>#include <basegfx/matrix/b2dhommatrix.hxx>#include <drawinglayer/processor2d/baseprocessor2d.hxx>#include <drawinglayer/primitive2d/graphicprimitive2d.hxx>#include <basegfx/matrix/b2dhommatrixtools.hxx>#include <basegfx/utils/b2dclipstate.hxx>#include <drawinglayer/processor2d/processor2dtools.hxx>#include <txtfly.hxx>#include <drawinglayer/primitive2d/maskprimitive2d.hxx>#include <drawinglayer/primitive2d/objectinfoprimitive2d.hxx>#include <osl/diagnose.h>#include <svx/sdrpagewindow.hxx>#include <svx/svdpagv.hxx>#include <svx/sdr/contact/viewcontact.hxx>#include <svx/sdr/contact/viewobjectcontact.hxx>#include <svx/sdr/contact/objectcontact.hxx>#include <svx/sdr/contact/displayinfo.hxx>Go to the source code of this file.
Functions | |
| static bool | GetRealURL (const SwGrfNode &rNd, OUString &rText) |
| static void | lcl_PaintReplacement (const SwRect &rRect, const OUString &rText, const SwViewShell &rSh, const SwNoTextFrame *pFrame, bool bDefect) |
| void | SetOutDev (SwViewShell *pSh, OutputDevice *pOut) |
| static void | lcl_ClearArea (const SwFrame &rFrame, vcl::RenderContext &rOut, const SwRect &rPtArea, const SwRect &rGrfArea) |
| static void | lcl_CalcRect (Point &rPt, Size &rDim, MirrorGraph nMirror) |
| Calculate the position and the size of the graphic in the Frame, corresponding to the current graphic attributes. More... | |
| static void | lcl_correctlyAlignRect (SwRect &rAlignedGrfArea, const SwRect &rInArea, vcl::RenderContext const *pOut) |
| static bool | paintUsingPrimitivesHelper (vcl::RenderContext &rOutputDevice, const drawinglayer::primitive2d::Primitive2DContainer &rSequence, const basegfx::B2DRange &rSourceRange, const basegfx::B2DRange &rTargetRange) |
| void | paintGraphicUsingPrimitivesHelper (vcl::RenderContext &rOutputDevice, GraphicObject const &rGrfObj, GraphicAttr const &rGraphicAttr, const basegfx::B2DHomMatrix &rGraphicTransform, const OUString &rName, const OUString &rTitle, const OUString &rDescription) |
| void | paintGraphicUsingPrimitivesHelper (vcl::RenderContext &rOutputDevice, drawinglayer::primitive2d::Primitive2DContainer &rContent, const basegfx::B2DHomMatrix &rGraphicTransform, const OUString &rName, const OUString &rTitle, const OUString &rDescription) |
|
static |
Definition at line 86 of file notxtfrm.cxx.
References SwGrfNode::GetFileFilterNms(), URIHelper::removePassword(), INetURLObject::Unambiguous, and INetURLObject::WasEncoded.
Referenced by SwNoTextFrame::ImplPaintPictureGraphic(), SwNoTextFrame::ImplPaintPictureReplacement(), and SwNoTextFrame::PaintSwFrame().
|
static |
Calculate the position and the size of the graphic in the Frame, corresponding to the current graphic attributes.
| Point | the position in the Frame (also returned) |
| Size | the graphic's size (also returned) |
| nMirror | the current mirror attribute |
Definition at line 331 of file notxtfrm.cxx.
References Both, Point::getX(), Point::getY(), Size::Height(), Horizontal, Size::setHeight(), Size::setWidth(), Point::setX(), Point::setY(), Vertical, and Size::Width().
Referenced by SwNoTextFrame::GetGrfArea().
|
static |
Definition at line 174 of file notxtfrm.cxx.
References DrawFillAttributes(), DrawGraphic(), OutputDevice::DrawRect(), vcl::FILLCOLOR, SwFrame::GetBackgroundBrush(), SwRootFrame::GetCurrShell(), SwViewShellImp::GetRetoucheColor(), SwFrame::getRootFrame(), SwViewShell::Imp(), vcl::LINECOLOR, OutputDevice::Pop(), OutputDevice::Push(), OutputDevice::SetFillColor(), and OutputDevice::SetLineColor().
Referenced by SwNoTextFrame::PaintSwFrame().
|
static |
Definition at line 844 of file notxtfrm.cxx.
References SwRect::AddBottom(), SwRect::AddLeft(), SwRect::AddRight(), SwRect::AddTop(), tools::Rectangle::Bottom(), tools::Rectangle::Left(), pOut, tools::Rectangle::Right(), SwRect::SVRect(), and tools::Rectangle::Top().
Referenced by SwNoTextFrame::PaintPicture().
|
static |
Definition at line 97 of file notxtfrm.cxx.
References COL_RED(), Graphic::DrawEx(), FAMILY_SWISS, SwFrame::FindFlyFrame(), SwFormat::GetColor(), SwViewShell::GetDoc(), SwFlyFrame::GetFormat(), IDocumentStylePoolAccess::GetFormatFromPool(), SwDoc::getIDocumentStylePoolAccess(), ImageMap::GetIMapObject(), ImageMap::GetIMapObjectCount(), SvxTextLineItem::GetLineStyle(), SwFormatURL::GetMap(), SwViewShell::GetOut(), SwFormat::GetUnderline(), IMapObject::GetURL(), SwFormatURL::GetURL(), SwFormat::GetURL(), SvxColorItem::GetValue(), i, SwDoc::IsVisitedURL(), LINESTYLE_NONE, SwRect::Pos(), RES_POOLCHR_INET_NORMAL, RES_POOLCHR_INET_VISIT, vcl::Font::SetColor(), vcl::Font::SetFamily(), vcl::Font::SetFamilyName(), vcl::Font::SetStyleName(), vcl::Font::SetTransparent(), vcl::Font::SetUnderline(), vcl::Font::SetWeight(), SwRect::SSize(), and WEIGHT_BOLD.
Referenced by SwNoTextFrame::ImplPaintPictureGraphic(), SwNoTextFrame::ImplPaintPictureReplacement(), and SwNoTextFrame::PaintSwFrame().
| void paintGraphicUsingPrimitivesHelper | ( | vcl::RenderContext & | rOutputDevice, |
| drawinglayer::primitive2d::Primitive2DContainer & | rContent, | ||
| const basegfx::B2DHomMatrix & | rGraphicTransform, | ||
| const OUString & | rName, | ||
| const OUString & | rTitle, | ||
| const OUString & | rDescription | ||
| ) |
Definition at line 945 of file notxtfrm.cxx.
References basegfx::B2DPolyPolygon::count(), vcl::Region::GetAsB2DPolyPolygon(), OutputDevice::GetClipRegion(), OutputDevice::IsClipRegion(), paintUsingPrimitivesHelper(), and basegfx::B2DRange::transform().
| void paintGraphicUsingPrimitivesHelper | ( | vcl::RenderContext & | rOutputDevice, |
| GraphicObject const & | rGrfObj, | ||
| GraphicAttr const & | rGraphicAttr, | ||
| const basegfx::B2DHomMatrix & | rGraphicTransform, | ||
| const OUString & | rName, | ||
| const OUString & | rTitle, | ||
| const OUString & | rDescription | ||
| ) |
Definition at line 915 of file notxtfrm.cxx.
References paintGraphicUsingPrimitivesHelper().
Referenced by SwNoTextFrame::ImplPaintPictureGraphic(), lcl_DrawGraphic(), and paintGraphicUsingPrimitivesHelper().
|
static |
Definition at line 873 of file notxtfrm.cxx.
References drawinglayer::processor2d::createProcessor2DFromOutputDevice(), basegfx::utils::createSourceRangeTargetRangeTransform(), basegfx::fTools::equalZero(), basegfx::Range2D< typename TYPE, typename TRAITS >::getHeight(), OutputDevice::GetViewTransformation(), basegfx::Range2D< typename TYPE, typename TRAITS >::getWidth(), drawinglayer::geometry::ViewInformation2D::setObjectTransformation(), drawinglayer::geometry::ViewInformation2D::setViewport(), and drawinglayer::geometry::ViewInformation2D::setViewTransformation().
Referenced by SwNoTextFrame::ImplPaintPictureBitmap(), and paintGraphicUsingPrimitivesHelper().
| void SetOutDev | ( | SwViewShell * | pSh, |
| OutputDevice * | pOut | ||
| ) |
Definition at line 169 of file notxtfrm.cxx.
Referenced by SwLayVout::Enter(), and SwLayVout::Flush_().