viewopt.hxx (1d2dbeb0) viewopt.hxx (ef785786)
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

--- 75 unchanged lines hidden (view full) ---

84#define VIEWOPT_2_VSCROLLBAR 0x00000800L
85#define VIEWOPT_2_HSCROLLBAR 0x00001000L
86#define VIEWOPT_2_STATUSLINE 0x00002000L
87#define VIEWOPT_2_V_RULER 0x00004000L
88#define VIEWOPT_2_ANY_RULER 0x00008000L
89#define VIEWOPT_2_MODIFIED 0x00010000L
90#define VIEWOPT_2_KEEPASPECTRATIO 0x00020000L
91#define VIEWOPT_2_GRFKEEPZOOM 0x00040000L
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

--- 75 unchanged lines hidden (view full) ---

84#define VIEWOPT_2_VSCROLLBAR 0x00000800L
85#define VIEWOPT_2_HSCROLLBAR 0x00001000L
86#define VIEWOPT_2_STATUSLINE 0x00002000L
87#define VIEWOPT_2_V_RULER 0x00004000L
88#define VIEWOPT_2_ANY_RULER 0x00008000L
89#define VIEWOPT_2_MODIFIED 0x00010000L
90#define VIEWOPT_2_KEEPASPECTRATIO 0x00020000L
91#define VIEWOPT_2_GRFKEEPZOOM 0x00040000L
92#define VIEWOPT_2_PREVENT_TIPS 0x00100000L
92#define VIEWOPT_2_CONTENT_TIPS 0x00100000L
93#define VIEWOPT_2_RESERVED3 0x00200000L
94#define VIEWOPT_2_RESERVED4 0x00400000L
95#define VIEWOPT_2_PRTFORMAT 0x00800000L
96#define VIEWOPT_2_SHADOWCRSR 0x01000000L
97#define VIEWOPT_2_V_RULER_RIGHT 0x02000000L
98
99//Tabellenhintergrund
100#define TBL_DEST_CELL 0

--- 364 unchanged lines hidden (view full) ---

465 sal_Bool IsViewVScrollBar() const
466 { return nUIOptions & VIEWOPT_2_VSCROLLBAR ? sal_True : sal_False; }
467 sal_Bool IsViewHScrollBar() const
468 { return nUIOptions & VIEWOPT_2_HSCROLLBAR ? sal_True : sal_False; }
469 sal_Bool IsKeepRatio() const
470 { return nUIOptions & VIEWOPT_2_KEEPASPECTRATIO ? sal_True : sal_False; }
471 sal_Bool IsGrfKeepZoom() const
472 { return nUIOptions & VIEWOPT_2_GRFKEEPZOOM ? sal_True : sal_False; }
93#define VIEWOPT_2_RESERVED3 0x00200000L
94#define VIEWOPT_2_RESERVED4 0x00400000L
95#define VIEWOPT_2_PRTFORMAT 0x00800000L
96#define VIEWOPT_2_SHADOWCRSR 0x01000000L
97#define VIEWOPT_2_V_RULER_RIGHT 0x02000000L
98
99//Tabellenhintergrund
100#define TBL_DEST_CELL 0

--- 364 unchanged lines hidden (view full) ---

