29#include <unoprnms.hxx>
46#define BUTTON_WIDTH 12
51 , m_xPushButton(m_xBuilder->weld_button(
"button"))
52 , m_sLabel(
SwResId(STR_UNFLOAT_TABLE))
105 pTableFrame =
static_cast<SwTabFrame*
>(pLower);
111 if (pTableFrame ==
nullptr)
116 if (pAnchoreFrame ==
nullptr || !pAnchoreFrame->
IsTextFrame())
126 if (pTableNode ==
nullptr)
135 assert(pTableFormat);
139 if (aGrabBagItem.
GetGrabBag().erase(
"TablePosition"))
159 GetEditWin()->GetView().GetWrtShell().GetAttrPool());
161 SwPaM aPaMTable(*pTableNode);
203 const ::tools::Rectangle aRect(
220 Point aTextPos(nTextOffsetX, nTextOffsetY);
223 aFontSize.
getX(), aFontSize.
getY(),
static_cast<double>(aTextPos.
X()),
224 static_cast<double>(aTextPos.
Y())));
229 std::move(aFontAttr), css::lang::Locale(), aLineColor)));
233 std::unique_ptr<drawinglayer::processor2d::BaseProcessor2D> pProcessor(
236 pProcessor->process(
aSeq);
static bool GetLayoutRTL()
basegfx::BColor getBColor() const
tools::Long GetLineHeight() const
tools::Long GetAscent() const
virtual bool MoveNodeRange(SwNodeRange &, SwNode &, SwMoveFlags)=0
virtual void InsertItemSet(const SwPaM &rRg, const SfxItemSet &, const SetAttrMode nFlags=SetAttrMode::DEFAULT, SwRootFrame const *pLayout=nullptr)=0
virtual void DelLayoutFormat(SwFrameFormat *pFormat)=0
virtual void SetModified()=0
Must be called manually at changes of format.
constexpr tools::Long Y() const
void setX(tools::Long nX)
constexpr tools::Long X() const
const std::map< OUString, css::uno::Any > & GetGrabBag() const
bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
const SfxPoolItem * GetItem(sal_uInt16 nWhich, bool bSearchInParent=true) const
const SfxPoolItem * Put(const SfxPoolItem &rItem, sal_uInt16 nWhich)
constexpr tools::Long Width() const
IDocumentState const & getIDocumentState() const
IDocumentContentOperations const & getIDocumentContentOperations() const
IDocumentUndoRedo & GetIDocumentUndoRedo()
IDocumentLayoutAccess const & getIDocumentLayoutAccess() const
Window class for the Writer edit area, this is the one handling mouse and keyboard events and doing t...
general base class for all free-flowing frames
virtual const SwFlyFrameFormat * GetFormat() const override
Pagedescriptor Client of SwPageDesc that is "described" by the attribute.
SwPageDesc * GetPageDesc()
Base class of the Writer layout elements.
Marks a node in the document model.
const SwEndNode * EndOfSectionNode() const
PaM is Point and Mark: a selection of the document model.
SwTabFrame is one table in the document layout, containing rows (which contain cells).
const SwTable * GetTable() const
SwTableNode * GetTableNode() const
SwTableFormat * GetFrameFormat()
Represents the visualization of a paragraph.
virtual const SwFormatPageDesc & GetPageDescItem() const override
SwTextNode * GetTextNodeFirst()
const Color & GetHeaderFooterMarkColor() const
static const SwViewOption & GetCurrentViewOptions()
static rtl::Reference< SwXTextTable > CreateXTextTable(SwFrameFormat *pFrameFormat)
reference_type * get() const
virtual Point GetPosPixel() const
void Show(bool bVisible=true, ShowFlags nFlags=ShowFlags::NONE)
virtual Size GetSizePixel() const
virtual void SetPosSizePixel(const Point &rNewPos, const Size &rNewSize)
constexpr TypedWhichId< SfxGrabBagItem > RES_FRMATR_GRABBAG(136)
Sequence< sal_Int8 > aSeq
B2DHomMatrix createScaleTranslateB2DHomMatrix(double fScaleX, double fScaleY, double fTranslateX, double fTranslateY)
attribute::FontAttribute getFontAttributeFromVclFont(basegfx::B2DVector &o_rSize, const vcl::Font &rFont, bool bRTL, bool bBiDiStrong)
std::unique_ptr< BaseProcessor2D > createProcessor2DFromOutputDevice(OutputDevice &rTargetOutDev, const drawinglayer::geometry::ViewInformation2D &rViewInformation2D)
o3tl::strong_int< sal_Int32, struct Tag_SwNodeOffset > SwNodeOffset
SwNodeOffset abs(const SwNodeOffset &a)
OUString SwResId(TranslateId aId)
constexpr OUStringLiteral UNO_NAME_TABLE_INTEROP_GRAB_BAG