OpenLexocad  27.1
CmdExportLXZFile.h
Go to the documentation of this file.
1 // //
3 // LEXOCAD API //
4 // //
5 // ©2005-2016 Cadwork Informatik. All rights reserved. //
6 // //
7 // ONLY INCLUDE OTHER INTERFACES! //
8 // Lexocad provides API Classes for public use and //
9 // Implementation Classes for private use. //
10 // //
11 // - Do ONLY include and use the LEXOCAD API in this header. //
12 // - Do not change existing interfaces. //
13 // - Document your code! //
14 // //
15 // - All types from Base, Core, Geom, Topo are allowed here. //
16 // - In the Gui modules the use of Qt types is allowed. //
17 // //
19 
20 #pragma once
21 #include <Base/String.h>
22 #include <Core/Command.h>
23 #include <OpenLxApp/Element.h>
24 
25 
26 #include <memory>
27 #include <vector>
28 
29 namespace OpenLxCmd
30 {
37 class LX_OPENLXCMD_EXPORT CmdExportLXZFile : public Core::Command
38 {
39 public:
41  CmdExportLXZFile(bool visibleonly, bool resetPlacement = false);
42  CmdExportLXZFile(const Base::String& aPath, bool visibleonly = false, bool resetPlacement = false);
44 
45  bool redo();
46  bool undo();
47 
48 private:
49  Core::Command* _cmd = nullptr;
50 };
51 } // namespace OpenLxCmd
A Utf-16 (windows) or ucs4 (unix) encoded string class.
Definition: String.h:23
bool undo(int id=0)
Will UNDO one step, returns False if no undo was done (Undos == 0).
Definition: CmdExportLXZFile.h:37
bool redo(int id=0)
Will REDO one step, returns False if no redo was done (Redos == 0).
Definition: CmdAddBolt.h:7
Definition: Command.h:34