code: protected CmsMacroResolver prepareMacroResolverForIncludes(CmsDirectEditParams params) {
  
          String closeLink = getLink(params.getLinkForClose());
          String deleteLink = getLink(params.getLinkForDelete());
          String titleForNew = m_messages.key(Messages.GUI_EDITOR_TITLE_NEW_0);
          String skinUri = CmsWorkplace.getSkinUri();
          // resolve macros in include header
          CmsMacroResolver resolver = CmsMacroResolver.newInstance();
          resolver.addMacro("closeLink", closeLink);
          resolver.addMacro("deleteLink", deleteLink);
          resolver.addMacro("titleForNew", titleForNew);
          resolver.addMacro("skinUri", skinUri);
          return resolver;
      }
docs: Prepares the macro resolver which is used to process the included text file.<p>
  
  @param params the direct edit parameters
  
  @return the macro resolver