LibreOffice Module sw (master) 1
|
SwDPage is Writer's draw page: derives from SdrPage, but has a reference to the Writer document via SwDrawModel. More...
#include <dpage.hxx>
Public Member Functions | |
SwDPage (SwDrawModel &rNewModel, bool bMasterPage) | |
virtual | ~SwDPage () override |
virtual rtl::Reference< SdrPage > | CloneSdrPage (SdrModel &rTargetModel) const override |
virtual rtl::Reference< SdrObject > | ReplaceObject (SdrObject *pNewObj, size_t nObjNum) override |
virtual const SdrPageGridFrameList * | GetGridFrameList (const SdrPageView *pPV, const tools::Rectangle *pRect) const override |
bool | RequestHelp (vcl::Window *pWindow, SdrView const *pView, const HelpEvent &rEvt) |
virtual css::uno::Reference< css::uno::XInterface > | createUnoPage () override |
Public Member Functions inherited from FmFormPage | |
FmFormPage (FmFormModel &rModel, bool bMasterPage=false) | |
virtual | ~FmFormPage () override |
virtual rtl::Reference< SdrPage > | CloneSdrPage (SdrModel &rTargetModel) const override |
virtual void | InsertObject (SdrObject *pObj, size_t nPos=SAL_MAX_SIZE) override |
virtual rtl::Reference< SdrObject > | RemoveObject (size_t nObjNum) override |
const css::uno::Reference< css::form::XForms > & | GetForms (bool _bForceCreate=true) const |
FmFormPageImpl & | GetImpl () const |
const OUString & | GetName () const |
void | SetName (const OUString &rName) |
Public Member Functions inherited from SdrPage | |
void | AddPageUser (sdr::PageUser &rNewUser) |
void | RemovePageUser (sdr::PageUser &rOldUser) |
SdrModel & | getSdrModelFromSdrPage () const |
const sdr::contact::ViewContact & | GetViewContact () const |
sdr::contact::ViewContact & | GetViewContact () |
void | ActionChanged () |
SdrPageProperties & | getSdrPageProperties () |
const SdrPageProperties & | getSdrPageProperties () const |
const SdrPageProperties * | getCorrectSdrPageProperties () const |
SdrPage (SdrModel &rModel, bool bMasterPage=false) | |
virtual | ~SdrPage () override |
virtual rtl::Reference< SdrPage > | CloneSdrPage (SdrModel &rTargetModel) const |
bool | IsMasterPage () const |
void | SetInserted (bool bNew=true) |
bool | IsInserted () const |
void | SetChanged () |
virtual SdrPage * | getSdrPageFromSdrObjList () const override |
void | SetPageNum (sal_uInt16 nNew) |
sal_uInt16 | GetPageNum () const |
void | setPageBorderOnlyLeftRight (bool bNew) |
bool | getPageBorderOnlyLeftRight () const |
virtual void | SetSize (const Size &aSiz) |
Size | GetSize () const |
virtual void | SetOrientation (Orientation eOri) |
virtual Orientation | GetOrientation () const |
tools::Long | GetWidth () const |
tools::Long | GetHeight () const |
virtual void | SetBorder (sal_Int32 nLft, sal_Int32 nUpp, sal_Int32 nRgt, sal_Int32 Lwr) |
virtual void | SetLeftBorder (sal_Int32 nBorder) |
virtual void | SetUpperBorder (sal_Int32 nBorder) |
virtual void | SetRightBorder (sal_Int32 nBorder) |
virtual void | SetLowerBorder (sal_Int32 nBorder) |
sal_Int32 | GetLeftBorder () const |
sal_Int32 | GetUpperBorder () const |
sal_Int32 | GetRightBorder () const |
sal_Int32 | GetLowerBorder () const |
void | SetBackgroundFullSize (bool bIn) |
bool | IsBackgroundFullSize () const |
bool | TRG_HasMasterPage () const |
void | TRG_SetMasterPage (SdrPage &rNew) |
void | TRG_ClearMasterPage () |
SdrPage & | TRG_GetMasterPage () const |
const SdrLayerIDSet & | TRG_GetMasterPageVisibleLayers () const |
void | TRG_SetMasterPageVisibleLayers (const SdrLayerIDSet &rNew) |
sdr::contact::ViewContact & | TRG_GetMasterPageDescriptorViewContact () const |
void | MakePageObjectsNamesUnique () |
const SdrLayerAdmin & | GetLayerAdmin () const |
SdrLayerAdmin & | GetLayerAdmin () |
virtual OUString | GetLayoutName () const |
virtual const SdrPageGridFrameList * | GetGridFrameList (const SdrPageView *pPV, const tools::Rectangle *pRect) const |
css::uno::Reference< css::uno::XInterface > const & | getUnoPage () |
virtual SfxStyleSheet * | GetTextStyleSheetForObject (SdrObject *pObj) const |
Color | GetPageBackgroundColor () const |
Color | GetPageBackgroundColor (SdrPageView const *pView, bool bScreenDisplay=true) const |
virtual bool | checkVisibility (const sdr::contact::ViewObjectContact &rOriginal, const sdr::contact::DisplayInfo &rDisplayInfo, bool bEdit) |
void | dumpAsXml (xmlTextWriterPtr pWriter) const override |
Public Member Functions inherited from SdrObjList | |
virtual SdrPage * | getSdrPageFromSdrObjList () const |
virtual SdrObject * | getSdrObjectFromSdrObjList () const |
void | CopyObjects (const SdrObjList &rSrcList) |
void | ClearSdrObjList () |
void | RecalcObjOrdNums () |
bool | IsObjOrdNumsDirty () const |
virtual void | NbcInsertObject (SdrObject *pObj, size_t nPos=SAL_MAX_SIZE) |
virtual void | InsertObject (SdrObject *pObj, size_t nPos=SAL_MAX_SIZE) |
void | sort (std::vector< sal_Int32 > &sortOrder) |
void | InsertObjectThenMakeNameUnique (SdrObject *pObj) |
void | InsertObjectThenMakeNameUnique (SdrObject *pObj, std::unordered_set< rtl::OUString > &rNameSet, size_t nPos=SAL_MAX_SIZE) |
virtual rtl::Reference< SdrObject > | NbcRemoveObject (size_t nObjNum) |
virtual rtl::Reference< SdrObject > | RemoveObject (size_t nObjNum) |
virtual rtl::Reference< SdrObject > | ReplaceObject (SdrObject *pNewObj, size_t nObjNum) |
virtual SdrObject * | SetObjectOrdNum (size_t nOldObjNum, size_t nNewObjNum) |
void | SetExistingObjectOrdNum (SdrObject *pExistingObj, size_t nNewObjNum) |
void | SetSdrObjListRectsDirty () |
const tools::Rectangle & | GetAllObjSnapRect () const |
const tools::Rectangle & | GetAllObjBoundRect () const |
void | NbcReformatAllTextObjects () |
void | ReformatAllTextObjects () |
void | ReformatAllEdgeObjects () |
void | BurnInStyleSheetAttributes () |
size_t | GetObjCount () const |
SdrObject * | GetObj (size_t nNum) const |
SdrObject * | GetObjByName (std::u16string_view sName) const |
virtual bool | IsReadOnly () const |
void | FlattenGroups () |
void | UnGroupObj (size_t nObjNum) |
bool | HasObjectNavigationOrder () const |
void | SetObjectNavigationPosition (SdrObject &rObject, const sal_uInt32 nNewNavigationPosition) |
SdrObject * | GetObjectForNavigationPosition (const sal_uInt32 nNavigationPosition) const |
void | ClearObjectNavigationOrder () |
bool | RecalcNavigationPositions () |
void | SetNavigationOrder (const css::uno::Reference< css::container::XIndexAccess > &rxOrder) |
virtual void | dumpAsXml (xmlTextWriterPtr pWriter) const |
Public Member Functions inherited from SdrObjUserCall | |
virtual | ~SdrObjUserCall () |
virtual void | Changed (const SdrObject &rObj, SdrUserCallType eType, const tools::Rectangle &rOldBoundRect) |
virtual void const * | GetPDFAnchorStructureElementKey (SdrObject const &rObj) |
Private Member Functions | |
SwDPage & | operator= (const SwDPage &)=delete |
SwDPage (const SwDPage &)=delete | |
void | lateInit (const SwDPage &rSrcPage) |
Private Attributes | |
std::unique_ptr< SdrPageGridFrameList > | m_pGridLst |
SwDoc * | m_pDoc |
Additional Inherited Members | |
Static Public Member Functions inherited from FmFormPage | |
static bool | RequestHelp (vcl::Window *pWin, SdrView const *pView, const HelpEvent &rEvt) |
Protected Member Functions inherited from FmFormPage | |
void | lateInit (const FmFormPage &rPage) |
Protected Member Functions inherited from SdrPage | |
std::unique_ptr< sdr::contact::ViewContact > | CreateObjectSpecificViewContact () |
void | SetUnoPage (css::uno::Reference< css::drawing::XDrawPage > const &) |
virtual css::uno::Reference< css::uno::XInterface > | createUnoPage () |
void | lateInit (const SdrPage &rSrcPage) |
void | TRG_ImpMasterPageRemoved (const SdrPage &rRemovedPage) |
Protected Member Functions inherited from SdrObjList | |
void | RecalcRects () |
SdrObjList () | |
virtual | ~SdrObjList () |
Protected Attributes inherited from SdrPage | |
std::unique_ptr< sdr::MasterPageDescriptor > | mpMasterPageDescriptor |
sal_uInt16 | nPageNum |
bool | mbMaster |
bool | mbInserted |
bool | mbObjectsNotPersistent |
bool | mbPageBorderOnlyLeftRight |
SwDPage is Writer's draw page: derives from SdrPage, but has a reference to the Writer document via SwDrawModel.
One Writer document has 1 draw page, i.e. all Writer pages share the same draw page.
|
privatedelete |
Referenced by CloneSdrPage().
|
explicit |
|
overridevirtual |
Reimplemented from FmFormPage.
Definition at line 70 of file dpage.cxx.
References SdrPage::IsMasterPage(), and SwDPage().
|
overridevirtual |
Reimplemented from SdrPage.
Definition at line 247 of file dpage.cxx.
References SfxObjectShell::GetBaseModel(), SwDoc::GetDocShell(), m_pDoc, and xModel.
|
overridevirtual |
Reimplemented from SdrPage.
Definition at line 101 of file dpage.cxx.
References SwViewShellImp::GetFirstVisPage(), SwFrameAreaDefinition::getFrameArea(), SwViewShell::GetLayout(), SwFrame::GetNext(), SwViewShell::GetOut(), sw::Ring< value_type >::GetRingContainer(), SdrPage::getSdrModelFromSdrPage(), SwViewShell::Imp(), InsertGridFrame(), SwLayoutFrame::Lower(), m_pGridLst, SwRect::Overlaps(), and SwViewShell::VisArea().
|
private |
Definition at line 58 of file dpage.cxx.
References i, FmFormPage::lateInit(), and m_pGridLst.
|
overridevirtual |
Reimplemented from SdrObjList.
Definition at line 81 of file dpage.cxx.
References GetFormat(), SdrObjList::GetObj(), GetUserCall(), SdrObjList::ReplaceObject(), and RES_DRAWFRMFMT().
bool SwDPage::RequestHelp | ( | vcl::Window * | pWindow, |
SdrView const * | pView, | ||
const HelpEvent & | rEvt | ||
) |
Definition at line 145 of file dpage.cxx.
References tools::Rectangle::BottomRight(), IMapObject::GetAltText(), SwDoc::GetDocShell(), SwVirtFlyDrawObj::GetFlyFrame(), SwFlyFrame::GetFormat(), SwFrameAreaDefinition::getFrameArea(), SwFrameFormat::GetIMapObject(), SdrObject::GetLogicRect(), SwFormatURL::GetMap(), HelpEvent::GetMode(), HelpEvent::GetMousePosPixel(), SwFlyFrameFormat::GetObjTooltip(), SvxURLField::GetURL(), IMapObject::GetURL(), SwFormatURL::GetURL(), SwFormat::GetURL(), SfxHelp::GetURLHelpText(), Point::getX(), Point::getY(), SfxObjectShell::IsReadOnly(), SwFormatURL::IsServerMap(), vcl::Window::LogicToPixel(), m_pDoc, SdrViewEvent::meEvent, MOUSE_LEFT, SdrViewEvent::mpObj, SdrViewEvent::mpURLField, vcl::Window::OutputToScreenPixel(), SdrView::PickAnything(), SdrMarkView::PickObj(), vcl::Window::PixelToLogic(), SwRect::Pos(), URIHelper::removePassword(), FmFormPage::RequestHelp(), vcl::Window::ScreenToOutputPixel(), Help::ShowBalloon(), Help::ShowQuickHelp(), SwRect::SVRect(), tools::Rectangle::TopLeft(), INetURLObject::Unambiguous, and INetURLObject::WasEncoded.
Referenced by SwEditWin::RequestHelp().
|
private |
Definition at line 39 of file dpage.hxx.
Referenced by createUnoPage(), and RequestHelp().
|
private |
Definition at line 38 of file dpage.hxx.
Referenced by GetGridFrameList(), and lateInit().