/* -*- 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 .
*/
// for ScDrawLayer::SetPageSize enumclass ScObjectHandling
{
RecalcPosMode, // used for row height or col width changes
MoveRTLMode, // used for switch to RTL during import of right-to-left sheet
MirrorRTLMode // used for switch between RTL and LTR by .uno:SheetRightToLeft
};
class SAL_DLLPUBLIC_RTTI ScDrawLayer final : public FmFormModel
{ private:
OUString aName;
ScDocument* pDoc;
std::unique_ptr<SdrUndoGroup> pUndoGroup; bool bRecording; bool bAdjustEnabled; bool bHyphenatorSet;
// mirror or move between positive and negative positions for RTL void MirrorRTL( SdrObject* pObj ); void MoveRTL(SdrObject* pObj); staticvoid MirrorRectRTL( tools::Rectangle& rRect ); // for bounding rectangles etc.
/** Returns the rectangle for the passed cell address in 1/100 mm.
@param bMergedCell True = regards merged cells. False = use single column/row size. */ static tools::Rectangle GetCellRect( const ScDocument& rDoc, const ScAddress& rPos, bool bMergedCell );
// GetVisibleName: name for navigator etc: GetPersistName or GetName // (ChartListenerCollection etc. must use GetPersistName directly) static OUString GetVisibleName( const SdrObject* pObj );
SdrObject* GetNamedObject( std::u16string_view rName, SdrObjKind nId, SCTAB& rFoundTab ) const; // if pnCounter != NULL, the search for a name starts with this index + 1, // and the index really used is returned.
OUString GetNewGraphicName( tools::Long* pnCounter = nullptr ) const; void EnsureGraphicNames();
// The sheet information in ScDrawObjData isn't updated when sheets are inserted/deleted. // Use this method to get an object with positions on the specified sheet (should be the // sheet on which the object is inserted). static ScDrawObjData* GetObjDataTab( SdrObject* pObj, SCTAB nTab );
/** Returns true, if the passed object is the caption of a cell note. */
SC_DLLPUBLIC staticbool IsNoteCaption(const ScDrawObjData* pData); staticbool IsNoteCaption(SdrObject* pObj) { return IsNoteCaption(GetObjData(pObj)); }
/** Returns the object data, if the passed object is a cell note caption. */ static ScDrawObjData* GetNoteCaptionData( SdrObject* pObj, SCTAB nTab );
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.