/************************************************************** * * 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 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. * *************************************************************/ #ifndef _SDR_CONTACT_OBJECTCONTACTOFPAGEVIEW_HXX #define _SDR_CONTACT_OBJECTCONTACTOFPAGEVIEW_HXX #include #include ////////////////////////////////////////////////////////////////////////////// // predeclarations class SdrPageWindow; class SdrPage; ////////////////////////////////////////////////////////////////////////////// namespace sdr { namespace contact { class ObjectContactOfPageView : public ObjectContact, public Timer { protected: // the owner of this ObjectContactOfPageView. Set from constructor and not // to be changed in any way. SdrPageWindow& mrPageWindow; // Process the whole displaying, the real version void DoProcessDisplay(DisplayInfo& rDisplayInfo); public: // access to SdrPageWindow SdrPageWindow& GetPageWindow() const { return mrPageWindow; } // access to SdrPage of PageView SdrPage* GetSdrPage() const; // basic constructor, used from SdrPageView. ObjectContactOfPageView(SdrPageWindow& rPageWindow); virtual ~ObjectContactOfPageView(); // LazyInvalidate request. This is used from the VOCs to mark that they // got invalidated by an ActionCanged() call. An active view needs to remember // this and take action on it. Default implementation directly calls back // triggerLazyInvalidate() which promptly handles the request virtual void setLazyInvalidate(ViewObjectContact& rVOC); // call this to support evtl. preparations for repaint virtual void PrepareProcessDisplay(); // From baseclass Timer, the timeout call triggered by te LazyInvalidate mechanism virtual void Timeout(); // Process the whole displaying virtual void ProcessDisplay(DisplayInfo& rDisplayInfo); // test if visualizing of entered groups is switched on at all virtual bool DoVisualizeEnteredGroup() const; // get active group's (the entered group) ViewContact virtual const ViewContact* getActiveViewContact() const; // Invalidate given rectangle at the window/output which is represented by // this ObjectContact. virtual void InvalidatePartOfView(const basegfx::B2DRange& rRange) const; // Get info if given Rectangle is visible in this view virtual bool IsAreaVisible(const basegfx::B2DRange& rRange) const; // Get info about the need to visualize GluePoints. The default // is that it is not necessary. virtual bool AreGluePointsVisible() const; // check if text animation is allowed. virtual bool IsTextAnimationAllowed() const; // check if graphic animation is allowed. virtual bool IsGraphicAnimationAllowed() const; // check if asynchronious graphis loading is allowed. Default is sal_False. virtual bool IsAsynchronGraphicsLoadingAllowed() const; // check if buffering of MasterPages is allowed. Default is sal_False. virtual bool IsMasterPageBufferingAllowed() const; // print? Default is false virtual bool isOutputToPrinter() const; // window? Default is true virtual bool isOutputToWindow() const; // VirtualDevice? Default is false virtual bool isOutputToVirtualDevice() const; // recording MetaFile? Default is false virtual bool isOutputToRecordingMetaFile() const; // pdf export? Default is false virtual bool isOutputToPDFFile() const; // gray display mode virtual bool isDrawModeGray() const; // gray display mode virtual bool isDrawModeBlackWhite() const; // high contrast display mode virtual bool isDrawModeHighContrast() const; // overloaded access to SdrPageView virtual SdrPageView* TryToGetSdrPageView() const; // access to OutputDevice. May return 0L like the default implementations do. Needs to be overloaded as needed. virtual OutputDevice* TryToGetOutputDevice() const; /** sets all UNO controls which are associated with this ObjectContact to design or alive mode. */ void SetUNOControlsDesignMode( bool _bDesignMode ) const; }; } // end of namespace contact } // end of namespace sdr ////////////////////////////////////////////////////////////////////////////// #endif //_SDR_CONTACT_OBJECTCONTACTOFPAGEVIEW_HXX // eof