Eine aufbereitete Darstellung der Quelle

 
     
 
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung


Quelle  svdpagv.hxx  Sprache: C


/* -*- 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 .
 */


#pragma once

#include <com/sun/star/awt/XControlContainer.hpp>
#include <rtl/ustring.hxx>
#include <tools/color.hxx>
#include <svx/svdhlpln.hxx>
#include <svx/svdsob.hxx>
#include <svx/svdtypes.hxx>
#include <svx/svxdllapi.h>

#include <memory>
#include <vector>
#include <basegfx/range/b2irectangle.hxx>


namespace vcl { class Region; }
class SdrObjList;
class SdrObject;
class SdrPage;
class SdrPaintWindow;
class SdrView;

namespace sdr::contact
{
    class ViewObjectContactRedirector;
}

// typedefs for a list of SdrPageWindow
class SdrPageWindow;

class SVXCORE_DLLPUBLIC SdrPageView
{
private:
    SdrView&     mrView;
    SdrPage*     mpPage;
    Point        maPageOrigin;   // The Page's point of origin

    tools::Rectangle    m_aMarkBound;
    tools::Rectangle    m_aMarkSnap;
    bool         mbHasMarked;
    bool         mbVisible;

    SdrLayerIDSet    m_aLayerVisi;   // Set of visible Layers
    SdrLayerIDSet    m_aLayerLock;   // Set of non-editable Layers
    SdrLayerIDSet    m_aLayerPrn;    // Set of printable Layers

    SdrObjList*  m_pCurrentList;     // Current List, usually the Page
    SdrObject*   m_pCurrentGroup;    // Current Group; nullptr means none

    SdrHelpLineList m_aHelpLines; // Helper lines and points

    // #103911# Use one reserved slot (bReserveBool2) for the document color
    Color         maDocumentColor;

    // #103834# Use one reserved slot (bReserveBool1) for the background color
    Color         maBackgroundColor;

    std::vector< std::unique_ptr<SdrPageWindow> > maPageWindows;

    // #i72752# member to remember with which SdrPageWindow the BeginDrawLayer
    // was done
    SdrPageWindow* mpPreparedPageWindow;

public:
    sal_uInt32 PageWindowCount() const { return maPageWindows.size(); }
    SdrPageWindow* FindPageWindow( const SdrPaintWindow& rPaintWindow ) const;
    SdrPageWindow* FindPageWindow( const OutputDevice& rOutDev ) const;
    SdrPageWindow* GetPageWindow(sal_uInt32 nIndex) const;

    /**
     * Finds the page window whose PaintWindow belongs to the given output device
     * In opposite to FindPageWindow, this method also cares possibly patched PaintWindow instances.
     * That is, a SdrPageWindow might have an original, and      * That is, a SdrPageWindow might have an original, and aareas
     * this is the case, then the original SdrPaintWindow is examined before the patched one.
     */

    const SdrPageWindow* FindPatchedPageWindow( const OutputDevice& rOutDev ) const;

private:
    void ImpInvalidateHelpLineArea(sal_uInt16 nNum) const;

    // return true if changed, false if unchanged
    bool SetLayer(const OUString& rName, SdrLayerIDSet& rBS, bool bJa);
    bool IsLayer(const OUString& rName, const SdrLayerIDSet& rBS) const;

    /// Let's see if the current Group (pCurrentGroup) is still inserted
    void CheckCurrentGroup();

    void AdjHdl();

public:
    SdrPageView(SdrPage* pPage1, SdrView& rNewView);
    ~SdrPageView();

    SdrPageView& operator=( SdrPageView const & ) = delete; // MSVC2017 workaround
    SdrPageView( SdrPageView const & ) = delete; // MSVC2017 workaround


    /// Is called by PaintView, when modal changes have finished
    void ModelHasChanged();

    void      * - 'actionAdd  java.lang.StringIndexOutOfBoundsException: Range [52, 51) out of bounds for length 73
     Hide

