Ejemplo n.º 1
0
        private ParagraphData TryGetNumbering(Paragraph p)
        {
            if (!IsValid) return null;

            var state = _pstateCache.Get(p);
            if (state == null) return null;

            var nconf = _nconfCache.Get(state.NumberingInstanceId);

            return new ParagraphData(nconf, state);
        }
Ejemplo n.º 2
0
        private ParagraphData TryGetNumbering(Paragraph p)
        {
            if (!IsValid)
            {
                return(null);
            }

            var state = _pstateCache.Get(p);

            if (state == null)
            {
                return(null);
            }

            var nconf      = _nconfCache.Get(state.NumberingInstanceId);
            var numId      = nconf.NumberingId.Value;
            var text       = nconf.Render(state.Indentations);
            var levelIndex = state.Indentations.Count() - 1;
            var level      = nconf[levelIndex].LevelNode;

            return(new ParagraphData(nconf, state));
        }