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

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

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_CONTENT_TIPS 0x00100000L
93#define VIEWOPT_2_RESERVED3 0x00200000L
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

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

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_CONTENT_TIPS 0x00100000L
93#define VIEWOPT_2_RESERVED3 0x00200000L
94#define VIEWOPT_2_RESERVED4 0x00400000L
94#define VIEWOPT_2_SCROLLBAR_TIPS 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
101#define TBL_DEST_ROW 1
102#define TBL_DEST_TBL 2

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

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 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; }
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
101#define TBL_DEST_ROW 1
102#define TBL_DEST_TBL 2

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

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 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 sal_Bool IsShowScrollBarTips() const
478 { return nUIOptions & VIEWOPT_2_SCROLLBAR_TIPS ? 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 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); }
479
480 SvxZoomType GetZoomType() const { return eZoom; }
481
482 sal_uInt8 GetTblDest() const { return nTblDest; }
483
484 void SetViewVScrollBar(sal_Bool b)
485 { b ? (nUIOptions |= VIEWOPT_2_VSCROLLBAR ) : ( nUIOptions &= ~VIEWOPT_2_VSCROLLBAR); }
486 void SetViewHScrollBar(sal_Bool b)
487 { b ? (nUIOptions |= VIEWOPT_2_HSCROLLBAR ) : ( nUIOptions &= ~VIEWOPT_2_HSCROLLBAR); }
488 void SetKeepRatio (sal_Bool b)
489 { b ? (nUIOptions |= VIEWOPT_2_KEEPASPECTRATIO ) : ( nUIOptions &= ~VIEWOPT_2_KEEPASPECTRATIO); }
490 void SetGrfKeepZoom (sal_Bool b)
491 { b ? (nUIOptions |= VIEWOPT_2_GRFKEEPZOOM ) : ( nUIOptions &= ~VIEWOPT_2_GRFKEEPZOOM); }
492 void SetShowContentTips( sal_Bool b)
493 { b ? (nUIOptions |= VIEWOPT_2_CONTENT_TIPS) : (nUIOptions &= ~VIEWOPT_2_CONTENT_TIPS); }
494 void SetPrtFormat( sal_Bool b)
495 { b ? (nUIOptions |= VIEWOPT_2_PRTFORMAT) : (nUIOptions &= ~VIEWOPT_2_PRTFORMAT); }
496 void SetShowScrollBarTips( sal_Bool b)
497 { b ? (nUIOptions |= VIEWOPT_2_SCROLLBAR_TIPS) : (nUIOptions &= ~VIEWOPT_2_SCROLLBAR_TIPS); }
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;}
500
501 const Color& GetRetoucheColor() const { return aRetoucheColor;}

--- 110 unchanged lines hidden ---
498
499 void SetZoomType (SvxZoomType eZoom_){ eZoom = eZoom_; }
500 void SetTblDest( sal_uInt8 nNew ) { nTblDest = nNew; }
501
502 const String& GetSymbolFont() const {return sSymbolFont;}
503 void SetSymbolFont(const String& sSet) {sSymbolFont = sSet;}
504
505 const Color& GetRetoucheColor() const { return aRetoucheColor;}

--- 110 unchanged lines hidden ---