2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright (C) 1997-1998 The LyX Team.
9 *======================================================*/
16 // Created by Alejandro Aguilar Sierra, 970806
18 /** Utility to get back from a reference or from a child document.
23 struct BackStackItem {
25 void set(LString f, int xx, int yy) {
26 fname = f; x = xx; y = yy;
36 BackStack(int n) : imax(n) {
37 item = new BackStackItem[imax];
45 void push(LString f, int x, int y) {
47 item[i++].set(f, x, y);
50 LString &pop(int *x, int *y) {