| 1674 | } |
| 1675 | |
| 1676 | bool SCI_METHOD Document::SetStyleFor(int length, char style) { |
| 1677 | if (enteredStyling != 0) { |
| 1678 | return false; |
| 1679 | } else { |
| 1680 | enteredStyling++; |
| 1681 | style &= stylingMask; |
| 1682 | int prevEndStyled = endStyled; |
| 1683 | if (cb.SetStyleFor(endStyled, length, style, stylingMask)) { |
| 1684 | DocModification mh(SC_MOD_CHANGESTYLE | SC_PERFORMED_USER, |
| 1685 | prevEndStyled, length); |
| 1686 | NotifyModified(mh); |
| 1687 | } |
| 1688 | endStyled += length; |
| 1689 | enteredStyling--; |
| 1690 | return true; |
| 1691 | } |
| 1692 | } |
| 1693 | |
| 1694 | bool SCI_METHOD Document::SetStyles(int length, const char *styles) { |
| 1695 | if (enteredStyling != 0) { |
no outgoing calls
no test coverage detected