465 sal_Bool IsViewVScrollBar() const
466 { return nUIOptions & VIEWOPT_2_VSCROLLBAR ? sal_True : sal_False; }
467 sal_Bool IsViewHScrollBar() const
468 { return nUIOptions & VIEWOPT_2_HSCROLLBAR ? sal_True : sal_False; }
469 sal_Bool IsKeepRatio() const
470 { return nUIOptions & VIEWOPT_2_KEEPASPECTRATIO ? sal_True : sal_False; }
471 sal_Bool IsGrfKeepZoom() const
472 { return nUIOptions & VIEWOPT_2_GRFKEEPZOOM ? sal_True : sal_False; }
473 sal_Bool IsPreventTips() const
474 { return nUIOptions & VIEWOPT_2_PREVENT_TIPS ? sal_True : sal_False; }
473 sal_Bool IsShowContentTips() const
474 { return nUIOptions & VIEWOPT_2_CONTENT_TIPS ? sal_True : sal_False; }
475 sal_Bool IsPrtFormat() const
476 { return nUIOptions & VIEWOPT_2_PRTFORMAT ? sal_True : sal_False; }
477
478 SvxZoomType GetZoomType() const { return eZoom; }
479
480 sal_uInt8 GetTblDest() const { return nTblDest; }
481
482 void SetViewVScrollBar(sal_Bool b)
483 { b ? (nUIOptions |= VIEWOPT_2_VSCROLLBAR ) : ( nUIOptions &= ~VIEWOPT_2_VSCROLLBAR); }
484 void SetViewHScrollBar(sal_Bool b)
485 { b ? (nUIOptions |= VIEWOPT_2_HSCROLLBAR ) : ( nUIOptions &= ~VIEWOPT_2_HSCROLLBAR); }
486 void SetKeepRatio (sal_Bool b)
487 { b ? (nUIOptions |= VIEWOPT_2_KEEPASPECTRATIO ) : ( nUIOptions &= ~VIEWOPT_2_KEEPASPECTRATIO); }
488 void SetGrfKeepZoom (sal_Bool b)
489 { b ? (nUIOptions |= VIEWOPT_2_GRFKEEPZOOM ) : ( nUIOptions &= ~VIEWOPT_2_GRFKEEPZOOM); }
475 sal_Bool IsPrtFormat() const
476 { return nUIOptions & VIEWOPT_2_PRTFORMAT ? sal_True : sal_False; }
477
478 SvxZoomType GetZoomType() const { return eZoom; }
479
480 sal_uInt8 GetTblDest() const { return nTblDest; }
481
482 void SetViewVScrollBar(sal_Bool b)
483 { b ? (nUIOptions |= VIEWOPT_2_VSCROLLBAR ) : ( nUIOptions &= ~VIEWOPT_2_VSCROLLBAR); }
484 void SetViewHScrollBar(sal_Bool b)
485 { b ? (nUIOptions |= VIEWOPT_2_HSCROLLBAR ) : ( nUIOptions &= ~VIEWOPT_2_HSCROLLBAR); }
486 void SetKeepRatio (sal_Bool b)
487 { b ? (nUIOptions |= VIEWOPT_2_KEEPASPECTRATIO ) : ( nUIOptions &= ~VIEWOPT_2_KEEPASPECTRATIO); }
488 void SetGrfKeepZoom (sal_Bool b)
489 { b ? (nUIOptions |= VIEWOPT_2_GRFKEEPZOOM ) : ( nUIOptions &= ~VIEWOPT_2_GRFKEEPZOOM); }
490 void SetPreventTips( sal_Bool b)
491 { b ? (nUIOptions |= VIEWOPT_2_PREVENT_TIPS) : (nUIOptions &= ~VIEWOPT_2_PREVENT_TIPS); }
490 void SetShowContentTips( sal_Bool b)
491 { b ? (nUIOptions |= VIEWOPT_2_CONTENT_TIPS) : (nUIOptions &= ~VIEWOPT_2_CONTENT_TIPS); }
492 void SetPrtFormat( sal_Bool b)
493 { b ? (nUIOptions |= VIEWOPT_2_PRTFORMAT) : (nUIOptions &= ~VIEWOPT_2_PRTFORMAT); }
494
495 void SetZoomType (SvxZoomType eZoom_){ eZoom = eZoom_; }
496 void SetTblDest( sal_uInt8 nNew ) { nTblDest = nNew; }
497
498 const String& GetSymbolFont() const {return sSymbolFont;}
499 void SetSymbolFont(const String& sSet) {sSymbolFont = sSet;}

--- 112 unchanged lines hidden ---
492 void SetPrtFormat( sal_Bool b)
493 { b ? (nUIOptions |= VIEWOPT_2_PRTFORMAT) : (nUIOptions &= ~VIEWOPT_2_PRTFORMAT); }
494
495 void SetZoomType (SvxZoomType eZoom_){ eZoom = eZoom_; }
496 void SetTblDest( sal_uInt8 nNew ) { nTblDest = nNew; }
497
498 const String& GetSymbolFont() const {return sSymbolFont;}
499 void SetSymbolFont(const String& sSet) {sSymbolFont = sSet;}

--- 112 unchanged lines hidden ---