X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FExchangePlugin%2FExchangePlugin_ExportFeature.h;h=c0a79a8c5ea092bcbbba0d7fff00d3a97f0d6d7a;hb=ea593bc59e7e9461f6c4e2afd3f24d621edb1011;hp=37e1464503ab475cc31e41eed610e2c704e1fa1e;hpb=2532fb2df83ee1ddd9ff3e8b381d3788eaa15b69;p=modules%2Fshaper.git diff --git a/src/ExchangePlugin/ExchangePlugin_ExportFeature.h b/src/ExchangePlugin/ExchangePlugin_ExportFeature.h index 37e146450..c0a79a8c5 100644 --- a/src/ExchangePlugin/ExchangePlugin_ExportFeature.h +++ b/src/ExchangePlugin/ExchangePlugin_ExportFeature.h @@ -1,4 +1,4 @@ -// Copyright (C) 2014-2017 CEA/DEN, EDF R&D +// Copyright (C) 2014-2019 CEA/DEN, EDF R&D // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -12,9 +12,9 @@ // // You should have received a copy of the GNU Lesser General Public // License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // #ifndef EXCHANGEPLUGIN_EXPORTFEATURE_H_ @@ -104,12 +104,18 @@ public: /// Computes or recomputes the results EXCHANGEPLUGIN_EXPORT virtual void execute(); - /// Reimplemented from ModelAPI_Feature::isMacro(). Returns true. - EXCHANGEPLUGIN_EXPORT virtual bool isMacro() const { return true; } + /// Reimplemented from ModelAPI_Feature::isMacro(). Returns false. + // It is macro for not-XAO export. For XAO the feature is kept invisible in the tree + // for the export to GEOM functionality correct working. + EXCHANGEPLUGIN_EXPORT virtual bool isMacro() const; /// Reimplemented from ModelAPI_Feature::isPreviewNeeded(). Returns false. EXCHANGEPLUGIN_EXPORT virtual bool isPreviewNeeded() const { return false; } + /// Do not put in history. + /// Since it is not a macro, it is not deleted, but we don't want to see it. + bool isInHistory() { return false; } + protected: /// Performs export of the file EXCHANGEPLUGIN_EXPORT void exportFile(const std::string& theFileName,