LibreOffice Module sw (master)  1
swtypes.cxx
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 
20 #include <swtypes.hxx>
21 #include <rtl/ustring.hxx>
22 
23 #include <bodyfrm.hxx>
24 #include <cellfrm.hxx>
25 #include <colfrm.hxx>
26 #include <editeng/unolingu.hxx>
27 #include <fntcache.hxx>
28 #include <frmfmt.hxx>
29 #include <frmtool.hxx>
30 #include <hffrm.hxx>
31 #include <ndtxt.hxx>
32 #include <pagefrm.hxx>
33 #include <rowfrm.hxx>
34 #include <sectfrm.hxx>
35 #include <swatrset.hxx>
36 #include <swfntcch.hxx>
37 #include <swtable.hxx>
38 #include <swtblfmt.hxx>
39 #include <tabfrm.hxx>
40 #include <txtfrm.hxx>
41 #include <UndoDelete.hxx>
42 #include <UndoInsert.hxx>
43 #include <vcl/svapp.hxx>
44 #include <vcl/graph.hxx>
45 #include <viscrs.hxx>
46 
47 using namespace com::sun::star;
48 
50 {
51  const MapMode aMapTwip(MapUnit::MapTwip);
52  Size aSize(rGraphic.GetPrefSize());
53  if (MapUnit::MapPixel == rGraphic.GetPrefMapMode().GetMapUnit())
54  {
55  if (!pOutDev)
57  aSize = pOutDev->PixelToLogic(aSize, aMapTwip);
58  }
59  else
60  {
61  aSize = OutputDevice::LogicToLogic(aSize, rGraphic.GetPrefMapMode(), aMapTwip);
62  }
63  return aSize;
64 }
65 
66 uno::Reference< linguistic2::XSpellChecker1 > GetSpellChecker()
67 {
69 }
70 
71 uno::Reference< linguistic2::XHyphenator > GetHyphenator()
72 {
73  return LinguMgr::GetHyphenator();
74 }
75 
76 uno::Reference< linguistic2::XThesaurus > GetThesaurus()
77 {
78  return LinguMgr::GetThesaurus();
79 }
80 
81 uno::Reference< linguistic2::XLinguProperties > GetLinguPropertySet()
82 {
84 }
85 
86 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
uno::Reference< linguistic2::XHyphenator > GetHyphenator()
Definition: swtypes.cxx:71
Point LogicToLogic(const Point &rPtSource, const MapMode *pMapModeSource, const MapMode *pMapModeDest) const
uno::Reference< linguistic2::XLinguProperties > GetLinguPropertySet()
Definition: swtypes.cxx:81
static css::uno::Reference< css::linguistic2::XLinguProperties > GetLinguPropertySet()
static OutputDevice * GetDefaultDevice()
static css::uno::Reference< css::linguistic2::XSpellChecker1 > GetSpellChecker()
static css::uno::Reference< css::linguistic2::XHyphenator > GetHyphenator()
MapUnit GetMapUnit() const
Point PixelToLogic(const Point &rDevicePt) const
Size GetPrefSize() const
MapMode GetPrefMapMode() const
uno::Reference< linguistic2::XThesaurus > GetThesaurus()
Definition: swtypes.cxx:76
uno::Reference< linguistic2::XSpellChecker1 > GetSpellChecker()
Definition: swtypes.cxx:66
static css::uno::Reference< css::linguistic2::XThesaurus > GetThesaurus()
Size GetGraphicSizeTwip(const Graphic &rGraphic, vcl::RenderContext *pOutDev)
Definition: swtypes.cxx:49