]> git.lyx.org Git - features.git/commit
Change the interface to a paragraph's layout. We still store a LayoutPtr, but now...
authorRichard Heck <rgheck@comcast.net>
Thu, 6 Mar 2008 21:31:27 +0000 (21:31 +0000)
committerRichard Heck <rgheck@comcast.net>
Thu, 6 Mar 2008 21:31:27 +0000 (21:31 +0000)
commita01cb111a07717a337c18860216359cdbe22af3c
tree38ffec6cc197d7689d7d98ea930d36c56b6b67ec
parent258cca4b3be2353a5c4f9a677e7f03246411e3d1
Change the interface to a paragraph's layout. We still store a LayoutPtr, but now privately, and make a Layout const & available to clients.

The need for a LayoutPtr arises from the fact that (a) we do not want to give our clients a Layout &, since we do not want them to be able to change our Layout; but (b) we also need to be able to change which layout is ours. So we cannot store a Layout const &. Or so it seems to the compiler.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23522 a592a061-630c-0410-9148-cb99ea01b6c8
29 files changed:
src/BaseClassList.h
src/Buffer.cpp
src/Cursor.cpp
src/CutAndPaste.cpp
src/Layout.cpp
src/Layout.h
src/Paragraph.cpp
src/Paragraph.h
src/ParagraphMetrics.cpp
src/ParagraphParameters.cpp
src/Text.cpp
src/Text2.cpp
src/Text3.cpp
src/TextClass.h
src/TextMetrics.cpp
src/TocBackend.cpp
src/buffer_funcs.cpp
src/frontends/qt4/GuiParagraph.cpp
src/frontends/qt4/GuiToolbar.cpp
src/insets/InsetFoot.cpp
src/insets/InsetText.cpp
src/mathed/InsetMathMBox.cpp
src/mathed/InsetMathMBox.h
src/output_docbook.cpp
src/output_latex.cpp
src/output_plaintext.cpp
src/paragraph_funcs.cpp
src/rowpainter.cpp
src/sgml.cpp