/* -*- 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 <svx/fmview.hxx>
#include <global.hxx>
namespace com::sun::star::datatransfer { class XTransferable; }
class ScDocument; class ScViewData; class ScDrawObjData;
class ScDrawView final : public FmFormView
{
ScViewData& rViewData;
VclPtr<OutputDevice> pDev; //! needed ?
ScDocument& rDoc;
SCTAB nTab;
Fraction aScaleX; // Factor for Drawing-MapMode
Fraction aScaleY;
std::unique_ptr<SdrDropMarkerOverlay> pDropMarker;
SdrObject* pDropMarkObj; bool bInConstruct;
void Construct();
virtualvoid ModelHasChanged() override;
// add custom handles (used by other apps, e.g. AnchorPos) virtualvoid AddCustomHdl() override;
void ImplClearCalcDropMarker();
// Create a local UndoManager
std::unique_ptr<SdrUndoManager> createLocalTextUndoManager() override;
/** Returns the selected object, if it is the caption object of a cell note.
@param ppCaptData (out-param) If not null, returns the pointer to the caption object data. */
SdrObject* GetMarkedNoteCaption( ScDrawObjData** ppCaptData );
/** Locks/unlocks the specified layer in the draw page.
Unlocked layer is required to be able to edit the contained objects. */ void LockCalcLayer( SdrLayerID nLayer, bool bLock );
/** Locks/unlocks the background layer that contains background objects.
Unlocked layer is required to be able to edit the objects. */ void LockBackgroundLayer( bool bLock ) { LockCalcLayer( SC_LAYER_BACK, bLock ); }
/** Locks/unlocks the internal layer that contains caption objects of cell notes.
Unlocked layer is required to be able to edit the contained objects. */ void LockInternalLayer( bool bLock = true ) { LockCalcLayer( SC_LAYER_INTERN, bLock ); } /** Unlocks the internal layer that contains caption objects of cell notes. */ void UnlockInternalLayer() { LockInternalLayer( false ); }
// #i123922# helper which checks if a Graphic may be applied to an existing // SdrObject; if it's a SdrGrafObj the fill will be replaced. If it's a // fillable, non-OLE SdrObject, the FillStyle will be adapted
SdrObject* ApplyGraphicToObject(
SdrObject& rHitObject, const Graphic& rGraphic, const OUString& rBeginUndoText, const OUString& rFile);
/// See SdrMarkView::GetSfxViewShell().
SfxViewShell* GetSfxViewShell() const override;
// Do not create ObjectContact locally, but offer a call to allow override // and to create own derivations of ObjectContact virtual sdr::contact::ObjectContact* createViewSpecificObjectContact(
SdrPageWindow& rPageWindow, constchar* pDebugName) const override;
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.