21#include <com/sun/star/uno/XComponentContext.hpp>
22#include <com/sun/star/drawing/XSelectionFunction.hpp>
27#include <svx/svxids.hrc>
45#include <drawview.hxx>
66 if( !(pModel && pObj) )
69 Reference< XNameAccess > xPool(
76 Reference< XNameContainer > xTableFamily( xPool->getByName(
"table" ), UNO_QUERY_THROW );
77 OUString aStdName(
"default" );
78 if( !sTableStyle.isEmpty() )
79 aStdName = sTableStyle;
80 Reference< XIndexAccess > xStyle( xTableFamily->getByName( aStdName ), UNO_QUERY_THROW );
93 const OUString& sTableStyle)
105 Size aSize(14100, 200);
158 if(pCheckForTextEdit && pCheckForTextEdit->
IsInEditMode())
185 case SID_INSERT_TABLE:
187 sal_Int32 nColumns = 0;
189 OUString sTableStyle;
201 nRows = pRows->GetValue();
204 sTableStyle = pStyle->GetValue();
206 if( (nColumns == 0) || (nRows == 0) )
212 [pDlg, pShell, pView, sTableStyle] (sal_Int32 nResult) {
213 if (nResult == RET_OK)
215 sal_Int32 nColumnsIn = pDlg->getColumns();
216 sal_Int32 nRowsIn = pDlg->getRows();
218 InsertTableImpl(pShell, pView, nColumnsIn, nRowsIn, sTableStyle);
229 OSL_ASSERT (pViewShell!=
nullptr);
231 rBindings.
Invalidate( SID_INSERT_TABLE,
true );
234 case SID_TABLEDESIGN:
239 u"SdTableDesignPanel",
253 OUString aActiveLayer = mpDrawView->GetActiveLayer();
257 ( !aActiveLayer.isEmpty() && pPV && ( pPV->
IsLayerLocked(aActiveLayer) ||
276 Size aSize( 200, 200 );
sal_uInt16 GetValue() const
tools::Long AdjustY(tools::Long nVertMove)
tools::Long AdjustX(tools::Long nHorzMove)
bool IsPresObj(const SdrObject *pObj)
void InsertPresObj(SdrObject *pObj, PresObjKind eKind)
inserts the given SdrObject into the presentation object list
void ReplaceObjectAtView(SdrObject *pOldObj, SdrPageView &rPV, SdrObject *pNewObj, bool bMark=true)
bool InsertObjectAtView(SdrObject *pObj, SdrPageView &rPV, SdrInsertFlags nOptions=SdrInsertFlags::NONE)
SfxStyleSheet * GetDefaultStyleSheet() const
SfxStyleSheetBasePool * GetStyleSheetPool() const
const SdrPage * GetPage(sal_uInt16 nPgNum) const
virtual void NbcInsertObject(SdrObject *pObj, size_t nPos=SAL_MAX_SIZE)
SdrObjUserCall * GetUserCall() const
SdrPage * getSdrPageFromSdrObject() const
virtual const tools::Rectangle & GetLogicRect() const
bool IsLayerVisible(const OUString &rName) const
bool IsLayerLocked(const OUString &rName) const
SdrPageView * GetSdrPageView() const
bool IsInEditMode() const
void Invalidate(sal_uInt16 nId)
void DisableItem(sal_uInt16 nWhich)
sal_uInt16 GetSlot() const
const T * GetArg(sal_uInt16 nSlotId) const
weld::Window * GetFrameWeld() const
void Done(bool bRemove=false)
SfxViewFrame * GetFrame() const
SfxViewShell * GetViewShell() const
SfxBindings & GetBindings()
void ShowChildWindow(sal_uInt16, bool bVisible=true)
SfxViewFrame & GetViewFrame() const
constexpr tools::Long getHeight() const
constexpr tools::Long Height() const
constexpr tools::Long getWidth() const
void setWidth(tools::Long nWidth)
void setHeight(tools::Long nHeight)
constexpr tools::Long Width() const
sal_uInt64 Seek(sal_uInt64 nPos)
virtual std::shared_ptr< SvxAbstractNewTableDialog > CreateSvxNewTableDialog(weld::Window *pParent)=0
static SvxAbstractDialogFactory * Create()
Base class of the stacked shells that provide graphical views to Draw and Impress documents and editi...
virtual SdPage * getCurrentPage() const override
inherited from sd::ViewShell
void FuTable(SfxRequest &rReq)
SdDrawDocument * GetDoc() const
::sd::Window * GetActiveWindow() const
The active window is usually the mpContentWindow.
vcl::Window * GetParentWindow() const
Return the window that is the parent of all controls of this view shell.
void Cancel()
this method deactivates the current function.
SD_DLLPUBLIC SfxViewFrame * GetViewFrame() const
virtual SdrEndTextEditKind SdrEndTextEdit(bool bDontDeleteReally=false) override
ends current text editing
SdrObject * GetEmptyPresentationObject(PresObjKind eKind)
void setTableStyle(const css::uno::Reference< css::container::XIndexAccess > &xAutoFormatStyle)
Point PixelToLogic(const Point &rDevicePt) const
Size GetOutputSizePixel() const
static bool runAsync(const std::shared_ptr< DialogController > &rController, const std::function< void(sal_Int32)> &)
#define TOOLS_WARN_EXCEPTION(area, stream)
static void InsertTableImpl(const DrawViewShell *pShell, ::sd::View *pView, sal_Int32 nColumns, sal_Int32 nRows, const OUString &sTableStyle)
static void apply_table_style(SdrTableObj *pObj, SdrModel const *pModel, const OUString &sTableStyle)
void CreateTableFromRTF(SvStream &rStream, SdDrawDocument *pModel)
void ImportAsRTF(SvStream &rStream, SdrTableObj &rObj)
SVXCORE_DLLPUBLIC SdrTextObj * DynCastSdrTextObj(SdrObject *)