fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / sc / source / ui / drawfunc / oleobjsh.cxx
blob779129964a958053ca4e50e7bcdebba50e0edbc7
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #include <editeng/eeitem.hxx>
21 #include <svx/fontwork.hxx>
22 #include <svl/srchitem.hxx>
23 #include <sfx2/app.hxx>
24 #include <sfx2/objface.hxx>
25 #include <sfx2/request.hxx>
26 #include <svl/whiter.hxx>
27 #include <vcl/msgbox.hxx>
29 #include "oleobjsh.hxx"
30 #include "drwlayer.hxx"
31 #include "sc.hrc"
32 #include "viewdata.hxx"
33 #include "document.hxx"
34 #include "docpool.hxx"
35 #include "drawview.hxx"
36 #include "scresid.hxx"
37 #include <svx/svdobj.hxx>
38 #include <sfx2/sidebar/EnumContext.hxx>
40 #define ScOleObjectShell
41 #include "scslots.hxx"
43 SFX_IMPL_INTERFACE(ScOleObjectShell, ScDrawShell)
45 void ScOleObjectShell::InitInterface_Impl()
47 GetStaticInterface()->RegisterObjectBar(SFX_OBJECTBAR_OBJECT|SFX_VISIBILITY_STANDARD|SFX_VISIBILITY_SERVER,
48 RID_DRAW_OBJECTBAR);
50 GetStaticInterface()->RegisterPopupMenu(ScResId(RID_POPUP_OLE));
53 TYPEINIT1( ScOleObjectShell, ScDrawShell );
55 ScOleObjectShell::ScOleObjectShell(ScViewData* pData) :
56 ScDrawShell(pData)
58 SetHelpId(HID_SCSHELL_OLEOBEJCTSH);
59 SetName(OUString("OleObject"));
60 SfxShell::SetContextName(sfx2::sidebar::EnumContext::GetContextName(sfx2::sidebar::EnumContext::Context_OLE));
63 ScOleObjectShell::~ScOleObjectShell()
67 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */