10 #ifndef INCLUDED_SW_INC_TEXTBOXHELPER_HXX
11 #define INCLUDED_SW_INC_TEXTBOXHELPER_HXX
17 #include <com/sun/star/uno/Any.h>
18 #include <com/sun/star/uno/Type.h>
19 #include <com/sun/star/text/TextContentAnchorType.hpp>
55 using SavedLink = std::map<const SwFrameFormat*, const SwFrameFormat*>;
57 using SavedContent = std::map<const SwFrameFormat*, SwFormatContent>;
68 const css::uno::Any& rValue);
70 static void syncProperty(
SwFrameFormat* pShape, std::u16string_view rPropertyName,
71 const css::uno::Any& rValue);
74 css::uno::Any& rValue);
77 static css::text::TextContentAnchorType mapAnchorType(
const RndStdIds& rAnchorID);
83 static void updateTextBoxMargin(
SdrObject* pObj);
96 getOtherTextBoxFormat(css::uno::Reference<css::drawing::XShape>
const& xShape);
98 static css::uno::Reference<css::text::XTextFrame>
99 getUnoTextFrame(css::uno::Reference<css::drawing::XShape>
const& xShape);
112 static bool isTextBox(
const SwFrameFormat* pFormat, sal_uInt16 nType);
115 static bool hasTextFrame(
const SdrObject* pObj);
118 static sal_Int32 getCount(
const SwDoc& rDoc);
120 static sal_Int32 getCount(
SdrPage const* pPage);
124 static css::uno::Any getByIndex(
SdrPage const* pPage, sal_Int32 nIndex);
126 static sal_Int32 getOrdNum(
const SdrObject* pObject);
128 static void getShapeWrapThrough(
const SwFrameFormat* pTextBox,
bool& rWrapThrough);
132 std::map<const SwFrameFormat*, const SwFrameFormat*>& rLinks);
134 static void restoreLinks(std::set<ZSortFly>& rOld, std::vector<SwFrameFormat*>& rNew,
138 #endif // INCLUDED_SW_INC_TEXTBOXHELPER_HXX
Content, content of frame (header, footer, fly).
A TextBox is a TextFrame, that is tied to a drawinglayer shape.
std::map< const SwFrameFormat *, const SwFrameFormat * > SavedLink
Maps a draw format to a fly format.
Reference< deployment::XPackageRegistry > create(Reference< deployment::XPackageRegistry > const &xRootRegistry, OUString const &context, OUString const &cachePath, Reference< XComponentContext > const &xComponentContext)
OUString getProperty(uno::Reference< beans::XPropertyContainer > const &rxPropertyContainer, OUString const &rName)
Helper to copy paragraph-bound Flys.
std::map< const SwFrameFormat *, SwFormatContent > SavedContent
Maps a draw format to content.
css::uno::Any SAL_CALL queryInterface(const css::uno::Type &rType, Interface1 *p1)