Line data Source code
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/window.hxx>
45 : #include <vcl/graph.hxx>
46 : #include <viscrs.hxx>
47 :
48 : using namespace com::sun::star;
49 :
50 37 : OUString aEmptyOUStr; // remove once aEmptyOUStr can be changed to OUString
51 :
52 37 : IMPL_FIXEDMEMPOOL_NEWDEL( SwAttrSet )
53 37 : IMPL_FIXEDMEMPOOL_NEWDEL( SwStartNode )
54 37 : IMPL_FIXEDMEMPOOL_NEWDEL( SwEndNode )
55 37 : IMPL_FIXEDMEMPOOL_NEWDEL( SwTableBox )
56 37 : IMPL_FIXEDMEMPOOL_NEWDEL( SwUndoDelete )
57 37 : IMPL_FIXEDMEMPOOL_NEWDEL( SwUndoInsert )
58 37 : IMPL_FIXEDMEMPOOL_NEWDEL( SwPaM )
59 37 : IMPL_FIXEDMEMPOOL_NEWDEL( SwCursor )
60 37 : IMPL_FIXEDMEMPOOL_NEWDEL( SwShellCrsr )
61 37 : IMPL_FIXEDMEMPOOL_NEWDEL( SwTxtNode )
62 37 : IMPL_FIXEDMEMPOOL_NEWDEL( SwpHints )
63 37 : IMPL_FIXEDMEMPOOL_NEWDEL( SwFntObj )
64 37 : IMPL_FIXEDMEMPOOL_NEWDEL( SwFontObj )
65 37 : IMPL_FIXEDMEMPOOL_NEWDEL( SwBorderAttrs )
66 37 : IMPL_FIXEDMEMPOOL_NEWDEL( SwCellFrm )
67 37 : IMPL_FIXEDMEMPOOL_NEWDEL( SwRowFrm )
68 37 : IMPL_FIXEDMEMPOOL_NEWDEL( SwColumnFrm )
69 37 : IMPL_FIXEDMEMPOOL_NEWDEL( SwSectionFrm )
70 37 : IMPL_FIXEDMEMPOOL_NEWDEL( SwTabFrm )
71 37 : IMPL_FIXEDMEMPOOL_NEWDEL( SwPageFrm )
72 37 : IMPL_FIXEDMEMPOOL_NEWDEL( SwBodyFrm )
73 37 : IMPL_FIXEDMEMPOOL_NEWDEL( SwHeaderFrm )
74 37 : IMPL_FIXEDMEMPOOL_NEWDEL( SwFooterFrm )
75 37 : IMPL_FIXEDMEMPOOL_NEWDEL( SwTxtFrm )
76 37 : IMPL_FIXEDMEMPOOL_NEWDEL( SwTableFmt )
77 37 : IMPL_FIXEDMEMPOOL_NEWDEL( SwTableLineFmt )
78 37 : IMPL_FIXEDMEMPOOL_NEWDEL( SwTableBoxFmt )
79 37 : IMPL_FIXEDMEMPOOL_NEWDEL( _SwCursor_SavePos )
80 :
81 344 : Size GetGraphicSizeTwip( const Graphic& rGraphic, OutputDevice* pOutDev )
82 : {
83 344 : const MapMode aMapTwip( MAP_TWIP );
84 344 : Size aSize( rGraphic.GetPrefSize() );
85 344 : if( MAP_PIXEL == rGraphic.GetPrefMapMode().GetMapUnit() )
86 : {
87 186 : if( !pOutDev )
88 186 : pOutDev = Application::GetDefaultDevice();
89 186 : aSize = pOutDev->PixelToLogic( aSize, aMapTwip );
90 : }
91 : else
92 : {
93 : aSize = OutputDevice::LogicToLogic( aSize,
94 : rGraphic.GetPrefMapMode(),
95 158 : aMapTwip );
96 : }
97 344 : return aSize;
98 : }
99 :
100 3034 : uno::Reference< linguistic2::XSpellChecker1 > GetSpellChecker()
101 : {
102 3034 : return LinguMgr::GetSpellChecker();
103 : }
104 :
105 1961 : uno::Reference< linguistic2::XHyphenator > GetHyphenator()
106 : {
107 1961 : return LinguMgr::GetHyphenator();
108 : }
109 :
110 0 : uno::Reference< linguistic2::XThesaurus > GetThesaurus()
111 : {
112 0 : return LinguMgr::GetThesaurus();
113 : }
114 :
115 0 : uno::Reference< linguistic2::XLinguProperties > GetLinguPropertySet()
116 : {
117 0 : return LinguMgr::GetLinguPropertySet();
118 111 : }
119 :
120 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|