1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: SlsPageObjectViewContact.hxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef SD_SLIDESORTER_PAGE_OBJECT_VIEW_CONTACT_HXX
32 #define SD_SLIDESORTER_PAGE_OBJECT_VIEW_CONTACT_HXX
34 #include "model/SlsSharedPageDescriptor.hxx"
35 #include <svx/sdtakitm.hxx>
36 #include <svx/sdr/contact/viewcontactofpageobj.hxx>
40 namespace sdr
{namespace contact
{
41 class ViewObjectContact
;
45 namespace sd
{ namespace slidesorter
{ namespace view
{
48 This class has to provide the bounding box but can not determine it
49 fully because it has no access to the output device. It therefore
50 retrieves some of the necessary data, the border, from the
51 PageDescriptor which acts here as persistent storage.
53 class PageObjectViewContact
54 : public ::sdr::contact::ViewContactOfPageObj
57 PageObjectViewContact (
59 const model::SharedPageDescriptor
& rpDescriptor
);
60 ~PageObjectViewContact (void);
62 /** Create a ViewObjectContact object that buffers its output in a
65 Ownership of the new object passes to the caller.
67 virtual ::sdr::contact::ViewObjectContact
&
68 CreateObjectSpecificViewObjectContact(
69 ::sdr::contact::ObjectContact
& rObjectContact
);
71 const SdrPage
* GetPage (void) const;
73 SdrPageObj
& GetPageObject (void) const;
75 Rectangle
GetPageObjectBoundingBox (void) const;
77 virtual void ActionChanged (void);
80 // create graphical visualisation data
81 virtual drawinglayer::primitive2d::Primitive2DSequence
createViewIndependentPrimitive2DSequence() const;
84 /** This flag is set to <TRUE/> when the destructor is called to
85 indicate that further calls made to it must not call outside.
89 model::SharedPageDescriptor mpDescriptor
;
92 } } } // end of namespace ::sd::slidesorter::view