2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 1997-2000 The LyX Team.
9 * ====================================================== */
18 // Created by Alejandro Aguilar Sierra, 970806
20 /** Utility to get back from a reference or from a child document.
25 struct BackStackItem {
27 BackStackItem(string const & f, int xx, int yy)
28 : fname(f), x(xx), y(yy) {}
38 void push(string f, int x, int y) {
39 BackStackItem bit(f, x, y);
43 string pop(int * x, int * y) {
44 BackStackItem bit = stakk.top();
56 std::stack<BackStackItem> stakk;