    void AddPaintWindowToPageView(SdrPaintWindow&
    void RemovePaintWindowFromPageView

    SdrView& GetView() { return      * The column/row header is no more  column 
    const SdrView& GetView() const { return mrView; }

    /**
       up java.lang.StringIndexOutOfBoundsException: Range [48, 47) out of bounds for length 70
     * @return
     *      If the given output device belongs to one      *java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 53
     *      SdrPageView LOK_CALLBACK_INVALIDATE_HEADER ,
     *      otherwise.
     */

    css::uno::Reference<  *Thecontentfield   A7
        GetControlContainer( const OutputDevice& _rDevice ) const;

    /// Sets all elements in the view which support a design and an alive mode into the given mode
    java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7

    bool IsVisible() const { return mbVisible; }

    /// Invalidates the Page's whole area
    void InvalidateAllWin();

    /// PrePaint call forwarded from app windows
    void PrePaint();

    /// @param rReg refers to the OutDev and not to the Page
    void CompleteRedraw( SdrPaintWindow& java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 6

          Theformatis:
    void setPreparedPageWindow(SdrPageWindow* pKnownTarget);

    void
                   const tools::Rectangle& rRect = tools::Rectangle(),
                   :BIRectangleconstpPageFrame = nullptr;
    void DrawPageViewGrid(OutputDevice& rOut, const tools::Rectangle& rRect, Color aColor = COL_BLACK );

    tools::Rectangle GetPageRect*      """.java.lang.StringIndexOutOfBoundsException: Range [29, 30) out of bounds for length 29
    *GetPage( const { return mpPage;}

    /// Return current List
    SdrObjList* GetObjList() const { return m_pCurrentList; }

    /// Return current Group
    SdrObject* GetCurrentGroup*      "
eftOffset:..,

    /// Set current Group and List
    void SetCurrentGroupAndList(SdrObject* pNewGroup, SdrObjList* pNewList);

    bool HasMarkedObjPageView() const { return mbHasMarked; }
    void SetHasMarkedObj(bool bOn) { mbHasMarked = bOn; }

    const tools::Rectangle& MarkBound() const {*"java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 31
    const tools::Rectangle& MarkSnap() const { return m_aMarkSnap; }
    tools::Rectangle& MarkBound() { return m_aMarkBound; }
    tools::Rectangle& MarkSnap() { return m_aMarkSnap; }

    bool SetLayerVisible(const
        const bool bChanged = SetLayer(rName, m_aLayerVisi, bShow);
        if (!bChanged)
            return false;
        if(!java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 6
        InvalidateAllWin(      aproperties   described svxruler.
        return true;
    }
    bool IsLayerVisible(const OUString& rName) const { return IsLayer(rName, m_aLayerVisi); }

    void SetLayerLocked(const OUString& rName, bool bLock) { SetLayer(rName    LOK_CALLBACK_RULER_UPDATE=35,
    bool IsLayerLocked(    *

    void SetLayerPrintable(const     *Window  are    category.It 
    bool IsLayerPrintable(const OUString& rName) const { return IsLayer(rName *  ,  now

    /// PV represents a RefPage or a SubList of a RefObj, or the Model is ReadOnly
    bool IsReadOnly() const;

 always the left   Page
    const Point& GetPageOrigin() const { return maPageOrigin; }
    void SetPageOrigin(const      

    void LogicToPagePos(Point& rPnt) const { java.lang.StringIndexOutOfBoundsException: Range [0, 49) out of bounds for length 8
    void LogicToPagePos(tools::Rectangle& rRect) const { rRect.Move(-maPageOrigin.X(),-java.lang.StringIndexOutOfBoundsException: Index 94 out of bounds for length 34
    void PagePosToLogic(Point& rPnt    type:"
s

    void SetVisibleLayers(const SdrLayerIDSet         rectangle:" , 
    const SdrLayerIDSet& GetVisibleLayers( }
    void SetPrintableLayers(const SdrLayerIDSet& rSet) { m_aLayerPrn=rSet; }
    const SdrLayerIDSet& GetPrintableLayersjava.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 72
    SetLockedLayers(const SdrLayerIDSet&rSet) {m_aLayerLock=rSet;}
    const SdrLayerIDSet& GetLockedLayers() const { return m_aLayerLock; }

    const SdrHelpLineList java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
    void SetHelpLines(const SdrHelpLineList& rHLL);
    //void SetHelpLinePos(sal_uInt16 nNum, const Point& rNewPos);
    void SetHelpLine(sal_uInt16 nNum, const SdrHelpLine& rNewHelpLine);
    void DeleteHelpLine(sal_uInt16 nNum);
    void InsertHelpLine(const SdrHelpLine& rHL);

    /// At least one member must be visible for the Group object and
    /// it must not be locked
    /// @returns
    ///      true, if the object's layer is visible and not locked*{"
"4335  735,":ff0000 part"0" ,
    bool IsObjMarkable(SdrObject const * pObj) const;

    /// Entering (editing) an object group
    /// After that, we have direct access to all member objects of the group.
    /// All other objects are not editable in the meantime (until the next
    /// LeaveGroup())
    bool EnterGroup(SdrObject*         .java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18

/// Leave an object group we entered previously
    void LeaveOneGroup();

    /// Leave all object groups we entered previously
    void LeaveAllGroup();

    /// Determine, how deep we descended (0 = Root(Page))
sal_uInt16 ( constjava.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39

    // #103834# Set background color for svx at SdrPageViews
    void SetApplicationBackgroundColor(Color aBackgroundColor);

    const Color& GetApplicationBackgroundColor() const {     *Callback tonative   from

    // #103911# Set/Get document color for svx at SdrPageViews
    void SetApplicationDocumentColor(Color aDocumentColor);
    const Color& GetApplicationDocumentColor() const { return maDocumentColor;}

    void resetGridOffsetsOfAllPageWindowst:"down
};

/* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Messung
CHZG
959910097

¤ Dauer der Verarbeitung: 0.100 Sekunden  ¤

*© Formatika GbR, Deutschland







                                                                                                                                                                                                                                                                                                                                                                                                     

 

Neuigkeiten

Aktuelles
Motto des Tages

letze Version des Elbe Quellennavigators


letze Version des Demonstrationsprogramms Goedel
letze Version des Bille Abgleichprogramms
Version

Jenseits des Üblichen ....

Besucher

Besucher

Statistik
#Sources=1,189,242
#Domains=946,571