2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 1997-2000 The LyX Team.
9 * ====================================================== */
18 /** Utility to get back from a reference or from a child document.
19 @author Alejandro Aguilar Sierra
25 struct BackStackItem {
30 BackStackItem(string const & f, int xx, int yy)
31 : fname(f), x(xx), y(yy) {}
41 void push(string f, int x, int y) {
42 BackStackItem bit(f, x, y);
46 string pop(int * x, int * y) {
47 BackStackItem bit = stakk.top();
54 @return returns #true# if the stack is empty, #false# otherwise.
61 std::stack<BackStackItem> stakk;