159 references to AnnotationXmlConstants
PresentationFramework (159)
src\Framework\MS\Internal\Annotations\Anchoring\DataIdProcessor.cs (1)
474
private static readonly XmlQualifiedName DataIdElementName = new XmlQualifiedName("DataId",
AnnotationXmlConstants
.Namespaces.BaseSchemaNamespace);
src\Framework\MS\Internal\Annotations\Anchoring\FixedPageProcessor.cs (1)
357
private static readonly XmlQualifiedName PageNumberElementName = new XmlQualifiedName("PageNumber",
AnnotationXmlConstants
.Namespaces.BaseSchemaNamespace);
src\Framework\MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (1)
643
private static readonly XmlQualifiedName FixedTextElementName = new XmlQualifiedName("FixedTextRange",
AnnotationXmlConstants
.Namespaces.BaseSchemaNamespace);
src\Framework\MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (1)
437
internal static readonly XmlQualifiedName CharacterRangeElementName = new XmlQualifiedName("CharacterRange",
AnnotationXmlConstants
.Namespaces.BaseSchemaNamespace);
src\Framework\MS\Internal\Annotations\Component\HighlightComponent.cs (2)
511
(content.NamespaceURI ==
AnnotationXmlConstants
.Namespaces.BaseSchemaNamespace))
687
private static readonly XmlQualifiedName _name = new XmlQualifiedName("Highlight",
AnnotationXmlConstants
.Namespaces.BaseSchemaNamespace);
src\Framework\MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (10)
495
root = xmlDoc.CreateElement(GetXmlName(token),
AnnotationXmlConstants
.Namespaces.BaseSchemaNamespace);
505
root = xmlDoc.CreateElement(GetXmlName(token),
AnnotationXmlConstants
.Namespaces.BaseSchemaNamespace);
522
XmlNode oldValue = root.GetAttributeNode(name,
AnnotationXmlConstants
.Namespaces.BaseSchemaNamespace);
528
root.SetAttribute(name,
AnnotationXmlConstants
.Namespaces.BaseSchemaNamespace, value);
533
root.RemoveAttribute(name,
AnnotationXmlConstants
.Namespaces.BaseSchemaNamespace);
535
root.SetAttribute(name,
AnnotationXmlConstants
.Namespaces.BaseSchemaNamespace, value);
566
s_xmlTokeFullNames.Add(token,
AnnotationXmlConstants
.Prefixes.BaseSchemaPrefix + ":" + xmlName);
710
return root.GetAttributeNode(GetXmlName(token),
AnnotationXmlConstants
.Namespaces.BaseSchemaNamespace);
1180
public static readonly XmlQualifiedName TextSchemaName = new XmlQualifiedName("TextStickyNote",
AnnotationXmlConstants
.Namespaces.BaseSchemaNamespace);
1185
public static readonly XmlQualifiedName InkSchemaName = new XmlQualifiedName("InkStickyNote",
AnnotationXmlConstants
.Namespaces.BaseSchemaNamespace);
src\Framework\System\Windows\Annotations\Annotation.cs (55)
73
[XmlRoot(Namespace =
AnnotationXmlConstants
.Namespaces.CoreSchemaNamespace, ElementName =
AnnotationXmlConstants
.Elements.Annotation)]
215
if (String.IsNullOrEmpty(writer.LookupPrefix(
AnnotationXmlConstants
.Namespaces.CoreSchemaNamespace)))
217
writer.WriteAttributeString(
AnnotationXmlConstants
.Prefixes.XmlnsPrefix,
AnnotationXmlConstants
.Prefixes.CoreSchemaPrefix, null,
AnnotationXmlConstants
.Namespaces.CoreSchemaNamespace);
219
if (String.IsNullOrEmpty(writer.LookupPrefix(
AnnotationXmlConstants
.Namespaces.BaseSchemaNamespace)))
221
writer.WriteAttributeString(
AnnotationXmlConstants
.Prefixes.XmlnsPrefix,
AnnotationXmlConstants
.Prefixes.BaseSchemaPrefix, null,
AnnotationXmlConstants
.Namespaces.BaseSchemaNamespace);
232
writer.WriteAttributeString(
AnnotationXmlConstants
.Attributes.Id, XmlConvert.ToString(_id));
233
writer.WriteAttributeString(
AnnotationXmlConstants
.Attributes.CreationTime, XmlConvert.ToString(_created));
234
writer.WriteAttributeString(
AnnotationXmlConstants
.Attributes.LastModificationTime, XmlConvert.ToString(_modified));
238
writer.WriteStartAttribute(
AnnotationXmlConstants
.Attributes.TypeName);
244
writer.WriteStartElement(
AnnotationXmlConstants
.Elements.AuthorCollection,
AnnotationXmlConstants
.Namespaces.CoreSchemaNamespace);
249
writer.WriteElementString(
AnnotationXmlConstants
.Prefixes.BaseSchemaPrefix,
AnnotationXmlConstants
.Elements.StringAuthor,
AnnotationXmlConstants
.Namespaces.BaseSchemaNamespace, author);
257
writer.WriteStartElement(
AnnotationXmlConstants
.Elements.AnchorCollection,
AnnotationXmlConstants
.Namespaces.CoreSchemaNamespace);
270
writer.WriteStartElement(
AnnotationXmlConstants
.Elements.CargoCollection,
AnnotationXmlConstants
.Namespaces.CoreSchemaNamespace);
315
while (!(XmlNodeType.EndElement == reader.NodeType &&
AnnotationXmlConstants
.Elements.Annotation == reader.LocalName))
317
if (
AnnotationXmlConstants
.Elements.AnchorCollection == reader.LocalName)
319
CheckForNonNamespaceAttribute(reader,
AnnotationXmlConstants
.Elements.AnchorCollection);
324
while (!(
AnnotationXmlConstants
.Elements.AnchorCollection == reader.LocalName && XmlNodeType.EndElement == reader.NodeType))
332
else if (
AnnotationXmlConstants
.Elements.CargoCollection == reader.LocalName)
334
CheckForNonNamespaceAttribute(reader,
AnnotationXmlConstants
.Elements.CargoCollection);
339
while (!(
AnnotationXmlConstants
.Elements.CargoCollection == reader.LocalName && XmlNodeType.EndElement == reader.NodeType))
347
else if (
AnnotationXmlConstants
.Elements.AuthorCollection == reader.LocalName)
349
CheckForNonNamespaceAttribute(reader,
AnnotationXmlConstants
.Elements.AuthorCollection);
354
while (!(
AnnotationXmlConstants
.Elements.AuthorCollection == reader.LocalName && XmlNodeType.EndElement == reader.NodeType))
356
if (!(
AnnotationXmlConstants
.Elements.StringAuthor == reader.LocalName && XmlNodeType.Element == reader.NodeType))
358
throw new XmlException(SR.Get(SRID.InvalidXmlContent,
AnnotationXmlConstants
.Elements.Annotation));
373
throw new XmlException(SR.Get(SRID.InvalidXmlContent,
AnnotationXmlConstants
.Elements.Annotation));
552
if (reader.LocalName ==
AnnotationXmlConstants
.Prefixes.XmlnsPrefix)
557
if (reader.Prefix ==
AnnotationXmlConstants
.Prefixes.XmlnsPrefix ||
558
reader.Prefix ==
AnnotationXmlConstants
.Prefixes.XmlPrefix)
644
case
AnnotationXmlConstants
.Attributes.Id:
651
case
AnnotationXmlConstants
.Attributes.CreationTime:
655
case
AnnotationXmlConstants
.Attributes.LastModificationTime:
661
case
AnnotationXmlConstants
.Attributes.TypeName:
669
throw new FormatException(SR.Get(SRID.InvalidAttributeValue,
AnnotationXmlConstants
.Attributes.TypeName));
680
throw new FormatException(SR.Get(SRID.InvalidAttributeValue,
AnnotationXmlConstants
.Attributes.TypeName));
687
throw new FormatException(SR.Get(SRID.InvalidAttributeValue,
AnnotationXmlConstants
.Attributes.TypeName));
693
throw new XmlException(SR.Get(SRID.UnexpectedAttribute, reader.LocalName,
AnnotationXmlConstants
.Elements.Annotation));
701
throw new XmlException(SR.Get(SRID.RequiredAttributeMissing,
AnnotationXmlConstants
.Attributes.Id,
AnnotationXmlConstants
.Elements.Annotation));
705
throw new XmlException(SR.Get(SRID.RequiredAttributeMissing,
AnnotationXmlConstants
.Attributes.CreationTime,
AnnotationXmlConstants
.Elements.Annotation));
709
throw new XmlException(SR.Get(SRID.RequiredAttributeMissing,
AnnotationXmlConstants
.Attributes.LastModificationTime,
AnnotationXmlConstants
.Elements.Annotation));
713
throw new XmlException(SR.Get(SRID.RequiredAttributeMissing,
AnnotationXmlConstants
.Attributes.TypeName,
AnnotationXmlConstants
.Elements.Annotation));
src\Framework\System\Windows\Annotations\AnnotationHelper.cs (1)
1048
XmlElement colorsElement = doc.CreateElement(HighlightComponent.ColorsContentName,
AnnotationXmlConstants
.Namespaces.BaseSchemaNamespace);
src\Framework\System\Windows\Annotations\AnnotationResource.cs (17)
51
[XmlRoot(Namespace =
AnnotationXmlConstants
.Namespaces.CoreSchemaNamespace, ElementName =
AnnotationXmlConstants
.Elements.Resource)]
138
if (String.IsNullOrEmpty(writer.LookupPrefix(
AnnotationXmlConstants
.Namespaces.CoreSchemaNamespace)))
140
writer.WriteAttributeString(
AnnotationXmlConstants
.Prefixes.XmlnsPrefix,
AnnotationXmlConstants
.Prefixes.CoreSchemaPrefix, null,
AnnotationXmlConstants
.Namespaces.CoreSchemaNamespace);
143
writer.WriteAttributeString(
AnnotationXmlConstants
.Attributes.Id, XmlConvert.ToString(_id));
146
writer.WriteAttributeString(
AnnotationXmlConstants
.Attributes.ResourceName, _name);
201
while (!(
AnnotationXmlConstants
.Elements.Resource == reader.LocalName && XmlNodeType.EndElement == reader.NodeType))
203
if (
AnnotationXmlConstants
.Elements.ContentLocatorGroup == reader.LocalName)
208
else if (
AnnotationXmlConstants
.Elements.ContentLocator == reader.LocalName)
222
throw new XmlException(SR.Get(SRID.InvalidXmlContent,
AnnotationXmlConstants
.Elements.Resource));
478
case
AnnotationXmlConstants
.Attributes.Id:
482
case
AnnotationXmlConstants
.Attributes.ResourceName:
488
throw new XmlException(SR.Get(SRID.UnexpectedAttribute, reader.LocalName,
AnnotationXmlConstants
.Elements.Resource));
495
throw new XmlException(SR.Get(SRID.RequiredAttributeMissing,
AnnotationXmlConstants
.Attributes.Id,
AnnotationXmlConstants
.Elements.Resource));
src\Framework\System\Windows\Annotations\LocatorGroup.cs (10)
46
[XmlRoot(Namespace =
AnnotationXmlConstants
.Namespaces.CoreSchemaNamespace, ElementName =
AnnotationXmlConstants
.Elements.ContentLocatorGroup)]
118
string prefix = writer.LookupPrefix(
AnnotationXmlConstants
.Namespaces.CoreSchemaNamespace);
121
writer.WriteAttributeString(
AnnotationXmlConstants
.Prefixes.XmlnsPrefix,
AnnotationXmlConstants
.Prefixes.CoreSchemaPrefix, null,
AnnotationXmlConstants
.Namespaces.CoreSchemaNamespace);
149
Annotation.CheckForNonNamespaceAttribute(reader,
AnnotationXmlConstants
.Elements.ContentLocatorGroup);
156
while (!(
AnnotationXmlConstants
.Elements.ContentLocatorGroup == reader.LocalName && XmlNodeType.EndElement == reader.NodeType))
159
if (
AnnotationXmlConstants
.Elements.ContentLocator == reader.LocalName)
168
throw new XmlException(SR.Get(SRID.InvalidXmlContent,
AnnotationXmlConstants
.Elements.ContentLocatorGroup));
src\Framework\System\Windows\Annotations\LocatorPart.cs (12)
372
string corePrefix = namespaceManager.LookupPrefix(
AnnotationXmlConstants
.Namespaces.CoreSchemaNamespace);
375
res += TextSelectionProcessor.CharacterRangeElementName.Name + "/" + corePrefix + ":"+
AnnotationXmlConstants
.Elements.Item;
386
res += "[starts-with(@" +
AnnotationXmlConstants
.Attributes.ItemName + ", \"" + TextSelectionProcessor.SegmentAttribute + "\") and " +
387
" ((substring-before(@" +
AnnotationXmlConstants
.Attributes.ItemValue + ",\",\") >= " + startStr + " and substring-before(@" +
AnnotationXmlConstants
.Attributes.ItemValue + ",\",\") <= " + endStr + ") or " +
388
" (substring-before(@" +
AnnotationXmlConstants
.Attributes.ItemValue + ",\",\") < " + startStr + " and substring-after(@" +
AnnotationXmlConstants
.Attributes.ItemValue + ",\",\") >= " + startStr + "))]";
401
string corePrefix = namespaceManager.LookupPrefix(
AnnotationXmlConstants
.Namespaces.CoreSchemaNamespace);
412
res += "/parent::*/" + corePrefix + ":" +
AnnotationXmlConstants
.Elements.Item + "[";
417
res += "/" + corePrefix + ":" +
AnnotationXmlConstants
.Elements.Item + "[";
419
res += "@" +
AnnotationXmlConstants
.Attributes.ItemName + "=\"" + k_v.Key + "\" and @" +
AnnotationXmlConstants
.Attributes.ItemValue + "=\"" + k_v.Value + "\"]";
src\Framework\System\Windows\Annotations\LocatorPartList.cs (28)
49
[XmlRoot(Namespace =
AnnotationXmlConstants
.Namespaces.CoreSchemaNamespace, ElementName =
AnnotationXmlConstants
.Elements.ContentLocator)]
177
string prefix = writer.LookupPrefix(
AnnotationXmlConstants
.Namespaces.CoreSchemaNamespace);
180
writer.WriteAttributeString(
AnnotationXmlConstants
.Prefixes.XmlnsPrefix,
AnnotationXmlConstants
.Prefixes.CoreSchemaPrefix, null,
AnnotationXmlConstants
.Namespaces.CoreSchemaNamespace);
182
prefix = writer.LookupPrefix(
AnnotationXmlConstants
.Namespaces.BaseSchemaNamespace);
185
writer.WriteAttributeString(
AnnotationXmlConstants
.Prefixes.XmlnsPrefix,
AnnotationXmlConstants
.Prefixes.BaseSchemaPrefix, null,
AnnotationXmlConstants
.Namespaces.BaseSchemaNamespace);
206
writer.WriteStartElement(
AnnotationXmlConstants
.Elements.Item,
AnnotationXmlConstants
.Namespaces.CoreSchemaNamespace);
207
writer.WriteAttributeString(
AnnotationXmlConstants
.Attributes.ItemName, pair.Key);
208
writer.WriteAttributeString(
AnnotationXmlConstants
.Attributes.ItemValue, pair.Value);
233
Annotation.CheckForNonNamespaceAttribute(reader,
AnnotationXmlConstants
.Elements.ContentLocator);
242
while (!(
AnnotationXmlConstants
.Elements.ContentLocator == reader.LocalName && XmlNodeType.EndElement == reader.NodeType))
246
throw new XmlException(SR.Get(SRID.InvalidXmlContent,
AnnotationXmlConstants
.Elements.ContentLocator));
262
if (
AnnotationXmlConstants
.Elements.Item == reader.LocalName && reader.NamespaceURI ==
AnnotationXmlConstants
.Namespaces.CoreSchemaNamespace)
271
case
AnnotationXmlConstants
.Attributes.ItemName:
274
case
AnnotationXmlConstants
.Attributes.ItemValue:
279
throw new XmlException(SR.Get(SRID.UnexpectedAttribute, reader.LocalName,
AnnotationXmlConstants
.Elements.Item));
286
throw new XmlException(SR.Get(SRID.RequiredAttributeMissing,
AnnotationXmlConstants
.Attributes.ItemName,
AnnotationXmlConstants
.Elements.Item));
290
throw new XmlException(SR.Get(SRID.RequiredAttributeMissing,
AnnotationXmlConstants
.Attributes.ItemValue,
AnnotationXmlConstants
.Elements.Item));
303
if (!(XmlNodeType.EndElement == reader.NodeType &&
AnnotationXmlConstants
.Elements.Item == reader.LocalName))
306
throw new XmlException(SR.Get(SRID.InvalidXmlContent,
AnnotationXmlConstants
.Elements.Item));
src\Framework\System\Windows\Annotations\Storage\XmlStreamStore.cs (20)
69
_predefinedNamespaces.Add(new Uri(
AnnotationXmlConstants
.Namespaces.CoreSchemaNamespace), null);
70
_predefinedNamespaces.Add(new Uri(
AnnotationXmlConstants
.Namespaces.BaseSchemaNamespace), null);
268
string query = @"//" +
AnnotationXmlConstants
.Prefixes.CoreSchemaPrefix + ":" +
AnnotationXmlConstants
.Elements.ContentLocator;
296
query += @"/ancestor::" +
AnnotationXmlConstants
.Prefixes.CoreSchemaPrefix + ":Anchors/ancestor::" +
AnnotationXmlConstants
.Prefixes.CoreSchemaPrefix + ":Annotation";
322
string query = "//" +
AnnotationXmlConstants
.Prefixes.CoreSchemaPrefix + ":Annotation";
600
throw new XmlException(SR.Get(SRID.RequiredAttributeMissing,
AnnotationXmlConstants
.Attributes.Id,
AnnotationXmlConstants
.Elements.Annotation));
765
AnnotationXmlConstants
.Prefixes.CoreSchemaPrefix + ":Annotations xmlns:" +
AnnotationXmlConstants
.Prefixes.CoreSchemaPrefix + "=\"" +
766
AnnotationXmlConstants
.Namespaces.CoreSchemaNamespace + "\" xmlns:" +
AnnotationXmlConstants
.Prefixes.BaseSchemaPrefix + "=\"" +
AnnotationXmlConstants
.Namespaces.BaseSchemaNamespace + "\" />");
775
_namespaceManager.AddNamespace(
AnnotationXmlConstants
.Prefixes.CoreSchemaPrefix,
AnnotationXmlConstants
.Namespaces.CoreSchemaNamespace);
776
_namespaceManager.AddNamespace(
AnnotationXmlConstants
.Prefixes.BaseSchemaPrefix,
AnnotationXmlConstants
.Namespaces.BaseSchemaNamespace);
783
XPathNodeIterator iterator = navigator.Select("//" +
AnnotationXmlConstants
.Prefixes.CoreSchemaPrefix + ":Annotations", _namespaceManager);
951
XPathNodeIterator iterator = tempNavigator.Select(@"//" +
AnnotationXmlConstants
.Prefixes.CoreSchemaPrefix + @":Annotation[@Id=""" + XmlConvert.ToString(id) + @"""]", _namespaceManager);