lyx_mirror/src
Abdelrazak Younes 9092bffc32 This patch solves this crash (due to an assertion):
1) Open EmbeddedObject.lyx
2) Open Toc
3) Click on section 7.2.2 which is in the second child document
4) assertion.

This commit adds proper support for multi-part documents. With this each child document has access to the _full_ TOC tree (including LOT and LOF). This enables to switch between master and child document using the TOC.

* buffer_funcs.cpp:
  - updateLabels(): do not emit Buffer::structureChanged() signal for child document
  - checkBufferStructure(): update the structure of the master document.

* ControlToc.cpp: always use the TocBackend of the master document.

* LyXView::connectBuffer(): connect structureChanged() of master document.

* TocBackend:
  - TocItem: get rid of child_ member.
  - TocBackend::item(): only compare items from the same document.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18386 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-17 19:19:37 +00:00
..
client Rename files in src/support, step one. 2007-04-26 05:12:52 +00:00
frontends This patch solves this crash (due to an assertion): 2007-05-17 19:19:37 +00:00
graphics rename InsetBase to Inset 2007-04-29 13:39:47 +00:00
insets InsetListings: fix bug 3626 2007-05-16 20:34:57 +00:00
mathed * src/mathed/IndetMathNest.cpp (getStatus): 2007-05-15 17:33:42 +00:00
support Fix files with spaces in converter cache; 2007-05-17 08:31:00 +00:00
tex2lyx Patch from "hzluo" <memcache@gmail.com>: 2007-05-10 10:35:57 +00:00
ASpell_local.h Rename .C ==> .cpp for files in src/ 2007-04-26 04:46:45 +00:00
ASpell.cpp Rename .C ==> .cpp for files in src/ 2007-04-26 04:46:45 +00:00
Author.cpp Rename .C ==> .cpp for files in src/ 2007-04-26 04:46:45 +00:00
Author.h Rename .C ==> .cpp for files in src/ 2007-04-26 04:46:45 +00:00
Bidi.cpp Fix cursor movement inside insets within RTL mode. 2007-05-16 09:35:12 +00:00
Bidi.h Fix cursor movement inside insets within RTL mode. 2007-05-16 09:35:12 +00:00
boost.cpp Rename .C ==> .cpp for files in src/ 2007-04-26 04:46:45 +00:00
Box.cpp Rename .C ==> .cpp for files in src/ 2007-04-26 04:46:45 +00:00
Box.h Rename .C ==> .cpp for files in src/ 2007-04-26 04:46:45 +00:00
BranchList.cpp rename LColor into Color 2007-04-26 17:34:20 +00:00
BranchList.h I guess Windows folks are not too happy with files named color.h and Color.h 2007-04-26 19:21:38 +00:00
buffer_funcs.cpp This patch solves this crash (due to an assertion): 2007-05-17 19:19:37 +00:00
buffer_funcs.h Support code for advanced Toc management and bug correction. 2007-03-12 11:23:41 +00:00
Buffer.cpp Temptatively fix bug 3546 by testing for more exceptionm types and by unifying the possible errors. I think the reason why we did not have a crash on windows is because we don't use wchar_t and the related basic_filebuf etc. 2007-05-16 10:39:41 +00:00
Buffer.h LyXText -> Text 2007-04-29 23:33:02 +00:00
BufferList.cpp Last (?) batch of renames: 2007-04-28 20:44:46 +00:00
BufferList.h Rename .C ==> .cpp for files in src/ 2007-04-26 04:46:45 +00:00
BufferParams.cpp BufferParams.cpp: forgot this in last commit 2007-05-12 00:22:37 +00:00
BufferParams.h Add support for listings package. Two listings command \lstinline, \lstinputlisting and an environment \lstlisting are supported, along with preamble \lstset. \lstinputlisting is implemented through Include dialog, and the other two are implemented with a new inset listings, along with its dialog. 2007-05-09 19:11:42 +00:00
bufferview_funcs.cpp rename LyXFont to Font except in tex2lyx 2007-04-29 18:17:15 +00:00
bufferview_funcs.h rename LyXFont to Font except in tex2lyx 2007-04-29 18:17:15 +00:00
BufferView.cpp output changes by means of xcolor and soul 2007-05-13 15:17:57 +00:00
BufferView.h LyXText -> Text 2007-04-29 23:33:02 +00:00
Bullet.cpp Rename .C ==> .cpp for files in src/ 2007-04-26 04:46:45 +00:00
Bullet.h
callback.cpp bug 3203: try to load as local 8-bit encoded when it is not utf-8 2007-05-15 18:45:23 +00:00
callback.h Last (?) batch of renames: 2007-04-28 20:44:46 +00:00
ChangeLog rename LCursor->Cursor 2007-04-26 14:56:30 +00:00
Changes.cpp output changes by means of xcolor and soul 2007-05-13 15:17:57 +00:00
Changes.h change tracking: 2007-05-08 17:46:03 +00:00
Chktex.cpp Rename files in src/support, step one. 2007-04-26 05:12:52 +00:00
Chktex.h rename LyXLex into Lexer 2007-04-26 11:30:54 +00:00
Color.cpp * src/Color.cpp: 2007-05-13 16:35:31 +00:00
Color.h output changes by means of xcolor and soul 2007-05-13 15:17:57 +00:00
Converter.cpp Last (?) batch of renames: 2007-04-28 20:44:46 +00:00
Converter.h Rename .C ==> .cpp for files in src/ 2007-04-26 04:46:45 +00:00
ConverterCache.cpp Fix files with spaces in converter cache; 2007-05-17 08:31:00 +00:00
ConverterCache.h Fix files with spaces in converter cache; 2007-05-17 08:31:00 +00:00
CoordCache.cpp * Inset and derivatives: insetName() -> name() 2007-04-30 14:39:09 +00:00
CoordCache.h LyXText -> Text 2007-04-29 23:33:02 +00:00
Counters.cpp Patch from "hzluo" <memcache@gmail.com>: 2007-05-10 10:35:57 +00:00
Counters.h Rename .C ==> .cpp for files in src/ 2007-04-26 04:46:45 +00:00
Cursor.cpp Fix cursor movement inside insets by Dov Feldstern. 2007-05-15 17:19:05 +00:00
Cursor.h Fix cursor movement inside insets by Dov Feldstern. 2007-05-15 17:19:05 +00:00
CursorSlice.cpp LyXText -> Text 2007-04-29 23:33:02 +00:00
CursorSlice.h LyXText -> Text 2007-04-29 23:33:02 +00:00
CutAndPaste.cpp Bug 3600, not a real solution but prevents lyx from crashing 2007-05-14 03:07:00 +00:00
CutAndPaste.h rename LyXTextClass* into TextClass* 2007-04-29 19:53:54 +00:00
debug.cpp Rename .C ==> .cpp for files in src/ 2007-04-26 04:46:45 +00:00
debug.h avoid evalutation of lyxerr arguments unless really needed 2007-04-01 10:09:49 +00:00
DepTable.cpp Rename .C ==> .cpp for files in src/ 2007-04-26 04:46:45 +00:00
DepTable.h Rename files in src/support, step one. 2007-04-26 05:12:52 +00:00
Dimension.cpp Rename .C ==> .cpp for files in src/ 2007-04-26 04:46:45 +00:00
Dimension.h Rename .C ==> .cpp for files in src/ 2007-04-26 04:46:45 +00:00
DispatchResult.h Last (?) batch of renames: 2007-04-28 20:44:46 +00:00
DocIterator.cpp Properly search for relevant TocItem. Now works fine with sections inside insets. 2007-05-15 17:07:55 +00:00
DocIterator.h Properly search for relevant TocItem. Now works fine with sections inside insets. 2007-05-15 17:07:55 +00:00
Encoding.cpp code formatting. 2007-05-08 13:21:50 +00:00
Encoding.h Georg's patch for bug 3043: 2007-05-06 20:26:02 +00:00
ErrorList.cpp Rename .C ==> .cpp for files in src/ 2007-04-26 04:46:45 +00:00
ErrorList.h Rename .C ==> .cpp for files in src/ 2007-04-26 04:46:45 +00:00
Exporter.cpp rename LyXTextClass* into TextClass* 2007-04-29 19:53:54 +00:00
Exporter.h Rename files in src/support, step one. 2007-04-26 05:12:52 +00:00
factory.cpp Add support for listings package. Two listings command \lstinline, \lstinputlisting and an environment \lstlisting are supported, along with preamble \lstset. \lstinputlisting is implemented through Include dialog, and the other two are implemented with a new inset listings, along with its dialog. 2007-05-09 19:11:42 +00:00
factory.h rename InsetBase to Inset 2007-04-29 13:39:47 +00:00
Floating.cpp Rename .C ==> .cpp for files in src/ 2007-04-26 04:46:45 +00:00
Floating.h
FloatList.cpp Rename .C ==> .cpp for files in src/ 2007-04-26 04:46:45 +00:00
FloatList.h
Font.cpp Improve Farsi support by Mostafa Vahedi. Arabic support now depends on 'ArabTeX' and Farsi support depends on the 'Arabi' package. 2007-05-14 09:34:53 +00:00
Font.h Georg's patch for bug 3043: 2007-05-06 20:26:02 +00:00
FontIterator.cpp LyXText -> Text 2007-04-29 23:33:02 +00:00
FontIterator.h LyXText -> Text 2007-04-29 23:33:02 +00:00
Format.cpp rename LyXServer into Server 2007-04-29 16:22:46 +00:00
Format.h Rename .C ==> .cpp for files in src/ 2007-04-26 04:46:45 +00:00
FuncRequest.cpp Rename .C ==> .cpp for files in src/ 2007-04-26 04:46:45 +00:00
FuncRequest.h Rename .C ==> .cpp for files in src/ 2007-04-26 04:46:45 +00:00
FuncStatus.cpp Rename .C ==> .cpp for files in src/ 2007-04-26 04:46:45 +00:00
FuncStatus.h
gettext.cpp Rename .C ==> .cpp for files in src/ 2007-04-26 04:46:45 +00:00
gettext.h
Graph.cpp Rename .C ==> .cpp for files in src/ 2007-04-26 04:46:45 +00:00
Graph.h Rename .C ==> .cpp for files in src/ 2007-04-26 04:46:45 +00:00
Importer.cpp Last (?) batch of renames: 2007-04-28 20:44:46 +00:00
Importer.h Rename .C ==> .cpp for files in src/ 2007-04-26 04:46:45 +00:00
InsetIterator.cpp rename InsetBase to Inset 2007-04-29 13:39:47 +00:00
InsetIterator.h rename InsetBase to Inset 2007-04-29 13:39:47 +00:00
InsetList.cpp rename InsetBase to Inset 2007-04-29 13:39:47 +00:00
InsetList.h rename InsetBase to Inset 2007-04-29 13:39:47 +00:00
Intl.cpp Rename .C ==> .cpp for files in src/ 2007-04-26 04:46:45 +00:00
Intl.h consolidate tex-accent.* Trans.* KmodInfo.h into Trans.{h,cpp}. All stuff was used at most once and basically implementation details 2007-04-30 21:44:00 +00:00
ISpell.cpp Rename files in src/support, step one. 2007-04-26 05:12:52 +00:00
ISpell.h Rename .C ==> .cpp for files in src/ 2007-04-26 04:46:45 +00:00
KeyMap.cpp rename LyXKeySym into KeySymbol 2007-04-27 08:43:38 +00:00
KeyMap.h rename LyXKeySym into KeySymbol 2007-04-27 08:43:38 +00:00
KeySequence.cpp rename LyXKeySym into KeySymbol 2007-04-27 08:43:38 +00:00
KeySequence.h rename LyXKeySym into KeySymbol 2007-04-27 08:43:38 +00:00
Language.cpp rename LyXLex into Lexer 2007-04-26 11:30:54 +00:00
Language.h Rename .C ==> .cpp for files in src/ 2007-04-26 04:46:45 +00:00
LaTeX.cpp Rename files in src/support, step one. 2007-04-26 05:12:52 +00:00
LaTeX.h Rename files in src/support, step one. 2007-04-26 05:12:52 +00:00
LaTeXFeatures.cpp * src/LaTeXFeatures.cpp: 2007-05-14 06:28:47 +00:00
LaTeXFeatures.h Georg's patch for bug 3043: 2007-05-06 20:26:02 +00:00
Layout.cpp rename LyXTextClass* into TextClass* 2007-04-29 19:53:54 +00:00
Layout.h resolve the layout.h <=> Layout.h conflict 2007-04-29 22:04:32 +00:00
Length.cpp rename LyXFont to Font except in tex2lyx 2007-04-29 18:17:15 +00:00
Length.h rename/merge LyXLength related stuff 2007-04-28 12:58:49 +00:00
lengthcommon.cpp rename/merge LyXLength related stuff 2007-04-28 12:58:49 +00:00
lengthcommon.h rename/merge LyXLength related stuff 2007-04-28 12:58:49 +00:00
Lexer.cpp rename LyXLex into Lexer 2007-04-26 11:30:54 +00:00
Lexer.h rename LyXLex into Lexer 2007-04-26 11:30:54 +00:00
lfuns.h Add support for listings package. Two listings command \lstinline, \lstinputlisting and an environment \lstlisting are supported, along with preamble \lstset. \lstinputlisting is implemented through Include dialog, and the other two are implemented with a new inset listings, along with its dialog. 2007-05-09 19:11:42 +00:00
LyX.cpp * LyX::addFileToLoad(): new method for double-clicked file icons on MacOS. 2007-05-04 17:20:53 +00:00
LyX.h * LyX::addFileToLoad(): new method for double-clicked file icons on MacOS. 2007-05-04 17:20:53 +00:00
LyXAction.cpp Add support for listings package. Two listings command \lstinline, \lstinputlisting and an environment \lstlisting are supported, along with preamble \lstset. \lstinputlisting is implemented through Include dialog, and the other two are implemented with a new inset listings, along with its dialog. 2007-05-09 19:11:42 +00:00
LyXAction.h
lyxfind.cpp LyXText -> Text 2007-04-29 23:33:02 +00:00
lyxfind.h LyXText -> Text 2007-04-29 23:33:02 +00:00
LyXFunc.cpp Add support for listings package. Two listings command \lstinline, \lstinputlisting and an environment \lstlisting are supported, along with preamble \lstset. \lstinputlisting is implemented through Include dialog, and the other two are implemented with a new inset listings, along with its dialog. 2007-05-09 19:11:42 +00:00
LyXFunc.h LyXText -> Text 2007-04-29 23:33:02 +00:00
lyxlayout_ptr_fwd.h rename LyXLayout into Layout 2007-04-29 18:58:28 +00:00
LyXRC.cpp Enable RTL language support and Converter cache by default. 2007-05-11 13:01:59 +00:00
LyXRC.h rename LyXLex into Lexer 2007-04-26 11:30:54 +00:00
LyXVC.cpp Last (?) batch of renames: 2007-04-28 20:44:46 +00:00
LyXVC.h Rename .C ==> .cpp for files in src/ 2007-04-26 04:46:45 +00:00
main.cpp Rename .C ==> .cpp for files in src/ 2007-04-26 04:46:45 +00:00
Makefile.am André was nice to scons and forgot autotools :-) 2007-05-15 11:27:04 +00:00
MenuBackend.cpp rename LyXTextClass* into TextClass* 2007-04-29 19:53:54 +00:00
MenuBackend.h rename LyXLex into Lexer 2007-04-26 11:30:54 +00:00
Messages.cpp Rename files in src/support, step one. 2007-04-26 05:12:52 +00:00
Messages.h Rename .C ==> .cpp for files in src/ 2007-04-26 04:46:45 +00:00
MetricsInfo.cpp rename LyXFont to Font except in tex2lyx 2007-04-29 18:17:15 +00:00
MetricsInfo.h rename LyXFont to Font except in tex2lyx 2007-04-29 18:17:15 +00:00
Mover.cpp Rename files in src/support, step one. 2007-04-26 05:12:52 +00:00
Mover.h Rename .C ==> .cpp for files in src/ 2007-04-26 04:46:45 +00:00
output_docbook.cpp rename LyXTextClass* into TextClass* 2007-04-29 19:53:54 +00:00
output_docbook.h remove ParagraphList_fwd.h 2007-04-26 08:30:11 +00:00
output_latex.cpp output_latex.cpp: Fix bug 3571: 2007-05-11 23:43:17 +00:00
output_latex.h remove ParagraphList_fwd.h 2007-04-26 08:30:11 +00:00
output_plaintext.cpp "fix" bug #3332 (plain text export depends on the menu language) 2007-05-01 08:26:40 +00:00
output_plaintext.h
output.cpp Last (?) batch of renames: 2007-04-28 20:44:46 +00:00
output.h
OutputParams.cpp Rename .C ==> .cpp for files in src/ 2007-04-26 04:46:45 +00:00
OutputParams.h rename LyXFont to Font except in tex2lyx 2007-04-29 18:17:15 +00:00
paper.h
paragraph_funcs.cpp LyXText -> Text 2007-04-29 23:33:02 +00:00
paragraph_funcs.h rename LyXFont to Font except in tex2lyx 2007-04-29 18:17:15 +00:00
Paragraph.cpp fix bug 2758: 2007-05-14 09:24:17 +00:00
Paragraph.h remove RowList_fwd.h. Not really needed 2007-04-30 22:02:15 +00:00
ParagraphList.h remove ParagraphList_fwd.h 2007-04-26 08:30:11 +00:00
ParagraphMetrics.cpp rename LyXTextClass* into TextClass* 2007-04-29 19:53:54 +00:00
ParagraphMetrics.h remove RowList_fwd.h. Not really needed 2007-04-30 22:02:15 +00:00
ParagraphParameters.cpp distribute content sof tex-strings.cpp to their respective unique places of usage 2007-04-30 21:01:24 +00:00
ParagraphParameters.h resolve the layout.h <=> Layout.h conflict 2007-04-29 22:04:32 +00:00
ParIterator.cpp LyXText -> Text 2007-04-29 23:33:02 +00:00
ParIterator.h LyXText -> Text 2007-04-29 23:33:02 +00:00
pch.h
PrinterParams.cpp Rename .C ==> .cpp for files in src/ 2007-04-26 04:46:45 +00:00
PrinterParams.h Rename .C ==> .cpp for files in src, part one 2007-04-26 04:41:58 +00:00
PSpell.cpp Rename .C ==> .cpp for files in src/ 2007-04-26 04:46:45 +00:00
PSpell.h Rename .C ==> .cpp for files in src/ 2007-04-26 04:46:45 +00:00
Row.cpp Rename .C ==> .cpp for files in src/ 2007-04-26 04:46:45 +00:00
Row.h Rename .C ==> .cpp for files in src/ 2007-04-26 04:46:45 +00:00
rowpainter.cpp output changes by means of xcolor and soul 2007-05-13 15:17:57 +00:00
rowpainter.h LyXText -> Text 2007-04-29 23:33:02 +00:00
Section.cpp rename LyXFont to Font except in tex2lyx 2007-04-29 18:17:15 +00:00
Section.h rename LyXFont to Font except in tex2lyx 2007-04-29 18:17:15 +00:00
Server.cpp rename LyXServer into Server 2007-04-29 16:22:46 +00:00
Server.h rename LyXServer into Server 2007-04-29 16:22:46 +00:00
ServerSocket.cpp rename LyXServer into Server 2007-04-29 16:22:46 +00:00
ServerSocket.h rename LyXServer into Server 2007-04-29 16:22:46 +00:00
Session.cpp Rename files in src/support, step one. 2007-04-26 05:12:52 +00:00
Session.h Rename files in src/support, step one. 2007-04-26 05:12:52 +00:00
sgml.cpp LyXText -> Text 2007-04-29 23:33:02 +00:00
sgml.h
Spacing.cpp Rename .C ==> .cpp for files in src/ 2007-04-26 04:46:45 +00:00
Spacing.h
SpellBase.cpp Rename .C ==> .cpp for files in src/ 2007-04-26 04:46:45 +00:00
SpellBase.h
stamp-h.in
TexRow.cpp Rename .C ==> .cpp for files in src/ 2007-04-26 04:46:45 +00:00
TexRow.h Rename .C ==> .cpp for files in src/ 2007-04-26 04:46:45 +00:00
Text2.cpp [Bugs 3461 and 3630] Allow real_current_font to be reset in Text::setFont even when we have a selection. 2007-05-17 12:17:38 +00:00
Text3.cpp * src/Text3.cpp: record undo in specialChar. 2007-05-17 08:38:41 +00:00
Text.cpp Separate caption and label from InsetListingsParams and handle them separately in listings and Include dialog, from Jurgen 2007-05-14 20:42:14 +00:00
Text.h fix bug 2758: 2007-05-14 09:24:17 +00:00
TextClass.cpp rename LyXTextClass* into TextClass* 2007-04-29 19:53:54 +00:00
TextClass.h rename LyXTextClass* into TextClass* 2007-04-29 19:53:54 +00:00
TextClassList.cpp rename LyXTextClass* into TextClass* 2007-04-29 19:53:54 +00:00
TextClassList.h rename LyXTextClass* into TextClass* 2007-04-29 19:53:54 +00:00
TextMetrics.cpp * src/TextMetrics.cpp (setHeightOfRow): 2007-05-05 12:06:37 +00:00
TextMetrics.h LyXText -> Text 2007-04-29 23:33:02 +00:00
Thesaurus.cpp Rename .C ==> .cpp for files in src/ 2007-04-26 04:46:45 +00:00
Thesaurus.h
toc.cpp LyXText -> Text 2007-04-29 23:33:02 +00:00
toc.h rename LCursor->Cursor 2007-04-26 14:56:30 +00:00
TocBackend.cpp This patch solves this crash (due to an assertion): 2007-05-17 19:19:37 +00:00
TocBackend.h This patch solves this crash (due to an assertion): 2007-05-17 19:19:37 +00:00
ToolbarBackend.cpp Fix bug 3508: 2007-05-06 07:26:51 +00:00
ToolbarBackend.h rename LyXLex into Lexer 2007-04-26 11:30:54 +00:00
Trans.cpp consolidate tex-accent.* Trans.* KmodInfo.h into Trans.{h,cpp}. All stuff was used at most once and basically implementation details 2007-04-30 21:44:00 +00:00
Trans.h consolidate tex-accent.* Trans.* KmodInfo.h into Trans.{h,cpp}. All stuff was used at most once and basically implementation details 2007-04-30 21:44:00 +00:00
Undo.cpp LyXText -> Text 2007-04-29 23:33:02 +00:00
Undo.h rename MathArray into MathData 2007-04-26 16:06:39 +00:00
update_flags.h Last (?) batch of renames: 2007-04-28 20:44:46 +00:00
Variables.cpp Rename .C ==> .cpp for files in src/ 2007-04-26 04:46:45 +00:00
Variables.h
VCBackend.cpp Rename files in src/support, step one. 2007-04-26 05:12:52 +00:00
VCBackend.h Rename files in src/support, step one. 2007-04-26 05:12:52 +00:00
version.cpp.in Last(?) missing rename: version.C -> version.cpp 2007-05-04 00:47:24 +00:00
version.h
VSpace.cpp LyXText -> Text 2007-04-29 23:33:02 +00:00
VSpace.h rename/merge LyXLength related stuff 2007-04-28 12:58:49 +00:00
WordLangTuple.h