var exportSettings = fw.getDocumentDOM().exportSettings;

var oldTemplateName = exportSettings.templateName;

exportSettings.templateName = "Dreamweaver";
exportSettings.sliceUsingUrls = true;

fw.exportAndCopyHTMLCode(null);

exportSettings.templateName = oldTemplateName;
