diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2020-02-07 20:42:58 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-02-12 13:11:28 +0100 |
commit | 1f625b3f74c6e6e5ef345a3e017061be918e443b (patch) | |
tree | 4182a64dd93a6449135ddd87ef6526567f6c7cdc /include/svx/sdr/contact | |
parent | 1b4f6c81de2af3b165594654966bcd5b62dc6081 (diff) |
move some svx/ headers inside the module
Change-Id: I8d9a50039a8139caebb2cfb83ca476d39432f255
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88238
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/svx/sdr/contact')
-rw-r--r-- | include/svx/sdr/contact/objectcontactofobjlistpainter.hxx | 115 | ||||
-rw-r--r-- | include/svx/sdr/contact/viewcontactofe3d.hxx | 98 | ||||
-rw-r--r-- | include/svx/sdr/contact/viewcontactofpageobj.hxx | 59 | ||||
-rw-r--r-- | include/svx/sdr/contact/viewcontactofsdrrectobj.hxx | 52 | ||||
-rw-r--r-- | include/svx/sdr/contact/viewcontactoftextobj.hxx | 41 | ||||
-rw-r--r-- | include/svx/sdr/contact/viewobjectcontactofpageobj.hxx | 53 |
6 files changed, 0 insertions, 418 deletions
diff --git a/include/svx/sdr/contact/objectcontactofobjlistpainter.hxx b/include/svx/sdr/contact/objectcontactofobjlistpainter.hxx deleted file mode 100644 index a7124bade869..000000000000 --- a/include/svx/sdr/contact/objectcontactofobjlistpainter.hxx +++ /dev/null @@ -1,115 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ - -#ifndef INCLUDED_SVX_SDR_CONTACT_OBJECTCONTACTOFOBJLISTPAINTER_HXX -#define INCLUDED_SVX_SDR_CONTACT_OBJECTCONTACTOFOBJLISTPAINTER_HXX - -#include <svx/sdr/contact/objectcontact.hxx> -#include <svx/svxdllapi.h> -#include <svx/svdpage.hxx> -#include <tools/weakbase.hxx> - -class SdrPage; -class SdrObject; - -namespace sdr { namespace contact { - -class SVXCORE_DLLPUBLIC ObjectContactPainter : public ObjectContact -{ -protected: - // Hierarchy access methods - virtual sal_uInt32 GetPaintObjectCount() const = 0; - virtual ViewContact& GetPaintObjectViewContact(sal_uInt32 nIndex) = 0; - -public: - // basic constructor/destructor - ObjectContactPainter(); - virtual ~ObjectContactPainter() override; -}; - -// typedef for transferring SdrObject -typedef ::std::vector< SdrObject* > SdrObjectVector; - -class SVXCORE_DLLPUBLIC ObjectContactOfObjListPainter final : public ObjectContactPainter -{ - // Target OutputDevice - OutputDevice& mrTargetOutputDevice; - - // Set StartPoint for next run, also given in constructor - SdrObjectVector maStartObjects; - - // the processed page which is the base e.g. for PageNumberFields - const SdrPage* mpProcessedPage; - - // Hierarchy access methods - virtual sal_uInt32 GetPaintObjectCount() const override; - virtual ViewContact& GetPaintObjectViewContact(sal_uInt32 nIndex) override; - -public: - // basic constructor/destructor - ObjectContactOfObjListPainter( - OutputDevice& rTargetDevice, - const SdrObjectVector& rObjects, - const SdrPage* pProcessedPage); - virtual ~ObjectContactOfObjListPainter() override; - - // Process the whole displaying - virtual void ProcessDisplay(DisplayInfo& rDisplayInfo) override; - - // recording MetaFile? Default is false - virtual bool isOutputToRecordingMetaFile() const override; - - // pdf export? Default is false - virtual bool isOutputToPDFFile() const override; - - virtual OutputDevice* TryToGetOutputDevice() const override; -}; - -class ObjectContactOfPagePainter : public ObjectContactPainter -{ - // the original ObjectContact this painter is working on - ObjectContact& mrOriginalObjectContact; - - // Set StartPoint for next run, also given in constructor - tools::WeakReference<SdrPage> mxStartPage; - -protected: - // Hierarchy access methods - virtual sal_uInt32 GetPaintObjectCount() const override; - virtual ViewContact& GetPaintObjectViewContact(sal_uInt32 nIndex) override; - -public: - // basic constructor - ObjectContactOfPagePainter(ObjectContact& rOriginalObjectContact); - virtual ~ObjectContactOfPagePainter() override; - - // set another page - void SetStartPage(const SdrPage* pPage); - const SdrPage* GetStartPage() const { return mxStartPage.get(); } - SdrPage* GetStartPage() { return mxStartPage.get(); } - - virtual OutputDevice* TryToGetOutputDevice() const override; -}; - -}} - - -#endif // INCLUDED_SVX_SDR_CONTACT_OBJECTCONTACTOFOBJLISTPAINTER_HXX - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/svx/sdr/contact/viewcontactofe3d.hxx b/include/svx/sdr/contact/viewcontactofe3d.hxx deleted file mode 100644 index d5931aeec66f..000000000000 --- a/include/svx/sdr/contact/viewcontactofe3d.hxx +++ /dev/null @@ -1,98 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ - -#ifndef INCLUDED_SVX_SDR_CONTACT_VIEWCONTACTOFE3D_HXX -#define INCLUDED_SVX_SDR_CONTACT_VIEWCONTACTOFE3D_HXX - -#include <svx/obj3d.hxx> -#include <svx/sdr/contact/viewcontactofsdrobj.hxx> -#include <drawinglayer/primitive3d/baseprimitive3d.hxx> - -namespace drawinglayer { namespace attribute { - class SdrLineAttribute; -}} - -namespace basegfx { - class BColor; - class B3DHomMatrix; -} - -namespace sdr { namespace contact { - -class ViewContactOfE3dScene; - -class ViewContactOfE3d : public ViewContactOfSdrObj -{ -protected: - // Create an Object-Specific ViewObjectContact, set ViewContact and - // ObjectContact. Always needs to return something. - virtual ViewObjectContact& CreateObjectSpecificViewObjectContact(ObjectContact& rObjectContact) override; - -public: - // basic constructor, used from E3dObject. - explicit ViewContactOfE3d(E3dObject& rObj); - virtual ~ViewContactOfE3d() override; - - // access to E3dObject - const E3dObject& GetE3dObject() const - { - return static_cast<const E3dObject&>(GetSdrObject()); - } - - // public helpers - drawinglayer::primitive2d::Primitive2DContainer impCreateWithGivenPrimitive3DContainer( - const drawinglayer::primitive3d::Primitive3DContainer& rxContent3D) const; - - - // primitive stuff - - // Primitive3DContainer of the ViewContact. This contains all necessary information - // for the graphical visualisation and needs to be supported by all 3D VCs which - // can be visualized. It does NOT contain the object transformation to be able to - // buffer for all possible usages - drawinglayer::primitive3d::Primitive3DContainer mxViewIndependentPrimitive3DContainer; - -protected: - // This method is responsible for creating the graphical visualisation data which is - // stored in mxViewIndependentPrimitive3DContainer, but without object transformation - virtual drawinglayer::primitive3d::Primitive3DContainer createViewIndependentPrimitive3DContainer() const = 0; - - // This method is responsible for creating the graphical visualisation data derived ONLY from - // the model data. The default implementation will try to create a 3D to 2D embedding (will work - // when scene is known) which can then be used for 2D processing concerning ranges - virtual drawinglayer::primitive2d::Primitive2DContainer createViewIndependentPrimitive2DSequence() const override; - -public: - // access to the local primitive without the object's local 3D transform. This is e.g. needed - // to get the not-yet transformed BoundVolume for e.g. interactions - drawinglayer::primitive3d::Primitive3DContainer const & getVIP3DSWithoutObjectTransform() const; - - // access to the local primitive. This will ensure that the list is - // current in comparing the local list content with a fresh created incarnation. It will - // use getVIP3DSWithoutObjectTransform and embed to 3d transform primitive when object's - // local 3d transform is used - drawinglayer::primitive3d::Primitive3DContainer getViewIndependentPrimitive3DContainer() const; -}; - -}} - - -#endif // INCLUDED_SVX_SDR_CONTACT_VIEWCONTACTOFE3D_HXX - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/svx/sdr/contact/viewcontactofpageobj.hxx b/include/svx/sdr/contact/viewcontactofpageobj.hxx deleted file mode 100644 index a339f1bcecdd..000000000000 --- a/include/svx/sdr/contact/viewcontactofpageobj.hxx +++ /dev/null @@ -1,59 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ - -#ifndef INCLUDED_SVX_SDR_CONTACT_VIEWCONTACTOFPAGEOBJ_HXX -#define INCLUDED_SVX_SDR_CONTACT_VIEWCONTACTOFPAGEOBJ_HXX - -#include <svx/sdr/contact/viewcontactofsdrobj.hxx> -#include <svx/svxdllapi.h> -#include <svx/svdopage.hxx> - -class SdrPage; - -namespace sdr { namespace contact { - -class ViewContactOfPageObj final : public ViewContactOfSdrObj -{ - // Create an Object-Specific ViewObjectContact, set ViewContact and - // ObjectContact. Always needs to return something. - virtual ViewObjectContact& CreateObjectSpecificViewObjectContact(ObjectContact& rObjectContact) override; - - // create graphical visualisation data - virtual drawinglayer::primitive2d::Primitive2DContainer createViewIndependentPrimitive2DSequence() const override; -public: - // basic constructor, used from SdrObject. - explicit ViewContactOfPageObj(SdrPageObj& rPageObj); - virtual ~ViewContactOfPageObj() override; - - // #WIP# React on changes of the object of this ViewContact - virtual void ActionChanged() override; - - // access to SdrObject - const SdrPageObj& GetPageObj() const - { - return static_cast<const SdrPageObj&>(GetSdrObject()); - } -}; - -}} - - -#endif // INCLUDED_SVX_SDR_CONTACT_VIEWCONTACTOFPAGEOBJ_HXX - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/svx/sdr/contact/viewcontactofsdrrectobj.hxx b/include/svx/sdr/contact/viewcontactofsdrrectobj.hxx deleted file mode 100644 index e067fce70bda..000000000000 --- a/include/svx/sdr/contact/viewcontactofsdrrectobj.hxx +++ /dev/null @@ -1,52 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ - -#ifndef INCLUDED_SVX_SDR_CONTACT_VIEWCONTACTOFSDRRECTOBJ_HXX -#define INCLUDED_SVX_SDR_CONTACT_VIEWCONTACTOFSDRRECTOBJ_HXX - -#include <svx/sdr/contact/viewcontactoftextobj.hxx> -#include <svx/svdorect.hxx> - -namespace sdr { namespace contact { - -class ViewContactOfSdrRectObj : public ViewContactOfTextObj -{ -protected: - // internal access to SdrRectObj - const SdrRectObj& GetRectObj() const - { - return static_cast<const SdrRectObj&>(GetSdrObject()); - } - -public: - // basic constructor, used from SdrObject. - explicit ViewContactOfSdrRectObj(SdrRectObj& rTextObj); - virtual ~ViewContactOfSdrRectObj() override; - -protected: - // This method is responsible for creating the graphical visualisation data - // ONLY based on model data - virtual drawinglayer::primitive2d::Primitive2DContainer createViewIndependentPrimitive2DSequence() const override; -}; - -}} - -#endif // INCLUDED_SVX_SDR_CONTACT_VIEWCONTACTOFSDRRECTOBJ_HXX - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/svx/sdr/contact/viewcontactoftextobj.hxx b/include/svx/sdr/contact/viewcontactoftextobj.hxx deleted file mode 100644 index a81c4893bea2..000000000000 --- a/include/svx/sdr/contact/viewcontactoftextobj.hxx +++ /dev/null @@ -1,41 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ - -#ifndef INCLUDED_SVX_SDR_CONTACT_VIEWCONTACTOFTEXTOBJ_HXX -#define INCLUDED_SVX_SDR_CONTACT_VIEWCONTACTOFTEXTOBJ_HXX - -#include <svx/sdr/contact/viewcontactofsdrobj.hxx> - -class SdrTextObj; - -namespace sdr { namespace contact { - -class ViewContactOfTextObj : public ViewContactOfSdrObj -{ -public: - // basic constructor, used from SdrObject. - explicit ViewContactOfTextObj(SdrTextObj& rTextObj); - virtual ~ViewContactOfTextObj() override; -}; - -}} - -#endif // INCLUDED_SVX_SDR_CONTACT_VIEWCONTACTOFTEXTOBJ_HXX - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/svx/sdr/contact/viewobjectcontactofpageobj.hxx b/include/svx/sdr/contact/viewobjectcontactofpageobj.hxx deleted file mode 100644 index 4af2540c0fd6..000000000000 --- a/include/svx/sdr/contact/viewobjectcontactofpageobj.hxx +++ /dev/null @@ -1,53 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ - -#ifndef INCLUDED_SVX_SDR_CONTACT_VIEWOBJECTCONTACTOFPAGEOBJ_HXX -#define INCLUDED_SVX_SDR_CONTACT_VIEWOBJECTCONTACTOFPAGEOBJ_HXX - -#include <svx/sdr/contact/viewobjectcontactofsdrobj.hxx> -#include <memory> - -class SdrPage; - -namespace sdr { namespace contact { - -class PagePrimitiveExtractor; - -class ViewObjectContactOfPageObj final : public ViewObjectContactOfSdrObj -{ -private: - // the page painter helper - std::unique_ptr<PagePrimitiveExtractor> mpExtractor; - - // This method is responsible for creating the graphical visualisation data which is - // stored/cached in the local primitive. - // This method will not handle included hierarchies and not check geometric visibility. - virtual drawinglayer::primitive2d::Primitive2DContainer createPrimitive2DSequence(const DisplayInfo& rDisplayInfo) const override; - -public: - ViewObjectContactOfPageObj(ObjectContact& rObjectContact, ViewContact& rViewContact); - virtual ~ViewObjectContactOfPageObj() override; -}; - -}} - - -#endif // INCLUDED_SVX_SDR_CONTACT_VIEWOBJECTCONTACTOFPAGEOBJ_HXX - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |