16 #include <strings.hrc>
29 #include <unoprnms.hxx>
44 #define TEXT_PADDING 3
45 #define BOX_DISTANCE 3
46 #define BUTTON_WIDTH 12
51 , m_xPushButton(m_xBuilder->weld_button(
"button"))
52 , m_sLabel(
SwResId(STR_UNFLOAT_TABLE))
77 Point aBoxPos(aTopRightPixel.X() - aBoxSize.Width() -
BOX_DISTANCE, aTopRightPixel.Y());
104 pTableFrame =
static_cast<SwTabFrame*
>(pLower);
110 if (pTableFrame ==
nullptr)
115 if (pAnchoreFrame ==
nullptr || !pAnchoreFrame->
IsTextFrame())
125 if (pTableNode ==
nullptr)
138 if (aGrabBagItem.
GetGrabBag().erase(
"TablePosition"))
143 const css::uno::Reference<css::beans::XPropertySet> xSet(xTable, css::uno::UNO_QUERY);
161 SwPaM aPaMTable(*pTableNode);
201 const ::tools::Rectangle aRect(
217 Point aTextPos(nTextOffsetX, nTextOffsetY);
220 aFontSize.
getX(), aFontSize.
getY(),
static_cast<double>(aTextPos.X()),
221 static_cast<double>(aTextPos.Y())));
225 aTextMatrix,
m_sLabel, 0,
m_sLabel.getLength(), std::vector<double>(), aFontAttr,
226 css::lang::Locale(), aLineColor)));
230 std::unique_ptr<drawinglayer::processor2d::BaseProcessor2D> pProcessor(
234 pProcessor->process(aSeq);
virtual Point GetPosPixel() const
const SwEndNode * EndOfSectionNode() const
Base class of the Writer layout elements.
Represents the visualization of a paragraph.
static css::uno::Reference< css::text::XTextTable > CreateXTextTable(SwFrameFormat *pFrameFormat)
virtual const SwFlyFrameFormat * GetFormat() const override
Pagedescriptor Client of SwPageDesc that is "described" by the attribute.
SwPageDesc * GetPageDesc()
static Color & GetHeaderFooterMarkColor()
const SwTable * GetTable() const
virtual void InsertItemSet(const SwPaM &rRg, const SfxItemSet &, const SetAttrMode nFlags=SetAttrMode::DEFAULT, SwRootFrame const *pLayout=nullptr)=0
virtual void SetModified()=0
Must be called manually at changes of format.
SwTabFrame is one table in the document layout, containing rows (which contain cells).
virtual Size GetSizePixel() const
IDocumentUndoRedo & GetIDocumentUndoRedo()
IDocumentContentOperations const & getIDocumentContentOperations() const
SwTableFormat * GetFrameFormat()
attribute::FontAttribute getFontAttributeFromVclFont(basegfx::B2DVector &o_rSize, const vcl::Font &rFont, bool bRTL, bool bBiDiStrong)
#define UNO_NAME_TABLE_INTEROP_GRAB_BAG
tools::Long GetAscent() const
const BorderLinePrimitive2D *pCandidateB assert(pCandidateA)
const vcl::Font & GetFont() const
virtual void DelLayoutFormat(SwFrameFormat *pFormat)=0
virtual void DelAllUndoObj()=0
Delete all Undo actions.
B2DHomMatrix createScaleTranslateB2DHomMatrix(double fScaleX, double fScaleY, double fTranslateX, double fTranslateY)
FontMetric GetFontMetric() const
bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
virtual bool DoesUndo() const =0
Is Undo enabled?
PaM is Point and Mark: a selection of the document model.
SwTextNode * GetTextNodeFirst()
Window class for the Writer edit area, this is the one handling mouse and keyboard events and doing t...
bool SetOutputSizePixel(const Size &rNewSize, bool bErase=true)
static bool GetLayoutRTL()
const std::map< OUString, css::uno::Any > & GetGrabBag() const
IDocumentState const & getIDocumentState() const
Marks a node in the document model.
OUString SwResId(const char *pId)
virtual bool MoveNodeRange(SwNodeRange &, SwNodeIndex &, SwMoveFlags)=0
IDocumentLayoutAccess const & getIDocumentLayoutAccess() const
virtual const SwFormatPageDesc & GetPageDescItem() const override
virtual void SetPosSizePixel(const Point &rNewPos, const Size &rNewSize)
Point PixelToLogic(const Point &rDevicePt) const
Point LogicToPixel(const Point &rLogicPt) const
std::unique_ptr< drawinglayer::processor2d::BaseProcessor2D > createBaseProcessor2DFromOutputDevice(OutputDevice &rTargetOutDev, const drawinglayer::geometry::ViewInformation2D &rViewInformation2D)
constexpr TypedWhichId< SfxGrabBagItem > RES_FRMATR_GRABBAG(129)
css::uno::Reference< css::graphic::XPrimitive2D > Primitive2DReference
general base class for all free-flowing frames
tools::Long GetTextWidth(const OUString &rStr, sal_Int32 nIndex=0, sal_Int32 nLen=-1, vcl::TextLayoutCache const *=nullptr, SalLayoutGlyphs const *const pLayoutCache=nullptr) const
Sequence< sal_Int8 > aSeq
basegfx::BColor getBColor() const
bool GetTextBoundRect(tools::Rectangle &rRect, const OUString &rStr, sal_Int32 nBase=0, sal_Int32 nIndex=0, sal_Int32 nLen=-1, sal_uLong nLayoutWidth=0, const tools::Long *pDXArray=nullptr, const SalLayoutGlyphs *pGlyphs=nullptr) const
VirtualDevice * get() const
const SfxPoolItem * GetItem(sal_uInt16 nWhich, bool bSearchInParent=true) const
tools::Long GetLineHeight() const
SwTableNode * GetTableNode() const
void Show(bool bVisible=true, ShowFlags nFlags=ShowFlags::NONE)