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