On 26/09/13 17:23, Gay, Matthieu wrote:
Hello,
Is this possible to have the checkbox
Format > Paragraph > Text Flow > Breaks
always check for a table ?
you mean if the paragraph is in a table then it should always have a
page break?
i'm sure i don't understand what you mean because that doesn't make sense :)
This bug is demanding it
https://bugassistant.libreoffice.org/show_bug.cgi?id=39400 and for a
malformated RTF, I also need it.
suspect the problem could be that paragraph attributes (including the
page break) are copied to the target paragraph; they should be copied
when the whole paragraph is copied but not if less than the whole
paragraph is selected.
the code for that is somewhere in sw/source/core/txtnode/, likely
SwTxtNode::CopyText
If not, is this possible to tell me where the checkbox is managed int he
code?
The breaks are represented in Writer as a pool item with id RES_BREAK
and class SvxFmtBreakItem (see include/editeng/formatbreakitem.hxx).
... which uses this enum from svxenum.hxx:
enum SvxBreak
{
SVX_BREAK_NONE,
SVX_BREAK_COLUMN_BEFORE,
SVX_BREAK_COLUMN_AFTER,
SVX_BREAK_COLUMN_BOTH,
SVX_BREAK_PAGE_BEFORE,
SVX_BREAK_PAGE_AFTER,
SVX_BREAK_PAGE_BOTH,
SVX_BREAK_END
};
the item exists in the SwAttrSet of the SwTxtNode... and it's mapped to
the UNO property "BreakType".
Context
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.