CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
FxCommand.h
Go to the documentation of this file.
1//
2// (C) Copyright 2005-2023 by Graebert GmbH.
3//
4// Permission to use, copy, modify, and distribute this software in
5// object code form for any purpose and without fee is hereby granted,
6// provided that the above copyright notice appears in all copies and
7// that both that copyright notice and the limited warranty and
8// restricted rights notice below appear in all supporting
9// documentation.
10//
11// GRAEBERT PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS.
12// GRAEBERT SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF
13// MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE. GRAEBERT GMBH
14// DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE
15// UNINTERRUPTED OR ERROR FREE.
16
17#pragma once
18
19#include "FxPragmaPush.h"
20
21#include "DDKERNEL.h"
22
23#include <Ed/EdCommandStack.h>
24
25
27class CFxString;
28class CFxDocument;
29class CFxUserIO;
30class CFxView;
31class CFxSelectionSet;
32
39{
40public:
41
45 enum
46 {
47 kNoSelectionSetModifications = 0x04000000,
48 kViewOperation = 0x08000000,
49 kHidden = 0x10000000,
50 kDisabledInRefedit = 0x20000000,
51 kApplicationContext = 0x40000000,
52 kExecuteStartup = 0x80000000,
53 kHiddenHistory = 0x00040000,
54 kDisabledInActionRecording = 0x00001000,
55 kDimMoveEnabled = 0x00002000,
56 kHiddenInAutoComplete = 0x00004000,
57 kReadOnlyMode = 0x00008000,
58 kNoCommandOutput = 0x00000100,
59 kUseHoverSelection = 0x00000200
60 };
61
62 /* {secret} */
64
68 const OdString groupName() const override;
69
73 virtual int Execute( CFxCommandContext* pFxCmdCtx) = 0;
74
81 void execute( OdEdCommandContext* pCmdCtx ) override;
82
86 void undefine( bool undefIt ) override;
87
91 OdInt32 flags() const override;
92
96 bool HasFlag( OdInt32 flag ) const;
104 static CFxString GetLISPGroupName( const CFxDocument* pDocument );
108 virtual void Help() const;
112 static void OpenHelp();
113
117 virtual unsigned int GetHelpId() const;
118
122 virtual const OdString displayName() const;
123
124protected:
126
130 void AddFlags( OdInt32 flags );
131
135 void RemoveFlags( OdInt32 flags );
136
140 void SetFlags( OdInt32 flags );
141
145 bool HasFlag( OdInt32 flag );
146
148};
149
156
157#include "FxPragmaPop.h"
#define DDKERNEL_API
Definition: DDKERNEL.h:32
DDKERNEL_API CFxSelectionSet * CreateSelectionSet(OdEdCommandContext *pCmdCtx)
int OdInt32
static void OpenHelp()
void SetFlags(OdInt32 flags)
bool HasFlag(OdInt32 flag) const
void RemoveFlags(OdInt32 flags)
void AddFlags(OdInt32 flags)
virtual unsigned int GetHelpId() const
virtual int Execute(CFxCommandContext *pFxCmdCtx)=0
static CFxString GetLISPGroupName(const CFxDocument *pDocument)
void undefine(bool undefIt) override
OdInt32 flags() const override
static CFxString GetBuiltInGroupName()
OdInt32 m_Flags
Definition: FxCommand.h:147
virtual void Help() const
const OdString groupName() const override
bool HasFlag(OdInt32 flag)
void execute(OdEdCommandContext *pCmdCtx) override
virtual const OdString displayName() const