| /************************************************************** |
| * |
| * Licensed to the Apache Software Foundation (ASF) under one |
| * or more contributor license agreements. See the NOTICE file |
| * distributed with this work for additional information |
| * regarding copyright ownership. The ASF licenses this file |
| * to you under the Apache License, Version 2.0 (the |
| * "License"); you may not use this file except in compliance |
| * with the License. You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, |
| * software distributed under the License is distributed on an |
| * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| * KIND, either express or implied. See the License for the |
| * specific language governing permissions and limitations |
| * under the License. |
| * |
| *************************************************************/ |
| |
| |
| |
| #include "sc.hrc" |
| #include <svl/style.hrc> |
| #define IMPL_FAMILY(family,filter) \ |
| StyleFamily = family; \ |
| FilterList = { filter } |
| |
| String STR_STYLE_FILTER_USED |
| { |
| Text [ en-US ] = "Applied Styles" ; |
| }; |
| String STR_STYLE_FILTER_USERDEF |
| { |
| Text [ en-US ] = "Custom Styles" ; |
| }; |
| String STR_STYLE_FILTER_ALL |
| { |
| Text [ en-US ] = "All Styles" ; |
| }; |
| |
| //------------------------------------------------------------------------ |
| SfxStyleFamilies DLG_STYLE_DESIGNER |
| { |
| StyleFamilyList = |
| { |
| SfxStyleFamilyItem |
| { |
| IMPL_FAMILY ( SFX_STYLE_FAMILY_PARA , |
| < STR_STYLE_FILTER_ALL ; SFXSTYLEBIT_ALL ; > ; |
| < STR_STYLE_FILTER_USED ; SFXSTYLEBIT_USED ; > ; |
| < STR_STYLE_FILTER_USERDEF ; SFXSTYLEBIT_USERDEF ; > ; ) ; |
| Text [ en-US ] = "Cell Styles" ; |
| }; |
| SfxStyleFamilyItem |
| { |
| IMPL_FAMILY ( SFX_STYLE_FAMILY_PAGE , |
| < STR_STYLE_FILTER_ALL ; SFXSTYLEBIT_ALL ; > ; |
| < STR_STYLE_FILTER_USERDEF ; SFXSTYLEBIT_USERDEF ; > ; ) ; |
| Text [ en-US ] = "Page Styles" ; |
| }; |
| }; |
| |
| // style family images are now taken from an ImageList |
| // (for each family, there's one entry in the IdList) |
| ImageList 1 // == BMP_COLOR_NORMAL + 1 |
| { |
| Prefix = "sf"; |
| MaskColor = STD_MASKCOLOR ; |
| IdList = { 1; 2; }; |
| }; |
| ImageList 2 // == BMP_COLOR_HIGHCONTRAST + 1 |
| { |
| Prefix = "sfh"; |
| MaskColor = SC_HC_MASKCOLOR ; |
| IdList = { 1; 2; }; |
| }; |
| }; |