Branch libreoffice-5-0-4
[LibreOffice.git] / include / svx / gallery.hxx
blobc0dfb00446c6011aaf4158f0398da926c4d3b73f
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 #ifndef INCLUDED_SVX_GALLERY_HXX
21 #define INCLUDED_SVX_GALLERY_HXX
23 #include <svx/svxdllapi.h>
24 #include <tools/urlobj.hxx>
25 #include <vector>
27 // Defines for preinstalled themes
28 // Has to be in sync with svx/inc/galtheme.hrc
29 #define GALLERY_THEME_3D 1
30 #define GALLERY_THEME_BULLETS 3
31 #define GALLERY_THEME_HOMEPAGE 10
32 #define GALLERY_THEME_POWERPOINT 16
33 #define GALLERY_THEME_SOUNDS 18
34 #define GALLERY_THEME_USERSOUNDS 21
36 #define GALLERY_THEME_FONTWORK 37
37 #define GALLERY_THEME_FONTWORK_VERTICAL 38
39 class Gallery;
40 class VCDrawModel;
41 class FmFormModel;
42 class SdrModel;
43 class Graphic;
44 class FmFormModel;
45 class BitmapEx;
46 class OutputDevice;
48 class SVX_DLLPUBLIC GalleryExplorer
50 public:
52 static bool FillThemeList( std::vector<OUString>& rThemeList );
54 // FillObjList is filling rObjList with Strings of the internal Gallery Object URL
55 static bool FillObjList( const OUString& rThemeName, std::vector<OUString> &rObjList );
56 static bool FillObjList( const sal_uInt32 nThemeId, std::vector<OUString> &rObjList );
58 // FillObjTitleList is filling the rList with the title for each gallery object
59 static bool FillObjListTitle( const sal_uInt32 nThemeId, std::vector< OUString >& rList );
61 static bool InsertURL( const OUString& rThemeName, const OUString& rURL );
62 static bool InsertURL( sal_uIntPtr nThemeId, const OUString& rURL );
64 static bool GetGraphicObj( const OUString& rThemeName, sal_uIntPtr nPos,
65 Graphic* pGraphic = NULL, BitmapEx* pThumb = NULL,
66 bool bProgess = false );
67 static bool GetGraphicObj( sal_uIntPtr nThemeId, sal_uIntPtr nPos,
68 Graphic* pGraphic = NULL, BitmapEx* pThumb = NULL,
69 bool bProgess = false );
71 static sal_uIntPtr GetSdrObjCount( const OUString& rThemeName );
72 static sal_uIntPtr GetSdrObjCount( sal_uIntPtr nThemeId );
74 static bool GetSdrObj( const OUString& rThemeName, sal_uIntPtr nSdrModelPos,
75 SdrModel* pModel = NULL, BitmapEx* pThumb = NULL );
76 static bool GetSdrObj( sal_uIntPtr nThemeId, sal_uIntPtr nSdrModelPos,
77 SdrModel* pModel = NULL, BitmapEx* pThumb = NULL );
79 static bool BeginLocking( const OUString& rThemeName );
80 static bool BeginLocking( sal_uIntPtr nThemeId );
82 static bool EndLocking( const OUString& rThemeName );
83 static bool EndLocking( sal_uIntPtr nThemeId );
86 #endif // INCLUDED_SVX_GALLERY_HXX
88 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */