CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
FxCommand.h
Go to the documentation of this file.
1//
2// (C) Copyright 2005-2025 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
44 enum
45 {
47 kViewOperation = 0x08000000,
48 kHidden = 0x10000000,
49 kDisabledInRefedit = 0x20000000,
50 kApplicationContext = 0x40000000,
51 kExecuteStartup = 0x80000000,
52 kHiddenHistory = 0x00040000,
54 kDimMoveEnabled = 0x00002000,
56 kReadOnlyMode = 0x00008000,
57 kNoCommandOutput = 0x00000100,
58 kUseHoverSelection = 0x00000200
59 };
60
61 /* {secret} */
63
67 const OdString groupName() const override;
68
72 virtual int Execute( CFxCommandContext* pFxCmdCtx) = 0;
73
80 void execute( OdEdCommandContext* pCmdCtx ) override;
81
85 void undefine( bool undefIt ) override;
86
90 OdInt32 flags() const override;
91
95 bool HasFlag( OdInt32 flag ) const;
103 static CFxString GetLISPGroupName( const CFxDocument* pDocument );
107 virtual void Help() const;
111 static void OpenHelp();
112
116 virtual unsigned int GetHelpId() const;
117
121 virtual const OdString displayName() const;
122
123protected:
125
130
135
140
144 bool HasFlag( OdInt32 flag );
145
147};
148
155
156#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
@ kDisabledInRefedit
Definition FxCommand.h:49
@ kReadOnlyMode
Definition FxCommand.h:56
@ kApplicationContext
Definition FxCommand.h:50
@ kDisabledInActionRecording
Definition FxCommand.h:53
@ kUseHoverSelection
Definition FxCommand.h:58
@ kDimMoveEnabled
Definition FxCommand.h:54
@ kExecuteStartup
Definition FxCommand.h:51
@ kHiddenInAutoComplete
Definition FxCommand.h:55
@ kHiddenHistory
Definition FxCommand.h:52
@ kNoCommandOutput
Definition FxCommand.h:57
@ kNoSelectionSetModifications
Definition FxCommand.h:46
@ kViewOperation
Definition FxCommand.h:47
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:146
virtual void Help() const
const OdString groupName() const override
bool HasFlag(OdInt32 flag)
void execute(OdEdCommandContext *pCmdCtx) override
virtual const OdString displayName() const