1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 #ifndef _SVTOOLS_CJKOPTIONS_HXX 24 #define _SVTOOLS_CJKOPTIONS_HXX 25 26 #include "svl/svldllapi.h" 27 #include <sal/types.h> 28 #include <unotools/options.hxx> 29 30 class SvtCJKOptions_Impl; 31 32 // class SvtCJKOptions -------------------------------------------------- 33 34 class SVL_DLLPUBLIC SvtCJKOptions: public utl::detail::Options 35 { 36 private: 37 SvtCJKOptions_Impl* pImp; 38 39 public: 40 41 enum EOption 42 { 43 E_CJKFONT, 44 E_VERTICALTEXT, 45 E_ASIANTYPOGRAPHY, 46 E_JAPANESEFIND, 47 E_RUBY, 48 E_CHANGECASEMAP, 49 E_DOUBLELINES, 50 E_EMPHASISMARKS, 51 E_VERTICALCALLOUT, 52 E_ALL // special one for IsAnyEnabled()/SetAll() functionality 53 }; 54 55 // bDontLoad is for referencing purposes only 56 SvtCJKOptions(sal_Bool bDontLoad = sal_False); 57 virtual ~SvtCJKOptions(); 58 59 sal_Bool IsCJKFontEnabled() const; 60 sal_Bool IsVerticalTextEnabled() const; 61 sal_Bool IsAsianTypographyEnabled() const; 62 sal_Bool IsJapaneseFindEnabled() const; 63 sal_Bool IsRubyEnabled() const; 64 sal_Bool IsChangeCaseMapEnabled() const; 65 sal_Bool IsDoubleLinesEnabled() const; 66 sal_Bool IsEmphasisMarksEnabled() const; 67 sal_Bool IsVerticalCallOutEnabled() const; 68 69 void SetAll(sal_Bool bSet); 70 sal_Bool IsAnyEnabled() const; 71 sal_Bool IsReadOnly(EOption eOption) const; 72 }; 73 74 #endif // _SVTOOLS_CJKOPTIONS_HXX 75 76