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