include/svx/textchain.hxx | 23 ++++++++++++++++++++++- svx/source/svdraw/svdotext.cxx | 1 + svx/source/svdraw/textchain.cxx | 11 +++++++++++ 3 files changed, 34 insertions(+), 1 deletion(-)
New commits: commit 5b9dc85fd7134abba82dd1910f9fb726535f9e97 Author: matteocam <matteo.campane...@gmail.com> Date: Wed Jun 17 17:47:40 2015 -0400 Drafted classes and methods for implemening underflow as overwriting overflow Change-Id: Ie7a904dc0cae0b2403d777390f5ee8eae534a6f7 diff --git a/include/svx/textchain.hxx b/include/svx/textchain.hxx index 42dc999..b3eda9b 100644 --- a/include/svx/textchain.hxx +++ b/include/svx/textchain.hxx @@ -20,8 +20,28 @@ #ifndef INCLUDED_SVX_TEXTCHAIN_HXX #define INCLUDED_SVX_TEXTCHAIN_HXX +#include <map> + +class ImpChainLinkProperties; class SdrTextObj; +namespace rtl { + class OUString; +} + +typedef std::map< rtl::OUString, ImpChainLinkProperties > LinkPropertiesMaps; + + +class ImpChainLinkProperties +{ + public: + friend class TextChain; + + private: + // all kind of stuff such has MergeableFirstParagraphs or if overflapping should occurr on overflow +}; + + class TextChain { public: @@ -31,7 +51,8 @@ class TextChain { // return whether a paragraph is split between the two links in the argument bool GetLinksHaveMergeableFirstPara(SdrTextObj *pPrevLink, SdrTextObj *pNextLink); - + void SetOverwriteOnOverflow(SdrTextObj *, bool ); + bool GetOverwriteOnOverflow(SdrTextObj *pTarget); }; #endif // INCLUDED_SVX_TEXTCHAIN_HXX diff --git a/svx/source/svdraw/svdotext.cxx b/svx/source/svdraw/svdotext.cxx index 64d1937..2ff88aa 100644 --- a/svx/source/svdraw/svdotext.cxx +++ b/svx/source/svdraw/svdotext.cxx @@ -46,6 +46,7 @@ #include <svx/xflgrit.hxx> #include <svx/svdpool.hxx> #include <svx/xflclit.hxx> +#include <svx/textchain.hxx> #include <svl/style.hxx> #include <editeng/editeng.hxx> #include <editeng/overflowingtxt.hxx> diff --git a/svx/source/svdraw/textchain.cxx b/svx/source/svdraw/textchain.cxx index a4495b0..709d562 100644 --- a/svx/source/svdraw/textchain.cxx +++ b/svx/source/svdraw/textchain.cxx @@ -38,4 +38,15 @@ bool TextChain::GetLinksHaveMergeableFirstPara(SdrTextObj *pPrevLink, SdrTextObj // XXX return false; } + +void TextChain::SetOverwriteOnOverflow(SdrTextObj *pTarget, bool bOverwrite) +{ + +} + +bool TextChain::GetOverwriteOnOverflow(SdrTextObj *pTarget) +{ + +} + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits