2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright (C) 1997-1999 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 {
27 BackStackItem(string const & f, int xx, int yy)
28 : fname(f), x(xx), y(yy) {}
30 //void set(string f, int xx, int yy) {
31 // fname = f; x = xx; y = yy;
42 void push(string f, int x, int y) {
43 BackStackItem bit(f, x, y);
47 string pop(int * x, int * y) {
48 BackStackItem bit = stakk.top();
60 stack<BackStackItem> stakk;