2010-10-14 01:30:41 -05:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2007-11-21 11:18:01 -06:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
2008-04-10 05:24:09 -05:00
|
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
2007-11-21 11:18:01 -06:00
|
|
|
*
|
2010-02-12 08:01:35 -06:00
|
|
|
* Copyright 2000, 2010 Oracle and/or its affiliates.
|
2007-11-21 11:18:01 -06:00
|
|
|
*
|
2008-04-10 05:24:09 -05:00
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2007-11-21 11:18:01 -06:00
|
|
|
*
|
2008-04-10 05:24:09 -05:00
|
|
|
* This file is part of OpenOffice.org.
|
2007-11-21 11:18:01 -06:00
|
|
|
*
|
2008-04-10 05:24:09 -05:00
|
|
|
* OpenOffice.org is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Lesser General Public License version 3
|
|
|
|
* only, as published by the Free Software Foundation.
|
2007-11-21 11:18:01 -06:00
|
|
|
*
|
2008-04-10 05:24:09 -05:00
|
|
|
* OpenOffice.org is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU Lesser General Public License version 3 for more details
|
|
|
|
* (a copy is included in the LICENSE file that accompanied this code).
|
2007-11-21 11:18:01 -06:00
|
|
|
*
|
2008-04-10 05:24:09 -05:00
|
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
|
|
* version 3 along with OpenOffice.org. If not, see
|
|
|
|
* <http://www.openoffice.org/license.html>
|
|
|
|
* for a copy of the LGPLv3 License.
|
2007-11-21 11:18:01 -06:00
|
|
|
*
|
|
|
|
************************************************************************/
|
|
|
|
#ifndef _MODOPT_HXX
|
|
|
|
#define _MODOPT_HXX
|
|
|
|
|
|
|
|
#include <tools/string.hxx>
|
2010-11-23 11:41:04 -06:00
|
|
|
#include <tools/wintypes.hxx>
|
2007-11-21 11:18:01 -06:00
|
|
|
#include <vcl/field.hxx>
|
2009-10-15 17:05:16 -05:00
|
|
|
#include <svl/svarray.hxx>
|
2007-11-21 11:18:01 -06:00
|
|
|
#include <unotools/configitem.hxx>
|
|
|
|
#include "swdllapi.h"
|
|
|
|
#include "authratr.hxx"
|
|
|
|
#include <SwCapObjType.hxx>
|
|
|
|
#include "tblenum.hxx"
|
|
|
|
#include "itabenum.hxx"
|
|
|
|
#include <tools/globname.hxx>
|
|
|
|
class SwModuleOptions;
|
|
|
|
|
|
|
|
class InsCaptionOpt;
|
|
|
|
typedef InsCaptionOpt* InsCaptionOptPtr;
|
|
|
|
SV_DECL_PTRARR_SORT_DEL(InsCapOptArr, InsCaptionOptPtr, 0, 5)
|
|
|
|
|
|
|
|
class InsCaptionOptArr : public InsCapOptArr
|
|
|
|
{
|
|
|
|
friend class SwModuleOptions;
|
|
|
|
friend class SwInsertConfig;
|
|
|
|
protected:
|
|
|
|
InsCaptionOpt* Find(const SwCapObjType eType, const SvGlobalName *pOleId = 0) const;
|
|
|
|
};
|
|
|
|
|
|
|
|
class SwRevisionConfig : public utl::ConfigItem
|
|
|
|
{
|
|
|
|
friend class SwModuleOptions;
|
|
|
|
|
|
|
|
AuthorCharAttr aInsertAttr; //Revision/TextDisplay/Insert/Attribute // Redlining: Author-Zeichenattribute
|
|
|
|
//Revision/TextDisplay/Insert/Color
|
|
|
|
AuthorCharAttr aDeletedAttr; //Revision/TextDisplay/Delete/Attribute
|
|
|
|
//Revision/TextDisplay/Delete/Color
|
|
|
|
AuthorCharAttr aFormatAttr; //Revision/TextDisplay/ChangeAttribute/Attribute
|
|
|
|
//Revision/TextDisplay/ChangeAttribute/Color
|
2011-01-17 08:06:54 -06:00
|
|
|
sal_uInt16 nMarkAlign; //Revision/LinesChanged/Mark
|
2007-11-21 11:18:01 -06:00
|
|
|
Color aMarkColor; //Revision/LinesChanged/Color
|
|
|
|
|
|
|
|
const com::sun::star::uno::Sequence<rtl::OUString>& GetPropertyNames();
|
|
|
|
public:
|
|
|
|
SwRevisionConfig();
|
|
|
|
~SwRevisionConfig();
|
|
|
|
|
|
|
|
virtual void Commit();
|
2009-10-15 17:05:16 -05:00
|
|
|
virtual void Notify( const ::com::sun::star::uno::Sequence< rtl::OUString >& aPropertyNames );
|
2007-11-21 11:18:01 -06:00
|
|
|
void Load();
|
|
|
|
void SetModified(){ConfigItem::SetModified();}
|
|
|
|
};
|
|
|
|
|
|
|
|
class SwInsertConfig : public utl::ConfigItem
|
|
|
|
{
|
|
|
|
friend class SwModuleOptions;
|
|
|
|
|
|
|
|
InsCaptionOptArr* pCapOptions;
|
|
|
|
InsCaptionOpt* pOLEMiscOpt;
|
|
|
|
|
|
|
|
SvGlobalName aGlobalNames[5];
|
|
|
|
|
2011-02-19 16:42:45 -06:00
|
|
|
sal_Bool bInsWithCaption; //Insert/Caption/Automatic
|
2007-11-21 11:18:01 -06:00
|
|
|
sal_Bool bCaptionOrderNumberingFirst; //#i61007# caption order starting with numbering
|
2010-11-15 05:59:57 -06:00
|
|
|
|
2007-11-21 11:18:01 -06:00
|
|
|
SwInsertTableOptions aInsTblOpts;
|
|
|
|
sal_Bool bIsWeb;
|
|
|
|
|
|
|
|
const com::sun::star::uno::Sequence<rtl::OUString>& GetPropertyNames();
|
|
|
|
public:
|
|
|
|
SwInsertConfig(sal_Bool bWeb);
|
|
|
|
~SwInsertConfig();
|
|
|
|
|
|
|
|
virtual void Commit();
|
2009-10-15 17:05:16 -05:00
|
|
|
virtual void Notify( const ::com::sun::star::uno::Sequence< rtl::OUString >& aPropertyNames );
|
2007-11-21 11:18:01 -06:00
|
|
|
void Load();
|
|
|
|
void SetModified(){ConfigItem::SetModified();}
|
|
|
|
};
|
|
|
|
|
|
|
|
class SwTableConfig : public utl::ConfigItem
|
|
|
|
{
|
|
|
|
friend class SwModuleOptions;
|
|
|
|
|
2011-01-17 08:06:54 -06:00
|
|
|
sal_uInt16 nTblHMove; //int Table/Shift/Row
|
|
|
|
sal_uInt16 nTblVMove; //int Table/Shift/Column
|
|
|
|
sal_uInt16 nTblHInsert; //int Table/Insert/Row
|
|
|
|
sal_uInt16 nTblVInsert; //int Table/Insert/Column
|
2007-11-21 11:18:01 -06:00
|
|
|
TblChgMode eTblChgMode; //int Table/Change/Effect
|
|
|
|
|
2011-02-19 16:42:45 -06:00
|
|
|
sal_Bool bInsTblFormatNum; // Table/Input/NumberRecognition // Automatic recognition of numbers.
|
|
|
|
sal_Bool bInsTblChangeNumFormat; // Table/Input/NumberFormatRecognition // Automatic recognition of number formats.
|
|
|
|
sal_Bool bInsTblAlignNum; // Table/Input/Alignment // Align numbers.
|
2007-11-21 11:18:01 -06:00
|
|
|
|
|
|
|
const com::sun::star::uno::Sequence<rtl::OUString>& GetPropertyNames();
|
|
|
|
public:
|
|
|
|
SwTableConfig(sal_Bool bWeb);
|
|
|
|
~SwTableConfig();
|
|
|
|
|
|
|
|
virtual void Commit();
|
2009-10-15 17:05:16 -05:00
|
|
|
virtual void Notify( const ::com::sun::star::uno::Sequence< rtl::OUString >& aPropertyNames );
|
2007-11-21 11:18:01 -06:00
|
|
|
void Load();
|
|
|
|
void SetModified(){ConfigItem::SetModified();}
|
|
|
|
};
|
|
|
|
|
|
|
|
class SwMiscConfig : public utl::ConfigItem
|
|
|
|
{
|
|
|
|
friend class SwModuleOptions;
|
|
|
|
|
|
|
|
String sWordDelimiter; // Statistics/WordNumber/Delimiter
|
2011-01-17 08:06:54 -06:00
|
|
|
sal_Bool bDefaultFontsInCurrDocOnly; // DefaultFont/Document
|
|
|
|
sal_Bool bShowIndexPreview ; // Index/ShowPreview
|
|
|
|
sal_Bool bGrfToGalleryAsLnk; // Misc/GraphicToGalleryAsLink
|
|
|
|
sal_Bool bNumAlignSize; // Numbering/Graphic/KeepRatio
|
|
|
|
sal_Bool bSinglePrintJob; // FormLetter/PrintOutput/SinglePrintJobs
|
|
|
|
sal_Bool bIsNameFromColumn; // FormLetter/FileOutput/FileName/Generation
|
|
|
|
sal_Bool bAskForMailMergeInPrint; // Ask if documents containing fields should be 'mailmerged'
|
2007-11-21 11:18:01 -06:00
|
|
|
sal_Int16 nMailingFormats; // FormLetter/MailingOutput/Formats
|
|
|
|
String sNameFromColumn; // FormLetter/FileOutput/FileName/FromDatabaseField (string!)
|
|
|
|
String sMailingPath; // FormLetter/FileOutput/Path
|
|
|
|
String sMailName; // FormLetter/FileOutput/FileName/FromManualSetting (string!)
|
|
|
|
|
|
|
|
const com::sun::star::uno::Sequence<rtl::OUString>& GetPropertyNames();
|
|
|
|
public:
|
|
|
|
SwMiscConfig();
|
|
|
|
~SwMiscConfig();
|
|
|
|
|
|
|
|
virtual void Commit();
|
2009-10-15 17:05:16 -05:00
|
|
|
virtual void Notify( const ::com::sun::star::uno::Sequence< rtl::OUString >& aPropertyNames );
|
2007-11-21 11:18:01 -06:00
|
|
|
void Load();
|
|
|
|
void SetModified(){ConfigItem::SetModified();}
|
|
|
|
};
|
|
|
|
|
|
|
|
class SW_DLLPUBLIC SwModuleOptions
|
|
|
|
{
|
|
|
|
SwRevisionConfig aRevisionConfig;
|
|
|
|
SwInsertConfig aInsertConfig;
|
|
|
|
SwInsertConfig aWebInsertConfig;
|
|
|
|
|
|
|
|
SwTableConfig aTableConfig;
|
|
|
|
SwTableConfig aWebTableConfig;
|
|
|
|
|
|
|
|
SwMiscConfig aMiscConfig;
|
|
|
|
|
|
|
|
//fiscus: don't show tips of text fields - it's not part of the configuration!
|
2011-01-17 08:06:54 -06:00
|
|
|
sal_Bool bHideFieldTips : 1;
|
2007-11-21 11:18:01 -06:00
|
|
|
|
|
|
|
public:
|
|
|
|
SwModuleOptions();
|
|
|
|
|
|
|
|
TblChgMode GetTblMode() const { return aTableConfig.eTblChgMode;}
|
|
|
|
void SetTblMode( TblChgMode eSet ) { aTableConfig.eTblChgMode = eSet;
|
|
|
|
aTableConfig.SetModified();}
|
|
|
|
|
2011-01-17 08:06:54 -06:00
|
|
|
sal_uInt16 GetTblHMove() const { return aTableConfig.nTblHMove;}
|
|
|
|
void SetTblHMove( sal_uInt16 nSet ) { aTableConfig.nTblHMove = nSet;
|
2007-11-21 11:18:01 -06:00
|
|
|
aTableConfig.SetModified();}
|
|
|
|
|
2011-01-17 08:06:54 -06:00
|
|
|
sal_uInt16 GetTblVMove() const { return aTableConfig.nTblVMove;}
|
|
|
|
void SetTblVMove( sal_uInt16 nSet ) { aTableConfig.nTblVMove = nSet;
|
2007-11-21 11:18:01 -06:00
|
|
|
aTableConfig.SetModified();}
|
|
|
|
|
2011-01-17 08:06:54 -06:00
|
|
|
sal_uInt16 GetTblHInsert() const {return aTableConfig.nTblHInsert;}
|
|
|
|
void SetTblHInsert( sal_uInt16 nSet ) { aTableConfig.nTblHInsert = nSet;
|
2007-11-21 11:18:01 -06:00
|
|
|
aTableConfig.SetModified();}
|
|
|
|
|
2011-01-17 08:06:54 -06:00
|
|
|
sal_uInt16 GetTblVInsert() const {return aTableConfig.nTblVInsert;}
|
|
|
|
void SetTblVInsert( sal_uInt16 nSet ) { aTableConfig.nTblVInsert = nSet;
|
2007-11-21 11:18:01 -06:00
|
|
|
aTableConfig.SetModified();}
|
|
|
|
|
|
|
|
const AuthorCharAttr &GetInsertAuthorAttr() const { return aRevisionConfig.aInsertAttr; }
|
|
|
|
void SetInsertAuthorAttr( AuthorCharAttr &rAttr ) { aRevisionConfig.aInsertAttr = rAttr;
|
|
|
|
aRevisionConfig.SetModified();}
|
|
|
|
|
|
|
|
const AuthorCharAttr &GetDeletedAuthorAttr() const { return aRevisionConfig.aDeletedAttr; }
|
|
|
|
void SetDeletedAuthorAttr( AuthorCharAttr &rAttr ) { aRevisionConfig.aDeletedAttr = rAttr;
|
|
|
|
aRevisionConfig.SetModified();}
|
|
|
|
|
|
|
|
const AuthorCharAttr &GetFormatAuthorAttr() const { return aRevisionConfig.aFormatAttr; }
|
|
|
|
void SetFormatAuthorAttr( AuthorCharAttr &rAttr ) { aRevisionConfig.aFormatAttr = rAttr;
|
|
|
|
aRevisionConfig.SetModified();}
|
|
|
|
|
2011-01-17 08:06:54 -06:00
|
|
|
sal_uInt16 GetMarkAlignMode() const { return aRevisionConfig.nMarkAlign; }
|
|
|
|
void SetMarkAlignMode(sal_uInt16 nMode) { aRevisionConfig.nMarkAlign = nMode;
|
2007-11-21 11:18:01 -06:00
|
|
|
aRevisionConfig.SetModified();}
|
|
|
|
|
|
|
|
const Color& GetMarkAlignColor() const { return aRevisionConfig.aMarkColor; }
|
|
|
|
void SetMarkAlignColor(const Color &rColor) { aRevisionConfig.aMarkColor = rColor;
|
|
|
|
aRevisionConfig.SetModified();}
|
|
|
|
|
2011-01-17 08:06:54 -06:00
|
|
|
sal_Bool IsInsWithCaption(sal_Bool bHTML) const
|
|
|
|
{ return bHTML ? sal_False : aInsertConfig.bInsWithCaption; }
|
|
|
|
void SetInsWithCaption( sal_Bool bHTML, sal_Bool b )
|
2007-11-21 11:18:01 -06:00
|
|
|
{ if(!bHTML)
|
|
|
|
aInsertConfig.bInsWithCaption = b;
|
|
|
|
aInsertConfig.SetModified();}
|
|
|
|
|
|
|
|
sal_Bool IsCaptionOrderNumberingFirst() const { return aInsertConfig.bCaptionOrderNumberingFirst; }
|
|
|
|
void SetCaptionOrderNumberingFirst( sal_Bool bSet )
|
|
|
|
{
|
|
|
|
if(aInsertConfig.bCaptionOrderNumberingFirst != bSet)
|
|
|
|
{
|
|
|
|
aInsertConfig.bCaptionOrderNumberingFirst = bSet;
|
|
|
|
aInsertConfig.SetModified();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2011-01-17 08:06:54 -06:00
|
|
|
sal_Bool IsInsTblFormatNum(sal_Bool bHTML) const
|
2007-11-21 11:18:01 -06:00
|
|
|
{ return bHTML ? aWebTableConfig.bInsTblFormatNum : aTableConfig.bInsTblFormatNum; }
|
2011-01-17 08:06:54 -06:00
|
|
|
void SetInsTblFormatNum( sal_Bool bHTML, sal_Bool b )
|
2007-11-21 11:18:01 -06:00
|
|
|
{ bHTML ? (aWebTableConfig.bInsTblFormatNum = b) : (aTableConfig.bInsTblFormatNum = b);
|
|
|
|
bHTML ? aWebTableConfig.SetModified() : aTableConfig.SetModified();}
|
|
|
|
|
2011-01-17 08:06:54 -06:00
|
|
|
sal_Bool IsInsTblChangeNumFormat(sal_Bool bHTML) const
|
2007-11-21 11:18:01 -06:00
|
|
|
{ return bHTML ? aWebTableConfig.bInsTblChangeNumFormat : aTableConfig.bInsTblChangeNumFormat; }
|
2011-01-17 08:06:54 -06:00
|
|
|
void SetInsTblChangeNumFormat( sal_Bool bHTML, sal_Bool b )
|
2007-11-21 11:18:01 -06:00
|
|
|
{ bHTML ? (aWebTableConfig.bInsTblChangeNumFormat = b) : (aTableConfig.bInsTblChangeNumFormat = b);
|
|
|
|
bHTML ? aWebTableConfig.SetModified() : aTableConfig.SetModified();}
|
|
|
|
|
|
|
|
|
2011-01-17 08:06:54 -06:00
|
|
|
sal_Bool IsInsTblAlignNum(sal_Bool bHTML) const
|
2007-11-21 11:18:01 -06:00
|
|
|
{ return bHTML ? aWebTableConfig.bInsTblAlignNum : aTableConfig.bInsTblAlignNum; }
|
2011-01-17 08:06:54 -06:00
|
|
|
void SetInsTblAlignNum( sal_Bool bHTML, sal_Bool b )
|
2007-11-21 11:18:01 -06:00
|
|
|
{ bHTML ? (aWebTableConfig.bInsTblAlignNum = b) : (aTableConfig.bInsTblAlignNum = b);
|
|
|
|
bHTML ? aWebTableConfig.SetModified() : aTableConfig.SetModified();;}
|
|
|
|
|
2011-01-17 08:06:54 -06:00
|
|
|
SwInsertTableOptions GetInsTblFlags(sal_Bool bHTML) const
|
2007-11-21 11:18:01 -06:00
|
|
|
{ return bHTML ? aWebInsertConfig.aInsTblOpts : aInsertConfig.aInsTblOpts;}
|
2011-01-17 08:06:54 -06:00
|
|
|
void SetInsTblFlags( sal_Bool bHTML, const SwInsertTableOptions& rOpts ) {
|
2007-11-21 11:18:01 -06:00
|
|
|
bHTML ? (aWebInsertConfig.aInsTblOpts = rOpts) : (aInsertConfig.aInsTblOpts = rOpts);
|
|
|
|
bHTML ? aWebInsertConfig.SetModified() : aInsertConfig.SetModified();}
|
|
|
|
|
2011-01-17 08:06:54 -06:00
|
|
|
const InsCaptionOpt* GetCapOption(sal_Bool bHTML, const SwCapObjType eType, const SvGlobalName *pOleId);
|
|
|
|
sal_Bool SetCapOption(sal_Bool bHTML, const InsCaptionOpt* pOpt);
|
2007-11-21 11:18:01 -06:00
|
|
|
|
|
|
|
|
2011-01-17 08:06:54 -06:00
|
|
|
sal_Bool IsGrfToGalleryAsLnk() const { return aMiscConfig.bGrfToGalleryAsLnk; }
|
|
|
|
void SetGrfToGalleryAsLnk( sal_Bool b ) { aMiscConfig.bGrfToGalleryAsLnk = b;
|
2007-11-21 11:18:01 -06:00
|
|
|
aMiscConfig.SetModified();}
|
|
|
|
|
|
|
|
sal_Int16 GetMailingFormats() const { return aMiscConfig.nMailingFormats;}
|
|
|
|
void SetMailingFormats( sal_Int16 nSet ) { aMiscConfig.nMailingFormats = nSet;
|
|
|
|
aMiscConfig.SetModified();}
|
|
|
|
|
2011-01-17 08:06:54 -06:00
|
|
|
sal_Bool IsSinglePrintJob() const { return aMiscConfig.bSinglePrintJob; }
|
|
|
|
void SetSinglePrintJob( sal_Bool b ) { aMiscConfig.bSinglePrintJob = b;
|
2007-11-21 11:18:01 -06:00
|
|
|
aMiscConfig.SetModified();}
|
|
|
|
|
2011-01-17 08:06:54 -06:00
|
|
|
sal_Bool IsNumAlignSize() const { return aMiscConfig.bNumAlignSize; }
|
|
|
|
void SetNumAlignSize( sal_Bool b ) { aMiscConfig.bNumAlignSize = b;
|
2007-11-21 11:18:01 -06:00
|
|
|
aMiscConfig.SetModified();}
|
|
|
|
|
2011-01-17 08:06:54 -06:00
|
|
|
sal_Bool IsNameFromColumn() const { return aMiscConfig.bIsNameFromColumn; }
|
|
|
|
void SetIsNameFromColumn( sal_Bool bSet )
|
2007-11-21 11:18:01 -06:00
|
|
|
{
|
|
|
|
aMiscConfig.SetModified();
|
|
|
|
aMiscConfig.bIsNameFromColumn = bSet;
|
|
|
|
}
|
|
|
|
|
2011-01-17 08:06:54 -06:00
|
|
|
sal_Bool IsAskForMailMerge() const { return aMiscConfig.bAskForMailMergeInPrint;}
|
|
|
|
void SetAskForMailMerge(sal_Bool bSet)
|
2007-11-21 11:18:01 -06:00
|
|
|
{
|
|
|
|
aMiscConfig.SetModified();
|
|
|
|
aMiscConfig.bAskForMailMergeInPrint = bSet;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const String& GetNameFromColumn() const { return aMiscConfig.sNameFromColumn; }
|
|
|
|
void SetNameFromColumn( const String& rSet ) { aMiscConfig.sNameFromColumn = rSet;
|
|
|
|
aMiscConfig.SetModified();}
|
|
|
|
|
|
|
|
String GetMailingPath() const { return aMiscConfig.sMailingPath; }
|
|
|
|
void SetMailingPath(const String& sPath) { aMiscConfig.sMailingPath = sPath;
|
|
|
|
aMiscConfig.SetModified();}
|
|
|
|
|
|
|
|
String GetMailName() const { return aMiscConfig.sMailName; }
|
|
|
|
void SetMailName(const String& sName){ aMiscConfig.sMailName = sName;
|
|
|
|
aMiscConfig.SetModified();}
|
|
|
|
|
|
|
|
const String &GetWordDelimiter() const { return aMiscConfig.sWordDelimiter; }
|
|
|
|
void SetWordDelimiter(const String& sDelim) { aMiscConfig.sWordDelimiter = sDelim;
|
|
|
|
aMiscConfig.SetModified();}
|
|
|
|
|
|
|
|
//convert word delimiter from or to user interface
|
2011-01-17 08:06:54 -06:00
|
|
|
static String ConvertWordDelimiter(const String& rDelim, sal_Bool bFromUI);
|
2007-11-21 11:18:01 -06:00
|
|
|
|
2011-01-17 08:06:54 -06:00
|
|
|
sal_Bool IsShowIndexPreview() const {return aMiscConfig.bShowIndexPreview;}
|
|
|
|
void SetShowIndexPreview(sal_Bool bSet)
|
2007-11-21 11:18:01 -06:00
|
|
|
{aMiscConfig.bShowIndexPreview = bSet;
|
|
|
|
aMiscConfig.SetModified();}
|
|
|
|
|
2011-01-17 08:06:54 -06:00
|
|
|
sal_Bool IsDefaultFontInCurrDocOnly() const { return aMiscConfig.bDefaultFontsInCurrDocOnly;}
|
|
|
|
void SetDefaultFontInCurrDocOnly(sal_Bool bSet)
|
2007-11-21 11:18:01 -06:00
|
|
|
{
|
|
|
|
aMiscConfig.bDefaultFontsInCurrDocOnly = bSet;
|
|
|
|
aMiscConfig.SetModified();
|
|
|
|
}
|
|
|
|
|
2011-01-17 08:06:54 -06:00
|
|
|
sal_Bool IsHideFieldTips() const {return bHideFieldTips;}
|
|
|
|
void SetHideFieldTips(sal_Bool bSet) {bHideFieldTips = bSet;}
|
2007-11-21 11:18:01 -06:00
|
|
|
};
|
|
|
|
#endif
|
|
|
|
|
2010-10-14 01:30:41 -05:00
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|