diff options
author | Sébastien Le Ray <sebastien-libreoffice@orniz.org> | 2011-02-27 17:23:48 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@novell.com> | 2011-03-03 10:41:27 +0000 |
commit | 4b3607067688d53d8bad91066b2eb483d2ee0407 (patch) | |
tree | 819c56240ac38860cfe6ab5bd27fac1e6c063ded | |
parent | e7abf29b88e3a81053bb5e656d8641366ad99fd8 (diff) |
FDO#31251 - Add resources files for page shadow
-rw-r--r-- | sw/inc/rcid.hrc | 5 | ||||
-rw-r--r-- | sw/source/core/inc/pagefrm.hrc | 49 | ||||
-rw-r--r-- | sw/source/core/layout/makefile.mk | 4 | ||||
-rw-r--r-- | sw/source/core/layout/pagefrm.src | 27 | ||||
-rw-r--r-- | sw/util/makefile.mk | 1 |
5 files changed, 86 insertions, 0 deletions
diff --git a/sw/inc/rcid.hrc b/sw/inc/rcid.hrc index aeca0cf38d0f..f392c05a07db 100644 --- a/sw/inc/rcid.hrc +++ b/sw/inc/rcid.hrc @@ -79,6 +79,7 @@ #define RC_SMARTTAG (RC_BASE + 3950) // SMARTTAGS #define RC_UNOCORE (RC_BASE + 4050) #define RC_ANNOTATION (RC_BASE + 4150) +#define RC_PAGEFRM (RC_BASE + 4250) /*-------------------------------------------------------------------- Beschreibung: Bereiche ausspannen @@ -100,6 +101,10 @@ #define RC_ANNOTATION_BEGIN RC_ANNOTATION #define RC_ANNOTATION_END (RC_ANNOTATION_BEGIN + 99) +// Page frame +#define RC_PAGEFRM_BEGIN RC_PAGEFRM +#define RC_PAGEFRM_EN (RC_PAGEFRM + 99) + // SW/Web #define RC_WEB_BEGIN RC_WEB #define RC_WEB_END (RC_WEB_BEGIN + 199) diff --git a/sw/source/core/inc/pagefrm.hrc b/sw/source/core/inc/pagefrm.hrc new file mode 100644 index 000000000000..c72c2123888e --- /dev/null +++ b/sw/source/core/inc/pagefrm.hrc @@ -0,0 +1,49 @@ +/* + * Version: MPL 1.1 / GPLv3+ / LGPLv3+ + * + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (the "License"); you may not use this file except in compliance with + * the License or as specified alternatively below. You may obtain a copy of + * the License at http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Initial Developer of the Original Code is + * Sébastien Le Ray <sebastien-libreoffice@orniz.org> + * Portions created by the Initial Developer are Copyright (C) 2010 the + * Initial Developer. All Rights Reserved. + * + * For minor contributions see the git repository. + * + * Alternatively, the contents of this file may be used under the terms of + * either the GNU General Public License Version 3 or later (the "GPLv3+"), or + * the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"), + * in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable + * instead of those above. + */ + +#ifndef _PAGEFRM_HRC +#define _PAGEFRM_HRC + +#include "rcid.hrc" + +// Bitmaps for page shadow +#define BMP_PAGE_TOP_RIGHT_SHADOW RC_PAGEFRM_BEGIN +#define BMP_PAGE_RIGHT_SHADOW RC_PAGEFRM_BEGIN + 1 +#define BMP_PAGE_BOTTOM_RIGHT_SHADOW RC_PAGEFRM_BEGIN + 2 +#define BMP_PAGE_BOTTOM_SHADOW RC_PAGEFRM_BEGIN + 3 +#define BMP_PAGE_BOTTOM_LEFT_SHADOW RC_PAGEFRM_BEGIN + 4 + + +// If you add resources, don't forget to update this +#define PAGEFRM_ACT_END BMP_PAGE_BOTTOMLEFT_SHADOW + +// Sanity check +#if PAGEFRM_ACT_END > RC_PAGEFRM_END +#error Not enough room for pagefrm resource in #file:#line +#endif + +#endif diff --git a/sw/source/core/layout/makefile.mk b/sw/source/core/layout/makefile.mk index e986ec8cf4ae..647059234b93 100644 --- a/sw/source/core/layout/makefile.mk +++ b/sw/source/core/layout/makefile.mk @@ -89,6 +89,10 @@ SLOFILES = \ $(SLO)$/swselectionlist.obj \ $(SLO)$/unusedf.obj +SRS1NAME=$(TARGET) +SRC1FILES =\ + pagefrm.src + .IF "$(DBG_LEVEL)">="2" SLOFILES += \ $(SLO)$/dbg_lay.obj diff --git a/sw/source/core/layout/pagefrm.src b/sw/source/core/layout/pagefrm.src new file mode 100644 index 000000000000..dfa9b2b9a664 --- /dev/null +++ b/sw/source/core/layout/pagefrm.src @@ -0,0 +1,27 @@ +#include "pagefrm.hrc" + +Bitmap BMP_PAGE_TOP_RIGHT_SHADOW +{ + File = "page-topright-shadow.png"; +}; + +Bitmap BMP_PAGE_RIGHT_SHADOW +{ + File = "page-right-shadow.png"; +}; + +Bitmap BMP_PAGE_BOTTOM_RIGHT_SHADOW +{ + File = "page-bottomright-shadow.png"; +}; + +Bitmap BMP_PAGE_BOTTOM_SHADOW +{ + File = "page-bottom-shadow.png"; +}; + +Bitmap BMP_PAGE_BOTTOM_LEFT_SHADOW +{ + File = "page-bottomleft-shadow.png"; +}; + diff --git a/sw/util/makefile.mk b/sw/util/makefile.mk index 55395055d78c..42132f15d778 100644 --- a/sw/util/makefile.mk +++ b/sw/util/makefile.mk @@ -53,6 +53,7 @@ sw_res_files= \ $(SRS)$/frmdlg.srs \ $(SRS)$/globdoc.srs \ $(SRS)$/index.srs \ + $(SRS)$/layout.srs \ $(SRS)$/lingu.srs \ $(SRS)$/misc.srs \ $(SRS)$/ribbar.srs \ |