private ValueEval GetLocalNameXEval(NameXPxg nameXPxg)
        {
            // Look up the sheet, if present
            int sIdx = -1;

            if (nameXPxg.SheetName != null)
            {
                sIdx = _workbook.GetSheetIndex(nameXPxg.SheetName);
            }

            // Is it a name or a function?
            string          name     = nameXPxg.NameName;
            IEvaluationName evalName = _workbook.GetName(name, sIdx);

            if (evalName != null)
            {
                // Process it as a name
                return(new ExternalNameEval(evalName));
            }
            else
            {
                // Must be an external function
                return(new FunctionNameEval(name));
            }
        }
        /* package */
        internal IEvaluationName GetName(String name, int sheetIndex)
        {
            NamePtg namePtg = _workbook.GetName(name, sheetIndex).CreatePtg();

            if (namePtg == null)
            {
                return(null);
            }
            else
            {
                return(_workbook.GetName(namePtg));
            }
        }
        /* package */

        internal IEvaluationName GetName(string name, int sheetIndex)
        {
            IEvaluationName evalName = _workbook.GetName(name, sheetIndex);

            return(evalName);
        }
 public IEvaluationName GetName(NamePtg namePtg)
 {
     return(_masterBook.GetName(namePtg));
 }