Version 4.3.0.0.beta1, tag libreoffice-4.3.0.0.beta1
[LibreOffice.git] / include / svx / gallery.hxx
blob95d48d01ab5d91ad7a33437f4addfbdc3abdb952
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_HTMLBUTTONS 15
33 #define GALLERY_THEME_POWERPOINT 16
34 #define GALLERY_THEME_SOUNDS 18
35 #define GALLERY_THEME_USERSOUNDS 21
37 #define GALLERY_THEME_FONTWORK 37
38 #define GALLERY_THEME_FONTWORK_VERTICAL 38
40 class Gallery;
41 class VCDrawModel;
42 class FmFormModel;
43 class SdrModel;
44 class Graphic;
45 class FmFormModel;
46 class BitmapEx;
47 class OutputDevice;
49 class SVX_DLLPUBLIC GalleryExplorer
51 public:
53 static bool FillThemeList( std::vector<OUString>& rThemeList );
55 // FillObjList is filling rObjList with Strings of the internal Gallery Object URL
56 static bool FillObjList( const OUString& rThemeName, std::vector<OUString> &rObjList );
57 static bool FillObjList( const sal_uInt32 nThemeId, std::vector<OUString> &rObjList );
59 // FillObjTitleList is filling the rList with the title for each gallery object
60 static bool FillObjListTitle( const sal_uInt32 nThemeId, std::vector< OUString >& rList );
62 static bool InsertURL( const OUString& rThemeName, const OUString& rURL );
63 static bool InsertURL( sal_uIntPtr nThemeId, const OUString& rURL );
65 static bool GetGraphicObj( const OUString& rThemeName, sal_uIntPtr nPos,
66 Graphic* pGraphic = NULL, BitmapEx* pThumb = NULL,
67 bool bProgess = false );
68 static bool GetGraphicObj( sal_uIntPtr nThemeId, sal_uIntPtr nPos,
69 Graphic* pGraphic = NULL, BitmapEx* pThumb = NULL,
70 bool bProgess = false );
72 static sal_uIntPtr GetSdrObjCount( const OUString& rThemeName );
73 static sal_uIntPtr GetSdrObjCount( sal_uIntPtr nThemeId );
75 static bool GetSdrObj( const OUString& rThemeName, sal_uIntPtr nSdrModelPos,
76 SdrModel* pModel = NULL, BitmapEx* pThumb = NULL );
77 static bool GetSdrObj( sal_uIntPtr nThemeId, sal_uIntPtr nSdrModelPos,
78 SdrModel* pModel = NULL, BitmapEx* pThumb = NULL );
80 static bool BeginLocking( const OUString& rThemeName );
81 static bool BeginLocking( sal_uIntPtr nThemeId );
83 static bool EndLocking( const OUString& rThemeName );
84 static bool EndLocking( sal_uIntPtr nThemeId );
87 #endif // INCLUDED_SVX_GALLERY_HXX
89 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */