@@ -33,6 +33,10 @@ class DELPHICLASS TUICommandBooleanActionLink;
3333class DELPHICLASS TUICommandFontActionLink;
3434class DELPHICLASS TUICommandColorAnchorActionLink;
3535class DELPHICLASS TUICommandRecentItemsActionLink;
36+ template <typename T> class DELPHICLASS TRibbonAction__1;
37+ class DELPHICLASS TRibbonCollectionAction;
38+ class DELPHICLASS TRibbonColorAction;
39+ class DELPHICLASS TRibbonFontAction;
3640// -- type declarations -------------------------------------------------------
3741class PASCALIMPLEMENTATION TUICommandActionLink : public Vcl::Actnlist::TActionLink
3842{
@@ -205,6 +209,76 @@ class PASCALIMPLEMENTATION TUICommandRecentItemsActionLink : public TUICommandAc
205209};
206210
207211
212+ // Template declaration generated by Delphi parameterized types is
213+ // used only for accessing Delphi variables and fields.
214+ // Don't instantiate with new type parameters in user code.
215+ template <typename T> class PASCALIMPLEMENTATION TRibbonAction__1 : public Vcl::Actnlist::TCustomAction
216+ {
217+ typedef Vcl::Actnlist::TCustomAction inherited;
218+
219+ private:
220+ T fUICommand ;
221+
222+ public:
223+ __property T UICommand = {read=fUICommand , write=fUICommand };
224+
225+ __published:
226+ __property Caption = {default =0 };
227+ __property Enabled = {default =1 };
228+ __property HelpContext = {default =0 };
229+ __property HelpKeyword = {default =0 };
230+ __property HelpType = {default =0 };
231+ __property Hint = {default =0 };
232+ __property SecondaryShortCuts;
233+ __property ShortCut = {default =0 };
234+ __property OnExecute;
235+ __property OnHint;
236+ __property OnUpdate;
237+ public:
238+ /* TCustomAction.Create */ inline __fastcall virtual TRibbonAction__1 (System::Classes::TComponent* AOwner) : Vcl::Actnlist::TCustomAction(AOwner) { }
239+ /* TCustomAction.Destroy */ inline __fastcall virtual ~TRibbonAction__1 (void ) { }
240+
241+ };
242+
243+
244+ class PASCALIMPLEMENTATION TRibbonCollectionAction : public TRibbonAction__1<Uiribboncommands::TUICommandCollection*>
245+ {
246+ typedef TRibbonAction__1<Uiribboncommands::TUICommandCollection*> inherited;
247+
248+ public:
249+ /* TCustomAction.Create */ inline __fastcall virtual TRibbonCollectionAction (System::Classes::TComponent* AOwner) : TRibbonAction__1<Uiribboncommands::TUICommandCollection*>(AOwner) { }
250+ /* TCustomAction.Destroy */ inline __fastcall virtual ~TRibbonCollectionAction (void ) { }
251+
252+ };
253+
254+
255+ class PASCALIMPLEMENTATION TRibbonColorAction : public TRibbonAction__1<Uiribboncommands::TUICommandColorAnchor*>
256+ {
257+ typedef TRibbonAction__1<Uiribboncommands::TUICommandColorAnchor*> inherited;
258+
259+ public:
260+ /* TCustomAction.Create */ inline __fastcall virtual TRibbonColorAction (System::Classes::TComponent* AOwner) : TRibbonAction__1<Uiribboncommands::TUICommandColorAnchor*>(AOwner) { }
261+ /* TCustomAction.Destroy */ inline __fastcall virtual ~TRibbonColorAction (void ) { }
262+
263+ };
264+
265+
266+ class PASCALIMPLEMENTATION TRibbonFontAction : public TRibbonAction__1<Uiribboncommands::TUICommandFont*>
267+ {
268+ typedef TRibbonAction__1<Uiribboncommands::TUICommandFont*> inherited;
269+
270+ private:
271+ Uiribboncommands::TUICommandFontChangedEvent fOnChanged ;
272+
273+ __published:
274+ __property Uiribboncommands::TUICommandFontChangedEvent OnChanged = {read=fOnChanged , write=fOnChanged };
275+ public:
276+ /* TCustomAction.Create */ inline __fastcall virtual TRibbonFontAction (System::Classes::TComponent* AOwner) : TRibbonAction__1<Uiribboncommands::TUICommandFont*>(AOwner) { }
277+ /* TCustomAction.Destroy */ inline __fastcall virtual ~TRibbonFontAction (void ) { }
278+
279+ };
280+
281+
208282// -- var, const, procedure ---------------------------------------------------
209283} /* namespace Uiribbonactions */
210284#if !defined(DELPHIHEADER_NO_IMPLICIT_NAMESPACE_USE) && !defined(NO_USING_NAMESPACE_UIRIBBONACTIONS)
0 commit comments