LibreOffice Module vcl (master)  1
commandinfoprovider.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
11  * Licensed to the Apache Software Foundation (ASF) under one or more
12  * contributor license agreements. See the NOTICE file distributed
13  * with this work for additional information regarding copyright
14  * ownership. The ASF licenses this file to you under the Apache
15  * License, Version 2.0 (the "License"); you may not use this file
16  * except in compliance with the License. You may obtain a copy of
17  * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18  */
19 #ifndef INCLUDED_VCL_COMMANDINFOPROVIDER_HXX
20 #define INCLUDED_VCL_COMMANDINFOPROVIDER_HXX
21 
22 #include <vcl/dllapi.h>
23 #include <vcl/image.hxx>
24 
25 namespace com { namespace sun { namespace star { namespace frame { class XFrame; } } } }
26 
27 namespace vcl { namespace CommandInfoProvider {
28 
38  const OUString& rsCommandName,
39  const OUString& rsModuleName);
40 
42  const OUString& rsCommandName,
43  const OUString& rsModuleName);
44 
46  const OUString& rsCommandName,
47  const OUString& rsModuleName);
48 
59  const OUString& rsCommandName,
60  const css::uno::Reference<css::frame::XFrame>& rxFrame);
61 
63  VCL_DLLPUBLIC OUString GetCommandShortcut (const OUString& rCommandName,
64  const css::uno::Reference<css::frame::XFrame>& rxFrame);
65 
66  VCL_DLLPUBLIC OUString GetRealCommandForCommand( const OUString& rCommandName,
67  const OUString& rsModuleName );
68 
69  VCL_DLLPUBLIC css::uno::Reference<css::graphic::XGraphic> GetXGraphicForCommand(
70  const OUString& rsCommandName,
71  const css::uno::Reference<css::frame::XFrame>& rxFrame,
73 
75  const OUString& rsCommandName,
76  const css::uno::Reference<css::frame::XFrame>& rxFrame,
78 
80  const OUString& rsCommandName,
81  const OUString& rsModuleName);
82 
83  VCL_DLLPUBLIC bool IsRotated(const OUString& rsCommandName, const OUString& rsModuleName);
84  VCL_DLLPUBLIC bool IsMirrored(const OUString& rsCommandName, const OUString& rsModuleName);
85 
88  const OUString& rsCommandName,
89  const OUString& rModuleName);
90 
91  VCL_DLLPUBLIC OUString GetModuleIdentifier(const css::uno::Reference<css::frame::XFrame>& rxFrame);
92 } }
93 
94 #endif // INCLUDED_VCL_COMMANDINFOPROVIDER_HXX
95 
96 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
OUString GetPopupLabelForCommand(const OUString &rsCommandName, const OUString &rsModuleName)
bool IsMirrored(const OUString &rsCommandName, const OUString &rsModuleName)
#define VCL_DLLPUBLIC
Definition: dllapi.h:29
bool IsExperimental(const OUString &rsCommandName, const OUString &rModuleName)
Returns whether the command is experimental.
Image GetImageForCommand(const OUString &rsCommandName, const Reference< frame::XFrame > &rxFrame, vcl::ImageType eImageType)
OUString GetMenuLabelForCommand(const OUString &rsCommandName, const OUString &rsModuleName)
OUString GetModuleIdentifier(const Reference< frame::XFrame > &rxFrame)
ImageType
Definition: vclenum.hxx:319
Reference< graphic::XGraphic > GetXGraphicForCommand(const OUString &rsCommandName, const Reference< frame::XFrame > &rxFrame, vcl::ImageType eImageType)
sal_Int32 GetPropertiesForCommand(const OUString &rsCommandName, const OUString &rsModuleName)
Definition: image.hxx:40
OUString GetTooltipForCommand(const OUString &rsCommandName, const Reference< frame::XFrame > &rxFrame)
OUString GetLabelForCommand(const OUString &rsCommandName, const OUString &rsModuleName)
Return a label for the given command.
OUString GetRealCommandForCommand(const OUString &rCommandName, const OUString &rsModuleName)
OUString GetCommandShortcut(const OUString &rsCommandName, const Reference< frame::XFrame > &rxFrame)
bool IsRotated(const OUString &rsCommandName, const OUString &rsModuleName)