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