Ejemplo n.º 1
0
        /// ------------------------------------------------------------------------------------
        /// <summary>
        /// Get a string representing the reference of the footnote (chapter:verse + trailing
        /// space)
        /// </summary>
        /// <param name="hvoWs">HVO of the writing system for which we are formatting this
        /// reference.</param>
        /// ------------------------------------------------------------------------------------
        public string GetReference(int hvoWs)
        {
            if (!IgnoreDisplaySettings && !m_scr.GetDisplayFootnoteReference(ParaStyleId))
            {
                return(string.Empty);
            }
            RefRange footnoteEntry = FootnoteRefInfo;

            // Don't display the reference if the reference is for an intro
            if (footnoteEntry.StartRef.Verse == 0 && footnoteEntry.EndRef.Verse == 0)
            {
                return(string.Empty);
            }

            return(m_scr.ChapterVerseBridgeAsString(footnoteEntry.StartRef,
                                                    footnoteEntry.EndRef, hvoWs) + " ");
        }