LCOV - code coverage report
Current view: top level - include/svx - svdpntv.hxx (source / functions) Hit Total Coverage
Test: commit 0e63ca4fde4e446f346e35849c756a30ca294aab Lines: 48 58 82.8 %
Date: 2014-04-11 Functions: 48 60 80.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2             : /*
       3             :  * This file is part of the LibreOffice project.
       4             :  *
       5             :  * This Source Code Form is subject to the terms of the Mozilla Public
       6             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       7             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
       8             :  *
       9             :  * This file incorporates work covered by the following license notice:
      10             :  *
      11             :  *   Licensed to the Apache Software Foundation (ASF) under one or more
      12             :  *   contributor license agreements. See the NOTICE file distributed
      13             :  *   with this work for additional information regarding copyright
      14             :  *   ownership. The ASF licenses this file to you under the Apache
      15             :  *   License, Version 2.0 (the "License"); you may not use this file
      16             :  *   except in compliance with the License. You may obtain a copy of
      17             :  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
      18             :  */
      19             : 
      20             : #ifndef INCLUDED_SVX_SVDPNTV_HXX
      21             : #define INCLUDED_SVX_SVDPNTV_HXX
      22             : 
      23             : #include <svl/brdcst.hxx>
      24             : #include <svl/lstner.hxx>
      25             : #include <svl/smplhint.hxx>
      26             : #include <svl/undo.hxx>
      27             : #include <svx/svddrag.hxx>
      28             : #include <svx/svdlayer.hxx>
      29             : #include <vcl/window.hxx>
      30             : #include <svtools/colorcfg.hxx>
      31             : #include <com/sun/star/awt/XControlContainer.hpp>
      32             : #include <svl/itemset.hxx>
      33             : #include <vcl/timer.hxx>
      34             : #include <svx/svxdllapi.h>
      35             : #include <svtools/optionsdrawinglayer.hxx>
      36             : #include <unotools/options.hxx>
      37             : 
      38             : 
      39             : //   Pre-Defines
      40             : 
      41             : 
      42             : class SdrPageWindow;
      43             : 
      44             : namespace com { namespace sun { namespace star { namespace awt {
      45             :     class XControlContainer;
      46             : }}}}
      47             : 
      48             : class SdrPage;
      49             : class SdrView;
      50             : class SfxItemSet;
      51             : class SfxStyleSheet;
      52             : class SdrOle2Obj;
      53             : class SdrModel;
      54             : class SdrObject;
      55             : 
      56             : #ifdef DBG_UTIL
      57             : class SdrItemBrowser;
      58             : #endif
      59             : 
      60             : namespace sdr { namespace contact {
      61             :     class ViewObjectContactRedirector;
      62             : }}
      63             : 
      64             : 
      65             : //   Defines for AnimationMode
      66             : 
      67             : 
      68             : enum SdrAnimationMode
      69             : {
      70             :     SDR_ANIMATION_ANIMATE,
      71             :     SDR_ANIMATION_DONT_ANIMATE,
      72             :     SDR_ANIMATION_DISABLE
      73             : };
      74             : 
      75             : 
      76             : //   Typedef's und defines
      77             : 
      78             : 
      79             : typedef unsigned char TRISTATE;
      80             : #define FUZZY                   (2)
      81             : #define SDR_ANYFORMAT           (0xFFFFFFFF)
      82             : #define SDR_ANYITEM             (0xFFFF)
      83             : #define SDRVIEWWIN_NOTFOUND     (0xFFFF)
      84             : 
      85             : 
      86             : 
      87             : class SdrPaintView;
      88             : 
      89             : namespace sdr
      90             : {
      91             :     namespace contact
      92             :     {
      93             :         class ViewObjectContactRedirector;
      94             :     } // end of namespace contact
      95             : } // end of namespace sdr
      96             : 
      97             : 
      98             : 
      99             : 
     100        6786 : class SVX_DLLPUBLIC SvxViewHint : public SfxHint
     101             : {
     102             : public:
     103             :     enum HintType { SVX_HINT_VIEWCHANGED };
     104             :     TYPEINFO_OVERRIDE();
     105             :     explicit SvxViewHint (HintType eType);
     106             :     HintType GetHintType (void) const;
     107             : 
     108             : private:
     109             :     HintType meHintType;
     110             : };
     111             : 
     112             : // typedefs for a list of SdrPaintWindows
     113             : class SdrPaintWindow;
     114             : typedef ::std::vector< SdrPaintWindow* > SdrPaintWindowVector;
     115             : 
     116             : 
     117             : // helper to convert any GDIMetaFile to a good quality BitmapEx,
     118             : // using default parameters and graphic::XPrimitive2DRenderer
     119             : 
     120             : BitmapEx SVX_DLLPUBLIC convertMetafileToBitmapEx(
     121             :     const GDIMetaFile& rMtf,
     122             :     const basegfx::B2DRange& rTargetRange,
     123             :     const sal_uInt32 nMaximumQuadraticPixels = 500000);
     124             : 
     125             : 
     126             : 
     127             : class SVX_DLLPUBLIC SdrPaintView : public SfxListener, public SfxRepeatTarget, public SfxBroadcaster, public ::utl::ConfigurationListener
     128             : {
     129             :     friend class                SdrPageView;
     130             :     friend class                SdrGrafObj;
     131             : 
     132             :     SdrPageView*                mpPageView;
     133             : protected:
     134             :     SdrModel*                   pMod;
     135             : #ifdef DBG_UTIL
     136             :     SdrItemBrowser*             pItemBrowser;
     137             : #endif
     138             :     const OutputDevice*         pActualOutDev; // Nur zum vergleichen
     139             :     OutputDevice*               pDragWin;
     140             :     SfxStyleSheet*              pDefaultStyleSheet;
     141             : 
     142             :     OUString                    aAktLayer;     // Aktueller Zeichenlayer
     143             :     OUString                    aMeasureLayer; // Aktueller Layer fuer Bemassung
     144             : 
     145             : //  Container                   aPagV;         // Liste von SdrPageViews
     146             : 
     147             :     // All windows this view is displayed on
     148             :     SdrPaintWindowVector        maPaintWindows;
     149             : 
     150             :     MapMode                     aActualMapMode;
     151             :     Size                        aGridBig; // muss dann mal raus
     152             :     Size                        aGridFin; // muss dann mal raus
     153             :     SdrDragStat                 aDragStat;
     154             :     Rectangle                   aMaxWorkArea;
     155             :     SfxItemSet                  aDefaultAttr;
     156             :     Timer                       aComeBackTimer;
     157             : 
     158             :     SdrAnimationMode            eAnimationMode;
     159             : 
     160             :     sal_uInt16                      nHitTolPix;
     161             :     sal_uInt16                      nMinMovPix;
     162             :     sal_uInt16                      nHitTolLog;
     163             :     sal_uInt16                      nMinMovLog;
     164             :     sal_uIntPtr                     nMasterCacheMode;
     165             :     sal_uIntPtr                       nGraphicManagerDrawMode;
     166             : 
     167             :     // hold an incarnation of Drawinglayer configuration options
     168             :     SvtOptionsDrawinglayer      maDrawinglayerOpt;
     169             : 
     170             :     bool                        bPageVisible : 1;
     171             :     bool                        bPageBorderVisible : 1;
     172             :     bool                        bBordVisible : 1;
     173             :     bool                        bGridVisible : 1;
     174             :     bool                        bGridFront : 1;
     175             :     bool                        bHlplVisible : 1;
     176             :     bool                        bHlplFront : 1;
     177             :     bool                        bGlueVisible : 1;    // Persistent. Klebepunkte anzeigen
     178             :     bool                        bGlueVisible2 : 1;   // Klebepunkte auch bei GluePointEdit anzeigen
     179             :     bool                        bGlueVisible3 : 1;   // Klebepunkte auch bei EdgeTool anzeigen
     180             :     bool                        bGlueVisible4 : 1;   // Klebepunkte anzeigen, wenn 1 Edge markiert
     181             :     bool                        bRestoreColors : 1;   // Pens und Brushes werden zurueckgesetzt.
     182             :     bool                        bSomeObjChgdFlag : 1;
     183             :     bool                        bSwapAsynchron : 1;
     184             :     bool                        bPrintPreview : 1;
     185             : 
     186             :     // bool fuer die Verwaltung des anzuzeigenden Status
     187             :     // Gruppe Betreten/Verlassen. Default ist sal_True, wird aber
     188             :     // beispielsweise beim Chart auf sal_False gesetzt, da dort
     189             :     // die Ghosted-Effekte zur Darstellug unerwuenscht sind.
     190             :     bool                        bVisualizeEnteredGroup : 1;
     191             :     bool                        bAnimationPause : 1;
     192             : 
     193             :     // #114898#
     194             :     // Flag which decides if buffered output for this view is allowed. When
     195             :     // set, PreRendering for PageView rendering will be used. Default is sal_False
     196             :     bool                        mbBufferedOutputAllowed : 1;
     197             : 
     198             :     // #114898#
     199             :     // Flag which decides if buffered overlay for this view is allowed. When
     200             :     // set, the output will be buffered in an overlay vdev. When not, overlay is
     201             :     // directly painted to OutDev. Default is sal_False.
     202             :     bool                        mbBufferedOverlayAllowed : 1;
     203             : 
     204             :     // allow page painting at all?
     205             :     bool                        mbPagePaintingAllowed : 1;
     206             : 
     207             :     // is this a preview renderer?
     208             :     bool                        mbPreviewRenderer : 1;
     209             : 
     210             :     // flags for calc and sw for suppressing OLE, CHART or DRAW objects
     211             :     bool                        mbHideOle : 1;
     212             :     bool                        mbHideChart : 1;
     213             :     bool                        mbHideDraw : 1;             // hide draw objects other than form controls
     214             :     bool                        mbHideFormControl : 1;      // hide form controls only
     215             : 
     216             : public:
     217             :     // #114898#
     218             :     // interface for PagePaintingAllowed flag
     219             :     bool IsBufferedOutputAllowed() const;
     220             :     void SetBufferedOutputAllowed(bool bNew);
     221             : 
     222             :     // interface for BufferedOverlayAllowed flag
     223             :     bool IsBufferedOverlayAllowed() const;
     224             :     void SetBufferedOverlayAllowed(bool bNew);
     225             : 
     226             :     // allow page painting at all?
     227             :     bool IsPagePaintingAllowed() const;
     228             :     void SetPagePaintingAllowed(bool bNew);
     229             : 
     230             : protected:
     231             :     svtools::ColorConfig            maColorConfig;
     232             :     Color                           maGridColor;
     233             : 
     234             :     // interface to SdrPaintWindow
     235             : protected:
     236             :     void AppendPaintWindow(SdrPaintWindow& rNew);
     237             :     SdrPaintWindow* RemovePaintWindow(SdrPaintWindow& rOld);
     238             :     void ConfigurationChanged( ::utl::ConfigurationBroadcaster*, sal_uInt32 ) SAL_OVERRIDE;
     239             : 
     240             : public:
     241      103088 :     sal_uInt32 PaintWindowCount() const { return maPaintWindows.size(); }
     242             :     SdrPaintWindow* FindPaintWindow(const OutputDevice& rOut) const;
     243             :     SdrPaintWindow* GetPaintWindow(sal_uInt32 nIndex) const;
     244             :     // replacement for GetWin(0), may return 0L (!)
     245             :     OutputDevice* GetFirstOutputDevice() const;
     246             : 
     247             : private:
     248             :     SVX_DLLPRIVATE void ImpClearVars();
     249             :     DECL_LINK(ImpComeBackHdl,void*);
     250             : 
     251             : protected:
     252             :     sal_uInt16 ImpGetMinMovLogic(short nMinMov, const OutputDevice* pOut) const;
     253             :     sal_uInt16 ImpGetHitTolLogic(short nHitTol, const OutputDevice* pOut) const;
     254             : 
     255             :     // Wenn man den IdleStatus des Systems nicht abwarten will (auf const geschummelt):
     256             :     void FlushComeBackTimer() const;
     257             :     void TheresNewMapMode();
     258           0 :     void ImpSetGlueVisible2(bool bOn) { if (bGlueVisible2!=bOn) { bGlueVisible2=bOn; if (!bGlueVisible && !bGlueVisible3 && !bGlueVisible4) GlueInvalidate(); } }
     259         357 :     void ImpSetGlueVisible3(bool bOn) { if (bGlueVisible3!=bOn) { bGlueVisible3=bOn; if (!bGlueVisible && !bGlueVisible2 && !bGlueVisible4) GlueInvalidate(); } }
     260        2628 :     void ImpSetGlueVisible4(bool bOn) { if (bGlueVisible4!=bOn) { bGlueVisible4=bOn; if (!bGlueVisible && !bGlueVisible2 && !bGlueVisible3) GlueInvalidate(); } }
     261             :     bool ImpIsGlueVisible2() const { return bGlueVisible2; }
     262             :     bool ImpIsGlueVisible3() const { return bGlueVisible3; }
     263             :     bool ImpIsGlueVisible4() const { return bGlueVisible4; }
     264             : 
     265             : public:
     266       20219 :     bool ImpIsGlueVisible() { return bGlueVisible || bGlueVisible2 || bGlueVisible3 || bGlueVisible4; }
     267             : protected:
     268             : 
     269             :     virtual void Notify(SfxBroadcaster& rBC, const SfxHint& rHint) SAL_OVERRIDE;
     270             :     void GlueInvalidate() const;
     271             : 
     272             :     void ShowEncirclement(OutputDevice* pOut);
     273             :     void HideEncirclement(OutputDevice* pOut);
     274             :     void DrawEncirclement(OutputDevice* pOut) const;
     275             : 
     276             :     // ModelHasChanged wird gerufen, sobald nach beliebig vielen HINT_OBJCHG
     277             :     // das System wieder idle ist (StarView-Timer). Wer diese Methode ueberlaed,
     278             :     // muss unbedingt ModelHasChanged() der Basisklasse rufen.
     279             :     virtual void ModelHasChanged();
     280             : 
     281             : protected:
     282             :     // #i71538# make constructors of SdrView sub-components protected to avoid incomplete incarnations which may get casted to SdrView
     283             :     SdrPaintView(SdrModel* pModel1, OutputDevice* pOut = 0L);
     284             :     virtual ~SdrPaintView();
     285             : 
     286             : public:
     287             :     TYPEINFO_OVERRIDE();
     288             : 
     289             :     virtual void ClearPageView();
     290      170628 :     SdrModel* GetModel() const { return pMod; }
     291             : 
     292             :     virtual bool IsAction() const;
     293             :     virtual void MovAction(const Point& rPnt);
     294             :     virtual void EndAction();
     295             :     virtual void BckAction();
     296             :     virtual void BrkAction(); // Alle Actions z.B. Draggen abbrechen.
     297             :     virtual void TakeActionRect(Rectangle& rRect) const;
     298             : 
     299             :     // info about TextEdit. Default is sal_False.
     300             :     virtual bool IsTextEdit() const;
     301             : 
     302             :     // info about TextEditPageView. Default is 0L.
     303             :     virtual SdrPageView* GetTextEditPageView() const;
     304             : 
     305             :     // Muss dann bei jedem Fensterwechsel (wenn die SdrView in mehreren
     306             :     // Fenstern gleichzeitig dargestellt wird (->z.B. Splitter)) und bei
     307             :     // jedem MapMode(Scaling)-wechsel gerufen werden, damit ich aus meinen
     308             :     // Pixelwerten logische Werte berechnen kann.
     309             :     void SetActualWin(const OutputDevice* pWin);
     310         642 :     void SetMinMoveDistancePixel(sal_uInt16 nVal) { nMinMovPix=nVal; TheresNewMapMode(); }
     311           0 :     sal_uInt16 GetMinMoveDistancePixel() const { return (sal_uInt16)nMinMovPix; }
     312        6078 :     void SetHitTolerancePixel(sal_uInt16 nVal) { nHitTolPix=nVal; TheresNewMapMode(); }
     313        1230 :     sal_uInt16 GetHitTolerancePixel() const { return (sal_uInt16)nHitTolPix; }
     314             : 
     315             :     // data read access on logic HitTolerance and MinMoveTolerance
     316        1437 :     sal_uInt16 getHitTolLog() const { return nHitTolLog; }
     317             :     sal_uInt16 getMinMovLog() const { return nMinMovLog; }
     318             : 
     319             :     // Flag zur Visualisierung von Gruppen abfragen/testen
     320       65192 :     bool DoVisualizeEnteredGroup() const { return bVisualizeEnteredGroup; }
     321             :     void SetVisualizeEnteredGroup(bool bNew) { bVisualizeEnteredGroup = bNew; }
     322             : 
     323             :     // Am DragStatus laesst sich beispielsweise erfragen, welche
     324             :     // entfernung bereits gedraggd wurde, etc.
     325           0 :     const SdrDragStat& GetDragStat() const { return aDragStat; }
     326             : 
     327             :     // Anmelden/Abmelden einer PageView an der View.
     328             :     // Dieselbe // Seite kann nicht mehrfach angemeldet werden.
     329             :     // Methoden mit dem Suffix PgNum erwarten als numerischen Parameter
     330             :     // eine Seitennummer (0...). Methoden mit dem Suffix PvNum erwarten
     331             :     // degagen als numerischen Parameter die Nummer der PageView an der
     332             :     // SdrView (Iterieren ueber alle angemeldeten Pages).
     333             :     virtual SdrPageView* ShowSdrPage(SdrPage* pPage);
     334             :     virtual void HideSdrPage();
     335             : 
     336             :     // Iterieren ueber alle angemeldeten PageViews
     337             : //  sal_uInt16 GetPageViewCount() const { return sal_uInt16(aPagV.Count()); }
     338             : //  SdrPageView* GetPageViewByIndex(sal_uInt16 nPvNum) const { return ((SdrPageView*)aPagV.GetObject(nPvNum)); }
     339      127954 :     SdrPageView* GetSdrPageView() const { return mpPageView; }
     340             : 
     341             :     // Pageview einer bestimmten Seite ermitteln
     342             : //  SdrPageView* GetPageViewByPage(const SdrPage* pPage) const;
     343             : //  sal_uInt16 GetIndexByPageView(const SdrPageView* pPV) const;
     344             : 
     345             :     // Test, ob eine Seite getroffen
     346             : //  SdrPageView* HitPage(const Point& rPnt) const;
     347             : 
     348             :     // Die Seite, die dem Punkt am naechsten ist. Liefert nur NULL,
     349             :     // wenn absolut keine Seite angemeldet ist.
     350             : //  SdrPageView* GetPageViewByPosition(const Point& rPnt) const;
     351             : 
     352             :     // Eine SdrView kann auf mehreren Fenstern gleichzeitig abgebiltet sein:
     353             :     virtual void AddWindowToPaintView(OutputDevice* pNewWin);
     354             :     virtual void DeleteWindowFromPaintView(OutputDevice* pOldWin);
     355             : 
     356             :     void SetLayerVisible(const OUString& rName, bool bShow=true);
     357             :     bool IsLayerVisible(const OUString& rName) const;
     358             : 
     359             :     void SetLayerLocked(const OUString& rName, bool bLock=true);
     360             :     bool IsLayerLocked(const OUString& rName) const;
     361             : 
     362             :     void SetLayerPrintable(const OUString& rName, bool bPrn=true);
     363             :     bool IsLayerPrintable(const OUString& rName) const;
     364             : 
     365             :     // PrePaint call forwarded from app windows
     366             :     void PrePaint();
     367             : 
     368             : 
     369             :     // used internally for Draw/Impress/sch/chart2
     370             :     virtual void CompleteRedraw(OutputDevice* pOut, const Region& rReg, sdr::contact::ViewObjectContactRedirector* pRedirector = 0);
     371             : 
     372             :     // #i72889# used from CompleteRedraw() implementation internally, added to be able to do a complete redraw in single steps
     373             : 
     374             :     // BeginCompleteRedraw returns (or even creates) a SdrPaintWindow which shall then be used as
     375             :     // target for paints. Since paints may be buffered, use it's GetTargetOutputDevice() method which will
     376             :     // return the buffer in case of bufered.
     377             :     // DoCompleteRedraw draws the DrawingLayer hierarchy then.
     378             :     // EndCompleteRedraw does the necessary refreshes, evtl. paints text edit and overlay and evtl destroys the
     379             :     // SdrPaintWindow again. This means: the SdrPaintWindow is no longer safe after this closing call.
     380             :     virtual SdrPaintWindow* BeginCompleteRedraw(OutputDevice* pOut);
     381             :     virtual void DoCompleteRedraw(SdrPaintWindow& rPaintWindow, const Region& rReg, sdr::contact::ViewObjectContactRedirector* pRedirector = 0);
     382             :     virtual void EndCompleteRedraw(SdrPaintWindow& rPaintWindow, bool bPaintFormLayer);
     383             : 
     384             : 
     385             :     // used for the other applications basctl/sc/sw which call DrawLayer at PageViews
     386             :     // #i74769# Interface change to use common BeginCompleteRedraw/EndCompleteRedraw
     387             :     // #i76114# bDisableIntersect disables intersecting rReg with the Window's paint region
     388             :     SdrPaintWindow* BeginDrawLayers(OutputDevice* pOut, const Region& rReg, bool bDisableIntersect = false);
     389             :     // used when the region passed to BeginDrawLayers needs to be changed
     390             :     void UpdateDrawLayersRegion(OutputDevice* pOut, const Region& rReg, bool bDisableIntersect = false);
     391             :     void EndDrawLayers(SdrPaintWindow& rPaintWindow, bool bPaintFormLayer);
     392             : 
     393             : protected:
     394             : 
     395             :     // used to paint the form layer after the PreRender device is flushed (painted) to the window.
     396             :     void ImpFormLayerDrawing(SdrPaintWindow& rPaintWindow) const;
     397             : 
     398             :     Region OptimizeDrawLayersRegion(OutputDevice* pOut, const Region& rReg, bool bDisableIntersect);
     399             : 
     400             : public:
     401        3588 :     bool IsPageVisible() const { return bPageVisible; }             // Seite (weisse Flaeche) malen oder nicht
     402         465 :     bool IsPageBorderVisible() const { return bPageBorderVisible; } // Seite (weisse Flaeche) malen oder nicht
     403         875 :     bool IsBordVisible() const { return bBordVisible; }             // Seitenrandlinie malen oder nicht
     404       15299 :     bool IsGridVisible() const { return bGridVisible; }             // Rastergitter malen oder nicht
     405        1101 :     bool IsGridFront() const { return bGridFront  ; }               // Rastergitter ueber die Objekte druebermalen oder dahinter
     406        3279 :     bool IsHlplVisible() const { return bHlplVisible; }             // Hilfslinien der Seiten malen oder nicht
     407           0 :     bool IsHlplFront() const { return bHlplFront  ; }               // Hilfslinie ueber die Objekte druebermalen oder dahinter
     408             :     bool IsGlueVisible() const { return bGlueVisible; }             // Konnektoren der objekte sichtbar oder nicht
     409             :     Color GetGridColor() const;
     410        2171 :     void SetPageVisible(bool bOn = true) { bPageVisible=bOn; InvalidateAllWin(); }
     411         134 :     void SetPageBorderVisible(bool bOn = true) { bPageBorderVisible=bOn; InvalidateAllWin(); }
     412        2108 :     void SetBordVisible(bool bOn = true) { bBordVisible=bOn; InvalidateAllWin(); }
     413        4945 :     void SetGridVisible(bool bOn = true) { bGridVisible=bOn; InvalidateAllWin(); }
     414         713 :     void SetGridFront(bool bOn = true) { bGridFront  =bOn; InvalidateAllWin(); }
     415        2814 :     void SetHlplVisible(bool bOn = true) { bHlplVisible=bOn; InvalidateAllWin(); }
     416         155 :     void SetHlplFront(bool bOn = true) { bHlplFront  =bOn; InvalidateAllWin(); }
     417        2108 :     void SetGlueVisible(bool bOn = true) { if (bGlueVisible!=bOn) { bGlueVisible=bOn; if (!bGlueVisible2 && !bGlueVisible3 && !bGlueVisible4) GlueInvalidate(); } }
     418             :     void SetGridColor( Color aColor );
     419             : 
     420        1647 :     bool IsPreviewRenderer() const { return mbPreviewRenderer; }
     421         134 :     void SetPreviewRenderer(bool bOn) { mbPreviewRenderer=bOn; }
     422             : 
     423             :     // access methods for calc and sw hide object modes
     424       30231 :     bool getHideOle() const { return mbHideOle; }
     425       30084 :     bool getHideChart() const { return mbHideChart; }
     426       30084 :     bool getHideDraw() const { return mbHideDraw; }
     427       30084 :     bool getHideFormControl() const { return mbHideFormControl; }
     428        3212 :     void setHideOle(bool bNew) { if(bNew != (bool)mbHideOle) mbHideOle = bNew; }
     429        3212 :     void setHideChart(bool bNew) { if(bNew != (bool)mbHideChart) mbHideChart = bNew; }
     430        3212 :     void setHideDraw(bool bNew) { if(bNew != (bool)mbHideDraw) mbHideDraw = bNew; }
     431        3212 :     void setHideFormControl(bool bNew) { if(bNew != (bool)mbHideFormControl) mbHideFormControl = bNew; }
     432             : 
     433        3696 :     void SetGridCoarse(const Size& rSiz) { aGridBig=rSiz; }
     434        3542 :     void SetGridFine(const Size& rSiz) { aGridFin=rSiz; if (aGridFin.Height()==0) aGridFin.Height()=aGridFin.Width(); if (bGridVisible) InvalidateAllWin(); } // #40479#
     435        1734 :     const Size& GetGridCoarse() const { return aGridBig; }
     436        1734 :     const Size& GetGridFine() const { return aGridFin; }
     437             : 
     438             :     void InvalidateAllWin();
     439             :     void InvalidateAllWin(const Rectangle& rRect, bool bPlus1Pix=false);
     440             : 
     441             :     // Wenn die View kein Invalidate() an den Fenstern durchfuehren soll, muss
     442             :     // man diese beiden folgenden Methoden ueberladen und entsprechend anders
     443             :     // reagieren.
     444             :     virtual void InvalidateOneWin(Window& rWin);
     445             :     virtual void InvalidateOneWin(Window& rWin, const Rectangle& rRect);
     446             : 
     447        2202 :     void SetActiveLayer(const OUString& rName) { aAktLayer=rName; }
     448        4596 :     const OUString&  GetActiveLayer() const { return aAktLayer; }
     449             : 
     450             :     // Verlassen einer betretenen Objektgruppe aller sichtbaren Seiten.
     451             :     // (wie MsDos chdir ..)
     452             :     void LeaveOneGroup();
     453             : 
     454             :     // Verlassen aller betretenen Objektgruppen aller sichtbaren Seiten.
     455             :     // (wie MsDos chdir \)
     456             :     void LeaveAllGroup();
     457             : 
     458             :     // Feststellen, ob Leave sinnvoll ist.
     459             :     bool IsGroupEntered() const;
     460             : 
     461             :     // DefaultAttribute an der View: Neu erzeugte Objekte bekommen diese
     462             :     // Attribute direkt nach dem Erzeugen erstmal zugewiesen.
     463             :     void SetDefaultAttr(const SfxItemSet& rAttr, bool bReplaceAll);
     464           0 :     const SfxItemSet& GetDefaultAttr() const { return aDefaultAttr; }
     465             :     void SetDefaultStyleSheet(SfxStyleSheet* pStyleSheet, bool bDontRemoveHardAttr);
     466           2 :     SfxStyleSheet* GetDefaultStyleSheet() const { return pDefaultStyleSheet; }
     467             : 
     468             :     void SetNotPersistDefaultAttr(const SfxItemSet& rAttr, bool bReplaceAll);
     469             :     void MergeNotPersistDefaultAttr(SfxItemSet& rAttr, bool bOnlyHardAttr) const;
     470             : 
     471             :     // use this mode as mode to draw all internal GraphicManager objects with
     472             :     sal_uIntPtr GetGraphicManagerDrawMode() const { return nGraphicManagerDrawMode; }
     473             :     void SetGraphicManagerDrawMode( sal_uIntPtr nMode ) { nGraphicManagerDrawMode = nMode; }
     474             : 
     475             :     // SwapIn (z.B. von Grafiken) asynchron durchfuehren. Also nicht
     476             :     // beim Paint sofort nachladen, sondern dort das Nachladen anstossen.
     477             :     // Nach Abschluss des Nachladens wird das Objekt dann angezeigt.
     478             :     // Hat nur z.Zt. Wirkung, wenn SwapGraphics am Model eingeschaltet ist.
     479             :     // Default=FALSE. Flag ist nicht persistent.
     480           0 :     bool IsSwapAsynchron() const { return bSwapAsynchron; }
     481        2047 :     void SetSwapAsynchron(bool bJa=true) { bSwapAsynchron=bJa; }
     482             :     virtual bool KeyInput(const KeyEvent& rKEvt, Window* pWin);
     483             : 
     484           0 :     virtual bool MouseButtonDown(const MouseEvent& /*rMEvt*/, Window* /*pWin*/) { return false; }
     485           0 :     virtual bool MouseButtonUp(const MouseEvent& /*rMEvt*/, Window* /*pWin*/) { return false; }
     486           0 :     virtual bool MouseMove(const MouseEvent& /*rMEvt*/, Window* /*pWin*/) { return false; }
     487           0 :     virtual bool Command(const CommandEvent& /*rCEvt*/, Window* /*pWin*/) { return false; }
     488             :     bool Cut(sal_uIntPtr /*nFormat*/=SDR_ANYFORMAT) { return false; }
     489             :     bool Yank(sal_uIntPtr /*nFormat*/=SDR_ANYFORMAT) { return false; }
     490             :     bool Paste(Window* /*pWin*/=NULL, sal_uIntPtr /*nFormat*/=SDR_ANYFORMAT) { return false; }
     491             : 
     492             :     /* new interface src537 */
     493             :     bool GetAttributes(SfxItemSet& rTargetSet, bool bOnlyHardAttr=false) const;
     494             : 
     495             :     bool SetAttributes(const SfxItemSet& rSet, bool bReplaceAll);
     496             :     SfxStyleSheet* GetStyleSheet() const; // SfxStyleSheet* GetStyleSheet(bool& rOk) const;
     497             :     bool SetStyleSheet(SfxStyleSheet* pStyleSheet, bool bDontRemoveHardAttr);
     498             : 
     499             :     virtual void MakeVisible(const Rectangle& rRect, Window& rWin);
     500             : 
     501             :     // Fuer PlugIn. Wird vom Paint des OLE-Obj gerufen.
     502             :     virtual void DoConnect(SdrOle2Obj* pOleObj);
     503             : 
     504             :     // Animation aktivieren/deaktivieren fuer ::Paint
     505             :     // wird z.Zt. ausgewertet von SdrGrafObj, wenn in dem eine Animation steckt
     506             :     // Das Unterbinden der automatischen Animation wird z.B. fuer die Dia-Show benoetigt
     507        1629 :     bool IsAnimationEnabled() const { return ( SDR_ANIMATION_ANIMATE == eAnimationMode ); }
     508             :     void SetAnimationEnabled( bool bEnable=true );
     509             : 
     510             :     // set/unset pause state for animations
     511             :     bool IsAnimationPause() const { return bAnimationPause; }
     512             :     void SetAnimationPause( bool bSet );
     513             : 
     514             :     // Verhalten beim Starten von Animation im Paint-Handler:
     515             :     // 1. Animation normal starten( SDR_ANIMATION_ANIMATE ) => DEFAULT
     516             :     // 2. Nur die Ersatzdarstellung der Animation zeichnen ( SDR_ANIMATION_DONT_ANIMATE )
     517             :     // 3. Nicht starten und nichts ersatzweise ausgeben ( SDR_ANIMATION_DISABLE )
     518             :     void SetAnimationMode( const SdrAnimationMode eMode );
     519             :     SdrAnimationMode GetAnimationMode() const { return eAnimationMode; }
     520             : 
     521             :     // bei bShow=sal_False wird der Browser destruiert
     522             : #ifdef DBG_UTIL
     523             :     void ShowItemBrowser(bool bShow=true);
     524             :     bool IsItemBrowserVisible() const { return pItemBrowser!=NULL && ((Window*)pItemBrowser)->IsVisible(); }
     525             :     Window* GetItemBrowser() const { return (Window*)pItemBrowser; }
     526             : #endif
     527             : 
     528             :     // Muss von App beim Scrollen usw. gerufen werden, damit ein u.U.
     529             :     // aktives FormularControl mitverschoben werden kann
     530             :     void VisAreaChanged(const OutputDevice* pOut=NULL);
     531             :     void VisAreaChanged(const SdrPageWindow& rWindow);
     532             : 
     533         827 :     bool IsPrintPreview() const { return bPrintPreview; }
     534        1765 :     void SetPrintPreview(bool bOn = true) { bPrintPreview=bOn; }
     535             : 
     536             :     const svtools::ColorConfig& getColorConfig() const;
     537             : 
     538             :     virtual void onChangeColorConfig();
     539             : 
     540             :     // #103834# Set background color for svx at SdrPageViews
     541             :     void SetApplicationBackgroundColor(Color aBackgroundColor);
     542             : 
     543             :     // #103911# Set document color for svx at SdrPageViews
     544             :     void SetApplicationDocumentColor(Color aDocumentColor);
     545             : 
     546             :     // #i38135#
     547             :     // Sets the timer for Object animations and restarts.
     548             :     void SetAnimationTimer(sal_uInt32 nTime);
     549             : 
     550             :     // access to Drawinglayer configuration options
     551       14631 :     const SvtOptionsDrawinglayer& getOptionsDrawinglayer() const { return maDrawinglayerOpt; }
     552             : };
     553             : 
     554             : #endif // INCLUDED_SVX_SVDPNTV_HXX
     555             : 
     556             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10