Class FieldMasterNameProvider


  • public class FieldMasterNameProvider
    extends java.lang.Object
    This class provides access to the names of all field masters in the current document
    • Constructor Summary

      Constructors 
      Constructor Description
      FieldMasterNameProvider​(com.sun.star.uno.XComponentContext xContext)
      Construct a new FieldMasterNameProvider
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Set<java.lang.String> getFieldMasterNames​(java.lang.String sPrefix)
      Get the names of all field masters relative to a given prefix
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FieldMasterNameProvider

        public FieldMasterNameProvider​(com.sun.star.uno.XComponentContext xContext)
        Construct a new FieldMasterNameProvider
        Parameters:
        xContext - the component context to get the desktop from
    • Method Detail

      • getFieldMasterNames

        public java.util.Set<java.lang.String> getFieldMasterNames​(java.lang.String sPrefix)
        Get the names of all field masters relative to a given prefix
        Parameters:
        sPrefix - the prefix to look for, e.g. "com.sun.star.text.fieldmaster.SetExpression."
        Returns:
        a read only Set containing all known names with the given prefix, stripped for the prefix